- fixed the Export PNG function when using the 2D legacy graphic engine

- added a new capability to toggle the grid lines for both graphic engines: menu link in View and key shortcut combo ALT+G
This commit is contained in:
Marius Stanciu
2019-10-13 06:53:16 +03:00
committed by Marius
parent 78721590e0
commit 168f4a7646
5 changed files with 73 additions and 17 deletions

View File

@@ -83,11 +83,12 @@ class VisPyCanvas(scene.SceneCanvas):
self.xaxis.link_view(view)
self.yaxis.link_view(view)
grid1 = scene.GridLines(parent=view.scene, color='dimgray')
grid1.set_gl_state(depth_test=False)
# grid1 = scene.GridLines(parent=view.scene, color='dimgray')
# grid1.set_gl_state(depth_test=False)
self.view = view
self.grid = grid1
self.grid = scene.GridLines(parent=self.view.scene, color='dimgray')
self.grid.set_gl_state(depth_test=False)
self.freeze()