UCBerkeleySETI / blimpy

Breakthrough Listen I/O Methods for Python
https://blimpy.readthedocs.io
BSD 3-Clause "New" or "Revised" License
47 stars 40 forks source link

Plotting fails plt.show() and this should work for X-terminals #263

Closed texadactyl closed 2 years ago

texadactyl commented 2 years ago

Interactively, blimpy plotting should be able to show a plot. This currently does not work although the plot is saved as a PNG file.

Gross symptom:

UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure.
  plt.show()

After reviewing the watutil plotting process with Spyder debugger, it appears that:

texadactyl commented 2 years ago

Simple plotting programs have no trouble getting plt.show() to work as expected.

texadactyl commented 2 years ago

Matplotlib backend selection is a mystery! However, I have a work-around solution.

wfarah commented 2 years ago

Thanks for your help on this @texadactyl !