Commit c1f4adc9 authored by Pierre Cazenave's avatar Pierre Cazenave

Tidy up the time series figure a bit (legend, labels, annotations etc.).

parent fb02a5f6
......@@ -252,15 +252,16 @@ if __name__ == '__main__':
ls=style,
label=p.replace('type', 'Type '), zorder=200)
ax1.legend(frameon=False, loc=2,
ncol=len(names))
#ncol=np.ceil(len(names) / 2).astype(int))
ax1.legend(frameon=False, loc=8, fontsize=10,
ncol=np.ceil(len(names) / 2).astype(int))
ax1.set_xlim(np.min(FVCOM['times']) - 6, np.max(FVCOM['times']))
ax1.set_xlim(np.min(FVCOM['times']) - 6, np.min(FVCOM['times'] + 80))
#ax1.set_ylim(np.min(FVCOM['temp']), np.max(FVCOM['temp']) + 2.5)
ax1.xaxis.set_major_formatter(date_fmt)
ax1.set_ylabel('Temperature ($^{\circ}C$)')
ax1.yaxis.set_major_formatter(formatter)
ax1.annotate(labels[i], xy=(0.02, 0.9), xycoords='axes fraction', fontsize=14, zorder=1000)
fig1.autofmt_xdate(rotation=0, ha='center')
fig1.tight_layout(pad=2)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment