- 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:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user