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

added dual pane view

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -52,14 +52,14 @@ slices = grid.slice_orthogonal()
52
  mesh = grid.contour(1, values, method='marching_cubes', rng=[1, 0], preference="points")
53
  dist = np.linalg.norm(mesh.points, axis=1)
54
 
 
55
  pl.add_mesh(slices, cmap="gray")
56
  pl.subplot(1, 0)
57
-
58
  pl.add_mesh(mesh, scalars=dist)
59
  pl.export_html('pyvista.html')
60
 
61
  st.header("test html import")
62
- view_width = 800
63
  view_height = 800
64
  HtmlFile = open("pyvista.html", 'r', encoding='utf-8')
65
  source_code = HtmlFile.read()
 
52
  mesh = grid.contour(1, values, method='marching_cubes', rng=[1, 0], preference="points")
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")
62
+ view_width = 400
63
  view_height = 800
64
  HtmlFile = open("pyvista.html", 'r', encoding='utf-8')
65
  source_code = HtmlFile.read()