lmoss commited on
Commit
fb4f232
·
1 Parent(s): d10ade7

added dual pane view

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -21,7 +21,7 @@ with open('berea_generator_epoch_24.pth', 'wb') as f:
21
  st.text(resp.status_code)
22
 
23
  pv.set_plot_theme("document")
24
- pl = pv.Plotter(shape=(2, 1),
25
  window_size=(800, 800))
26
 
27
  netG = DCGAN3D_G(64, 512, 1, 32, 1)
@@ -53,9 +53,9 @@ mesh = grid.contour(1, values, method='marching_cubes', rng=[1, 0], preference="
53
  dist = np.linalg.norm(mesh.points, axis=1)
54
 
55
  pl.subplot(0, 0)
56
- pl.add_mesh(slices, cmap="gray")
57
- pl.subplot(1, 0)
58
- pl.add_mesh(mesh, scalars=dist)
59
  pl.export_html('pyvista.html')
60
 
61
  st.header("test html import")
 
21
  st.text(resp.status_code)
22
 
23
  pv.set_plot_theme("document")
24
+ pl = pv.Plotter(shape=(1, 2),
25
  window_size=(800, 800))
26
 
27
  netG = DCGAN3D_G(64, 512, 1, 32, 1)
 
53
  dist = np.linalg.norm(mesh.points, axis=1)
54
 
55
  pl.subplot(0, 0)
56
+ _ = pl.add_mesh(slices, cmap="gray")
57
+ pl.subplot(0, 1)
58
+ _ = pl.add_mesh(mesh, scalars=dist)
59
  pl.export_html('pyvista.html')
60
 
61
  st.header("test html import")