#211 "Origin lines do not cross the origin at startup" fix

(cherry picked from commit f7f41b5)
This commit is contained in:
Denvi
2016-09-05 16:42:29 +05:00
parent f6e4929167
commit 5d3d0f2166

View File

@@ -37,15 +37,16 @@ class VisPyCanvas(scene.SceneCanvas):
view = grid.add_view(row=1, col=1, border_color='black', bgcolor='white')
view.camera = Camera(aspect=1)
# Following function was removed from 'prepare_draw()' of 'Grid' class by patch,
# it is necessary to call manually
grid._update_child_widget_dim()
grid1 = scene.GridLines(parent=view.scene, color='gray')
grid1.set_gl_state(depth_test=False)
xaxis.link_view(view)
yaxis.link_view(view)
# shapes = scene.Line(parent=view.scene)
# view.add(shapes)
self.grid = grid1
self.view = view
self.freeze()