Hi,
When I try to plot a time series of numpy masked array data containing 2 values
and with one of them masked out my machine chokes (memory usage of more than
900 mb for the script below). The culprit seem to be my use of use the
matplotlib.dates.HourLocator on the x axis.
Here is a small script illustrating the problem:
---
import numpy as npy
import pylab, matplotlib
data = npy.ma.masked_values([0, 1], 0)
dates = npy.array([731186.91666667, 731187.04166667])
#This does not help either
#dates = npy.ma.array([731186.91666667, 731187.04166667], mask=data.mask)
pylab.plot(dates, data)
majloc = matplotlib.dates.HourLocator(interval=3)
ax = pylab.gca()
ax.xaxis.set_major_locator(majloc)
pylab.savefig('test.png')
---
System info:
Python 2.5.1 (r251:54863, Oct 5 2007, 13:36:32)
[GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)] on linux2
>>> print matplotlib.__version__
0.90.1
>>> print numpy.__version__
1.0.3
Regards,
Jesper
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users