Based on Taylor (2001) - Journal Geophysical Research (http://onlinelibrary.wiley.com/doi/10.1029/2000JD900719/abstract)
In [14]:
#!/usr/bin/python
# _*_ coding: latin-1 -*-
# Taylor Diagram - Based on Taylor (2001) - Journal Geophysical Research
# author: Mabel Calim Costa
# GMAO - INPE
# 20/02/2018
import numpy as np
from numpy import ma
import mpl_toolkits.axisartist.grid_finder as GF
import mpl_toolkits.axisartist.floating_axes as FA
import matplotlib.pyplot as plt
import netCDF4
In [15]:
import taylor_diag
In [16]:
import numpy as np
from pylab import *
z = np.linspace(0,2048,2048)
x = np.sin(50*np.pi*z)
y = np.cos(50*np.pi*z)
x2 = 2*np.sin(50*np.pi*z)
plot(x, 'k--')
plot(x2)
plot(y)
Out[16]:
In [17]:
series ={}
series[0] = x # the first term will be always the reference signal
series[1]= x2
series[2]= y
In [21]:
from matplotlib.projections import PolarAxes
taylor_diag.Taylor_diag(series,['x','x2','y'])
In [20]:
print (taylor_diag.Taylor_diag.__doc__)
In [ ]: