Esempio n. 1
0
print 'ZonalPlot ...'
Z=ZonalPlot()
Z.plot(D)

print 'Some LinePlot'
L=LinePlot(regress=True, title='This is a LinePlot with regression')
L.plot(D, label='2m air temperature')
L.plot(P, label='Precipitable water', ax=L.ax.twinx(), color='green')  # use secondary axis for plotting here
L.legend()

print 'Scatterplot between different variables ...'
S=ScatterPlot(D)  # scatterplot is initialized with definition of X-axis object
S.plot(P)
S.legend()

print 'Hovmoeller diagrams ...'
hm = HovmoellerPlot(D)
hm.plot(climits=[-20.,30.])

print '... generate Hovmoeller plot from deseasonalized anomalies'
ha=HovmoellerPlot(D.get_deseasonalized_anomaly(base='all'))
ha.plot(climits=[-2.,2.], cmap='RdBu_r')

plt.show()
r=raw_input("Press Enter to continue...")

plt.close('all')