Re: [Matplotlib-users] Tick labels and subscripts

2008-05-22 Thread Friedrich Hagedorn
On Thu, May 22, 2008 at 03:25:41PM -0700, Christopher Brown wrote: > Hi Users, > > What is the best way to add a subscript to a tick label using the > default font? Hm, could you give a short example of what you want? I do subscripts with this code: In [1]: subplot(111) Out[1]: In [2]: xticks

[Matplotlib-users] Tick labels and subscripts

2008-05-22 Thread Christopher Brown
Hi Users, What is the best way to add a subscript to a tick label using the default font? -- Chris - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/M

Re: [Matplotlib-users] plotting data with nan

2008-05-22 Thread Michael Droettboom
You didn't mention the version of matplotlib you are using. There are some known bugs using NaNs on 0.90.x and 0.91.x that have been fixed on the trunk. Unfortunately, it will be difficult to backport these fixes. Have you tried using masked arrays instead of arrays with NaNs? Also, can you p

Re: [Matplotlib-users] force the scale of one scatter plot on a second scatter plot

2008-05-22 Thread John Hunter
On Wed, May 21, 2008 at 10:57 AM, PaterMaximus <[EMAIL PROTECTED]> wrote: > I want to make one scatter plot and use the same scales on another. I think > I seen getting the Axes from the first scatter plot using v=axis() and then > setting them on second with axis(v) but I can not get to work. Any

Re: [Matplotlib-users] Legend labels - interaction with functions

2008-05-22 Thread John Hunter
On Thu, May 22, 2008 at 9:45 AM, Jouni K. Seppänen <[EMAIL PROTECTED]> wrote: > I think this behavior of legend is suboptimal, but there is a logic to > it: by default you label objects in the order you draw them, and the > histogram plot happens to consist of several similarly-colored objects. T

Re: [Matplotlib-users] plotting data with nan

2008-05-22 Thread Fabrice Silva
Correction : > In the matplotlibrc, I have : > maskedarray : False -- Fabrice Silva <[EMAIL PROTECTED]> LMA UPR CNRS 7051 - équipe S2M - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visua

Re: [Matplotlib-users] Set the right reply adress

2008-05-22 Thread Alan G Isaac
On Thu, 22 May 2008, Friedrich Hagedorn apparently wrote: > I hope I can change my habit to type 'g' instead of 'r'. Or use an email client that allows you to register your email lists to address this problem. (Such as Mahogany mail.) Cheers, Alan Isaac --

Re: [Matplotlib-users] changing ticklabels color

2008-05-22 Thread Chiara Caronna
> p.setp(ax1.get_yticklabels(), color='r') This worked! Thanks a lot! Chiara > To: matplotlib-users@lists.sourceforge.net > From: [EMAIL PROTECTED] > Date: Thu, 22 May 2008 17:52:09 +0300 > Subject: Re: [Matplotlib-users] changing ticklabels color > > Chiara Caronna <[EMAIL PROTECTED]> writes:

Re: [Matplotlib-users] Set the right reply adress

2008-05-22 Thread Friedrich Hagedorn
On Thu, May 22, 2008 at 05:59:23PM +0300, Jouni K. Seppänen wrote: > Friedrich Hagedorn <[EMAIL PROTECTED]> writes: > > > could you set the right reply-adress in the mails from the > > matplotlib mailinglist? > > This is something of a controversial issue. One side is presented at > > http://ww

Re: [Matplotlib-users] changing ticklabels color

2008-05-22 Thread Jouni K . Seppänen
Chiara Caronna <[EMAIL PROTECTED]> writes: > ax1=p.subplot(212) > ax1.set_xlabel('t [sec]') > ax1.set_ylabel('g^2(q,t)') > ax1.set_yticklabels(color='r') You could do for label in ax1.get_yticklabels(): label.set_color('r') or use the setp shortcut: p.setp(ax1.get_yticklabels(), color='r') --

Re: [Matplotlib-users] Set the right reply adress

2008-05-22 Thread Johann Rohwer
This has been discussed before. See: http://sourceforge.net/mailarchive/message.php?msg_id=4756A726.1080104%40gmx.net Johann Friedrich Hagedorn wrote: > Hello List-Admin, > > could you set the right reply-adress in the mails from the > matplotlib mailinglist? > > Everytime when I what to repl

Re: [Matplotlib-users] changing ticklabels color

2008-05-22 Thread Friedrich Hagedorn
On Thu, May 22, 2008 at 02:30:24PM +, Chiara Caronna wrote: >Hello, >I would like to change the color of the yticklabels. I tried to use this >command: > >ax1=p.subplot(212) [...] >ax1.set_yticklabels(color='r') * Solution 1: In [1]: ax1=subplot(111) In [2]: setp(ax1.get

Re: [Matplotlib-users] Set the right reply adress

2008-05-22 Thread Jouni K . Seppänen
Friedrich Hagedorn <[EMAIL PROTECTED]> writes: > could you set the right reply-adress in the mails from the > matplotlib mailinglist? This is something of a controversial issue. One side is presented at http://www.unicom.com/pw/reply-to-harmful.html and I'm sure the other one has a web page so

Re: [Matplotlib-users] Legend labels - interaction with functions

2008-05-22 Thread Jouni K . Seppänen
David Simpson <[EMAIL PROTECTED]> writes: > This is probably my lack of knowledge of python, but how do I set up > legend labels for some bar-plots that have been produced inside a > function. For example, the following will nicely plot my bar-plots, but > then legend doesn't know about the colo

[Matplotlib-users] Set the right reply adress

2008-05-22 Thread Friedrich Hagedorn
Hello List-Admin, could you set the right reply-adress in the mails from the matplotlib mailinglist? Everytime when I what to reply to a message I have to set the right email-adress to matplotlib-users@lists.sourceforge.net otherwise the email would sent only as a privat mail. I use mutt an

Re: [Matplotlib-users] Legend labels - interaction with functions

2008-05-22 Thread Friedrich Hagedorn
On Thu, May 22, 2008 at 02:52:13PM +0200, David Simpson wrote: > This is probably my lack of knowledge of python, but how do I set up > legend labels for some bar-plots that have been produced inside a > function. For example, the following will nicely plot my bar-plots, but > then legend doesn't

[Matplotlib-users] changing ticklabels color

2008-05-22 Thread Chiara Caronna
Hello, I would like to change the color of the yticklabels. I tried to use this command: ax1=p.subplot(212) ax1.set_xlabel('t [sec]') ax1.set_ylabel('g^2(q,t)') ax1.set_yticklabels(color='r') but it gives an error: TypeError: set_yticklabels() takes at least 2 non-keyword arguments (1 given) i

[Matplotlib-users] Legend labels - interaction with functions

2008-05-22 Thread David Simpson
This is probably my lack of knowledge of python, but how do I set up legend labels for some bar-plots that have been produced inside a function. For example, the following will nicely plot my bar-plots, but then legend doesn't know about the colours used, so here just uses black for both labels.

Re: [Matplotlib-users] force the scale of one scatter plot on a second scatter plot

2008-05-22 Thread Matthias Michler
Hello, On Wednesday 21 May 2008 17:57:28 PaterMaximus wrote: > I want to make one scatter plot and use the same scales on another. I think > I seen getting the Axes from the first scatter plot using v=axis() and then > setting them on second with axis(v) but I can not get to work. Any help > appre