Remove empty space on left side of profile plots

etta-drone
Dan Howe 5 years ago
parent 7af3c8a443
commit 0568be834e

@ -116,6 +116,12 @@ def plot_profiles(profile_name, csv_output_dir, graph_loc, ch_limits, delta_vol,
if Ylim<10: if Ylim<10:
ax.set_ylim([ax.get_ylim()[0], 10]) ax.set_ylim([ax.get_ylim()[0], 10])
# Remove empty space at left of figure
try:
ax.set_xlim(left=profile.first_valid_index() - 10)
except TypeError:
pass
# Show most recent volume change # Show most recent volume change
if delta_vol is not None: if delta_vol is not None:
ax.annotate('Most recent\nvolume change:\n{:+0.1f} m$^3$/m'.format(delta_vol), ax.annotate('Most recent\nvolume change:\n{:+0.1f} m$^3$/m'.format(delta_vol),

Loading…
Cancel
Save