Skip to content

Commit

Permalink
Don't skip plt.show() and saving plot images if return_plot_objects i…
Browse files Browse the repository at this point in the history
…s True
  • Loading branch information
jameswilburlewis committed Oct 11, 2024
1 parent fb8f7a5 commit 42798d9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pytplot/MPLPlotter/tplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -562,9 +562,6 @@ def tplot(variables, var_label=None,
colorbar.set_label(ztitle_text + '\n ' + zsubtitle_text,
fontsize=char_size)

if return_plot_objects:
return fig, axes

if save_png is not None and save_png != '':
if not save_png.endswith('.png'):
save_png += '.png'
Expand Down Expand Up @@ -599,6 +596,8 @@ def tplot(variables, var_label=None,
if display:
plt.show()

if return_plot_objects:
return fig, axes

def mouse_move_slice(event, slice_axes, slice_plot):
"""
Expand Down

0 comments on commit 42798d9

Please sign in to comment.