Skip to content

Commit

Permalink
Atl: Only import Grf if needed
Browse files Browse the repository at this point in the history
Importing Grf pulls in matplotlib, which can cause conflicts, for instance
between GTK2 and GTK3 symbols.
  • Loading branch information
dsberry committed Jan 14, 2019
1 parent 7d7989f commit c9f6665
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion starlink/Atl.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import starlink.Ast as Ast
import starlink.Grf as Grf
from distutils.version import LooseVersion

try:
Expand Down Expand Up @@ -303,6 +302,8 @@ def plotframeset(axes, gbox, bbox, frameset, options=""):
>>> matplotlib.pyplot.show()
"""

import starlink.Grf as Grf

axes.xaxis.set_visible(False)
axes.yaxis.set_visible(False)

Expand Down

2 comments on commit c9f6665

@timj
Copy link
Member

@timj timj commented on c9f6665 Jan 14, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please take a look at the open pull requests. #15 includes this fix.

@timj
Copy link
Member

@timj timj commented on c9f6665 Jan 14, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, can you please use pull requests on this repository so that the builds can be checked on Travis?

Please sign in to comment.