On Thu, Feb 7, 2013 at 3:24 AM, Sudheer Joseph <sudheer.jos...@yahoo.com>wrote:
> Dear Users,
> I am relatively new to Matplotlib. I wanted to find cross
> correlation between 2 time series for my research and was looking at
> options available with python and found
> http://matplotlib.org/api/pyplot_api.html#matplotlib.pyplot.xcorr .
> However I wanted to save the results in a netcdf file for further use. ie
> the correlation, lags and significance if possible. Is there a way to get
> the corr and lags from the axis.xcorr ?? any help in this matter will be
> greatly appreciated.
> Sudheer
>
Sudheer,
A call to axes.xcorr returns the lags, correlation (from np.correlate) and
the line artists on the figure.
In IPython, doing "plt.xcorr??" should provide sufficient information. It's
a pretty simple method.
-paul
------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users