Re: [Matplotlib-users] many plots

2012-02-05 Thread Jae-Joon Lee
On Sat, Feb 4, 2012 at 1:27 AM, Saurav Pathak sau...@sas.upenn.edu wrote: Is there another way to do this more efficiently? I recommend you to use LineCollection, which should be much efficient. http://matplotlib.sourceforge.net/examples/api/collections_demo.html Regards, -JJ

Re: [Matplotlib-users] legend not draggable when secondary y-axis present

2012-02-05 Thread Jae-Joon Lee
For the legend to be picked by mouse, it must be placed in the top most axes. ax = subplot(111) l1, = ax.plot([1,3,2]) ax2 = ax.twinx() lab = ax2.legend([l1], [test]) I hope this clarifies your issue. If not, please post a simple but complete example that demonstrates your problem. Regards,

Re: [Matplotlib-users] Why pixel marker size is 4 pixels?

2012-02-05 Thread Jae-Joon Lee
How are you plotting your points. If you use *plot*, there is a *markersize* parameter. If you use *scatter*, the third argument controls the marker size. But you may actually complaining about other issues, e.g., antialiasing, etc. So, if above are not your answer, please post a complete

Re: [Matplotlib-users] legend not draggable when secondary y-axis present

2012-02-05 Thread gsal
Yeap, that did the trick. Thanks. -- View this message in context: http://old.nabble.com/legend-not-draggable-when-secondary-y-axis-present-tp33163397p33266687.html Sent from the matplotlib - users mailing list archive at Nabble.com.

Re: [Matplotlib-users] Why pixel marker size is 4 pixels?

2012-02-05 Thread Chris
Thanks JJ. The problem seems not to be a size issue -- markersize has no effect when use marker=, (pixel). I have also tried to turn off aa, and it doesn't help either. I also tried different backends. The PNG output from Agg and Cairo is slightly different: Agg's point has 4 solid pixel,

[Matplotlib-users] axes.hist gets fooled by intermixed colors as strings and RGB

2012-02-05 Thread Martin Mokrejs
HI, I have troubles getting to wirk a hitogram plot. I have colors in RGB as tuples of 3 values and also some colors defined as string, e.g. 'orange'. I get the folowing error: File /usr/lib64/python2.7/site-packages/matplotlib/pyplot.py, line 2332, in hist ret = ax.hist(x, bins, range,