Skip to content

Commit c9f6665

Browse files
committed
Atl: Only import Grf if needed
Importing Grf pulls in matplotlib, which can cause conflicts, for instance between GTK2 and GTK3 symbols.
1 parent 7d7989f commit c9f6665

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

starlink/Atl.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import starlink.Ast as Ast
2-
import starlink.Grf as Grf
32
from distutils.version import LooseVersion
43

54
try:
@@ -303,6 +302,8 @@ def plotframeset(axes, gbox, bbox, frameset, options=""):
303302
>>> matplotlib.pyplot.show()
304303
"""
305304

305+
import starlink.Grf as Grf
306+
306307
axes.xaxis.set_visible(False)
307308
axes.yaxis.set_visible(False)
308309

0 commit comments

Comments
 (0)