Skip to content
Snippets Groups Projects
Commit 5b8d0949 authored by Christoph.Knote's avatar Christoph.Knote
Browse files

Removing x labels if not needed.

parent c01a7635
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment