diff --git a/aerosandbox/tools/pretty_plots/formatting.py b/aerosandbox/tools/pretty_plots/formatting.py index 44832eb4..2710af46 100644 --- a/aerosandbox/tools/pretty_plots/formatting.py +++ b/aerosandbox/tools/pretty_plots/formatting.py @@ -328,10 +328,12 @@ def __call__(self): # Make axis labels if needed if xlabel is not None: for ax in axes: - ax.set_xlabel(xlabel) + if not ax.get_label() == '': + ax.set_xlabel(xlabel) if ylabel is not None: for ax in axes: - ax.set_ylabel(ylabel) + if not ax.get_label() == '': + ax.set_ylabel(ylabel) if zlabel is not None: if len(axes_with_3D) == 0: import warnings @@ -341,7 +343,8 @@ def __call__(self): ) for ax in axes_with_3D: - ax.set_zlabel(zlabel) + if not ax.get_label() == '': + ax.set_zlabel(zlabel) # Rotate axis labels if needed if rotate_axis_labels: