Re: [Matplotlib-users] Annotate value of a variable with ax.annotate?

2011-05-01 Thread Malte Dik
Hi, Pau > Hello, > > I am trying to print in the plot the value of a time variable which I > obtain like this > > Time = MBH_inst[0] # Column 1 > > This should be placed on the top right part of the plot showing the current > time > > Time = XXX yrs > > But I do not know how to pass t

Re: [Matplotlib-users] tk development packages

2010-07-24 Thread Malte Dik
Hi, > Can anyone please tell me about the tk development packages. Where can I > find the tk development packages . This heavily depends on which operating system and distribution you are using. Always give as much info as you can about your system so others can help you. Have a nice day, M

Re: [Matplotlib-users] Display the 'full' value on y axis

2010-07-19 Thread Malte Dik
Hi, as you can see here (lotlib.sourceforge.net/api/ticker_api.html), you need to set your formatter to either ScalarFormatter and set it up, so no offset is used or FormatStrFormatter with something like %d. Kind regards, Malte Dik

Re: [Matplotlib-users] Unequal size gangplots

2010-06-21 Thread Malte Dik
Jeremy Conlin > I have followed this excellent example: > http://matplotlib.sourceforge.net/examples/pylab_examples/ganged_plots.html > > but I would like my plots to be 2/3 and 1/3 of the total height of the > figure (I only have 2 plots). What do I have to do to specify the > relative sizes of

Re: [Matplotlib-users] matplotlab freezes with a graph and toolbar

2010-06-16 Thread Malte Dik
Hi, is it helpful to write that both of you examples doesn't crash anything for me (except the second only being able to be "$kill"ed)? m...@eee:~$ uname -a Linux eee 2.6.29-2-686 #1 SMP Sun May 17 17:56:29 UTC 2009 i686 GNU/Linux m...@eee:~$ python --version Python 2.5.5 Regards, Malte

Re: [Matplotlib-users] Placing images on figures

2010-06-16 Thread Malte Dik
Hi, Eamon Caddigan > The reason my initial attempts failed was because I (erroneously) > assumed that the default axis spanned (0, 0), (1, 1). Now I that I > know better, I can place an axis for each image in the right place and > everything looks fine. > > However, I'm still interested in knowi

Re: [Matplotlib-users] multiple lines

2010-06-01 Thread Malte Dik
Howard Sun > Sorry for the newbie question, how do you plot one x with multiple ys. In > below data, x column is followed by 5 y columns: Many thanks! > Howard > > 2 1.e+00 6.6232e-02 9.9392e-03 2.2992e-02 3.8111e-07 > 3 6.3664e-01 1.0269e-01 7.9107e-03 1.8254e-02 1.1391e-07 > 4 2.7590e-01 4.

Re: [Matplotlib-users] Formatting X-axis

2010-05-17 Thread Malte Dik
Hi, > Is there any API to draw the lines between the labels? > I guess its not possible with this tool. You could use the ticks' properties (one of their children is a matplotlib.lines.Line2D instance which you could modify to your wishes). The second possibility is see is you put a box with on