Skip to content

Commit

Permalink
Undo hotfix: Restore use of tkagg X11 backend
Browse files Browse the repository at this point in the history
gcpy/examples/plotting/plot_comparisons.py
gcpy/examples/plotting/plot_single_panel.py
- Remove hotfix that commented out the tkagg X11 backend in
  plotting example codes.  We have now rebuilt the container used
  for cloud benchmarks so this should not be a problem.  Also, "tk"
  is now part of the gcpy Python environment.

Signed-off-by: Bob Yantosca <yantosca@seas.harvard.edu>
  • Loading branch information
yantosca committed Oct 25, 2023
1 parent d388c9f commit 620d449
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gcpy/examples/plotting/plot_comparisons.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import argparse
import xarray as xr
from matplotlib import use as mpl_use
#mpl_use("TkAgg") # X11 backend for plt.show()
mpl_use("tkagg") # X11 backend for plt.show()
import matplotlib.pyplot as plt
from gcpy.constants import skip_these_vars
from gcpy.plot.compare_single_level import compare_single_level
Expand Down
2 changes: 1 addition & 1 deletion gcpy/examples/plotting/plot_single_panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import argparse
import xarray as xr
from matplotlib import use as mpl_use
#mpl_use("TkAgg") # X11 backend for plt.show()
mpl_use("tkagg") # X11 backend for plt.show()
import matplotlib.pyplot as plt
from gcpy.plot.single_panel import single_panel
from gcpy.util import rename_and_flip_gchp_rst_vars
Expand Down

0 comments on commit 620d449

Please sign in to comment.