Re: [Matplotlib-users] Simple text style question

2010-01-13 Thread Gökhan Sever
On Wed, Jan 13, 2010 at 11:22 AM, Jae-Joon Lee wrote: > On Wed, Jan 13, 2010 at 11:32 AM, Gökhan Sever > wrote: > > I printed the PNG and PS file. The result looks same on paper as well. I > was > > comparing the two ps file one from IDL one from MPL. IDL looks neat both > on > > the screen and

Re: [Matplotlib-users] Adding points gradually to the plot

2010-01-13 Thread Jonathan Slavin
Instead of appending the points to xs and ys and doing plot(xs,ys) each time, why not just do plot(x,y)? If you want to save the data in the xs, ys arrays you can do that without replotting the entire array. Jon On Wed, 2010-01-13 at 10:14 -0800, Someday... wrote: > Hello all, > > I am looking f

[Matplotlib-users] Adding points gradually to the plot

2010-01-13 Thread Someday...
Hello all, I am looking for a way to add points gradually to the plot over time. Currently, in every iteration, I plot the entire array, like: fig = plt.figure(); ax = fig.gca() xs = array([]) ys = array([]) while not done: // do some calculation.. // x=???, y=??? xs = append(xs,x); ys =

Re: [Matplotlib-users] Simple text style question

2010-01-13 Thread Jae-Joon Lee
On Wed, Jan 13, 2010 at 11:32 AM, Gökhan Sever wrote: > I printed the PNG and PS file. The result looks same on paper as well. I was > comparing the two ps file one from IDL one from MPL. IDL looks neat both on > the screen and printed. > Are you saying that the printout of the mpl-created postsc

Re: [Matplotlib-users] Simple text style question

2010-01-13 Thread Gökhan Sever
On Wed, Jan 13, 2010 at 10:32 AM, Gökhan Sever wrote: > > > On Wed, Jan 13, 2010 at 10:08 AM, Jae-Joon Lee wrote: > >> On Tue, Jan 12, 2010 at 9:56 PM, Gökhan Sever >> wrote: >> > What could be causing this discrepancy? Is there any way to use an >> > alternative PS creator with MPL? or an option

Re: [Matplotlib-users] "Ordinal must be >= 1" with SuplotHost and dates

2010-01-13 Thread Jae-Joon Lee
The workarounds suggested in this thread does not work? To me, the ordinal thing is not actually a bug, but you need some extra caution to avoid this error happening. The issue with the label roration is a different matter though. Regards, -JJ On Wed, Jan 13, 2010 at 8:16 AM, Rodribat wrote:

Re: [Matplotlib-users] Simple text style question

2010-01-13 Thread Gökhan Sever
On Wed, Jan 13, 2010 at 10:08 AM, Jae-Joon Lee wrote: > On Tue, Jan 12, 2010 at 9:56 PM, Gökhan Sever > wrote: > > What could be causing this discrepancy? Is there any way to use an > > alternative PS creator with MPL? or an option to increase e.g. bits per > > pixel option somewhere in the conf

Re: [Matplotlib-users] How can I customize a legend?

2010-01-13 Thread Jae-Joon Lee
You may consider to use proxy artists. plot([1,2,3], "s-") plot([1,3,2], "d-") l1 = Line2D([0], [0], marker="s", color="k") l2 = Line2D([0], [0], marker="d", color="k") p1 = Rectangle((0, 0), 1, 1, fc="b", ec="none") p2 = Rectangle((0, 0), 1, 1, fc="g", ec="none") legend([p1, p2, l1, l2], ["col

Re: [Matplotlib-users] mouse tracking with two y-axes

2010-01-13 Thread John Hunter
On Wed, Jan 13, 2010 at 6:59 AM, boriq wrote: > > Hi all, > > i have a plot with 2 y-axes and 1 x-axis. The mouse pointer shows the > y-coordinates of the second y-axis, but I want the mouse pointer to show the > y-coordinate of the first y-axis. > > Is there a way how to switch the mouse pointer

Re: [Matplotlib-users] Save eps ghostscript error

2010-01-13 Thread John Reid
Jae-Joon Lee wrote: > John, > > Would you do me a favor and open a ticket for this? So that other > developers can take a look in the future. Have done: https://sourceforge.net/tracker/?func=detail&aid=2931430&group_id=80706&atid=560720 --

Re: [Matplotlib-users] Simple text style question

2010-01-13 Thread Jae-Joon Lee
On Tue, Jan 12, 2010 at 9:56 PM, Gökhan Sever wrote: > What could be causing this discrepancy? Is there any way to use an > alternative PS creator with MPL? or an option to increase e.g. bits per > pixel option somewhere in the configuration? > There can be a lot of things. However, you cannot ju

[Matplotlib-users] How can I customize a legend?

2010-01-13 Thread Jeremy Conlin
I have a plot that I need to add a customized legend. (The plot is attached to this email.) I want to show that each color represents something as well as each marker symbol. For example: Green -> a Square -> j Blue -> b Circle-> k Red-> c

Re: [Matplotlib-users] Save eps ghostscript error

2010-01-13 Thread Jae-Joon Lee
John, Would you do me a favor and open a ticket for this? So that other developers can take a look in the future. http://sourceforge.net/tracker/?atid=560720&group_id=80706&func=browse Please specify the options you're using, e.g., distiller, usetex, ghostscript version, etc. Regards, -JJ On

[Matplotlib-users] mouse tracking with two y-axes

2010-01-13 Thread boriq
Hi all, i have a plot with 2 y-axes and 1 x-axis. The mouse pointer shows the y-coordinates of the second y-axis, but I want the mouse pointer to show the y-coordinate of the first y-axis. Is there a way how to switch the mouse pointer to the first y-axis? Thanks & regards, peter -- View thi

Re: [Matplotlib-users] "Ordinal must be >= 1" with SuplotHost and dates

2010-01-13 Thread Rodribat
Hi matplotlib users! Did someone solve the problem of use fig.autofmt_xdate() function with SubplotHost object? I googled for it and I found this question only here, without solution. Is there a bug? Anyone knows someway to solve this? Thank you, []'s Rodrigo Batista David GUERINEAU wrote:

Re: [Matplotlib-users] Save eps ghostscript error

2010-01-13 Thread John Reid
Jae-Joon Lee wrote: > I'm afraid that there is not much I can help anymore. > > Just in case, does the same error occur when my patch is not applied? > > Is it an error or just a warning? If it is an error, can you post a > full traceback? I just want to know what step causes that. > > Also, a