Skip to content

Commit

Permalink
chore(vispy): select opengl when creating new canvas
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjayankur31 committed Oct 1, 2023
1 parent bef0d82 commit 664da55
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pyneuroml/plot/PlotMorphologyVispy.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@
"light": {"bg": "white", "fg": "black"},
"dark": {"bg": "black", "fg": "white"},
}
# vispy: full gl+ context is required for instanced rendering
use(gl="gl+")
PYNEUROML_VISPY_THEME = "light"


Expand Down Expand Up @@ -111,6 +109,9 @@ def create_new_vispy_canvas(
:type axes_width: float
:returns: scene, view
"""
# vispy: full gl+ context is required for instanced rendering
use(gl="gl+")

canvas = scene.SceneCanvas(
keys="interactive",
show=True,
Expand Down

0 comments on commit 664da55

Please sign in to comment.