diff --git a/boxmox/plotter.py b/boxmox/plotter.py index 60c157fb8f827eac7507e393c84b056de6694436..61916b2800dcde7c6c4fef78495076937dc9a1f7 100644 --- a/boxmox/plotter.py +++ b/boxmox/plotter.py @@ -45,7 +45,8 @@ class ExperimentPlotter: ax.legend() - def fluxes(self, spec, fig=None, ax=None, plot_legend=True, plot_netflux=True, + def fluxes(self, spec, fig=None, ax=None, + plot_legend=True, plot_netflux=True, plot_xaxlabels=True, scale_factor=3600.0 * 1000.0, xlabel='Time in h', ylabel=r'Flux in ppbv h$^{-1}$', plabel=None, xaxis=True, yaxis=True): @@ -83,7 +84,10 @@ class ExperimentPlotter: horizontalalignment='center', verticalalignment='center') if plot_legend: - ax.legend(loc='best', fontsize="xx-small", fancybox=True, framealpha=0.5) + ax.legend(loc='lower center', fontsize="xx-small", fancybox=True, framealpha=0.5) + + if not plot_xaxlabels: + ax.tick_params(labelbottom='off') return fig