[Matplotlib-users] merging two axes from two different figures (Tk canvas) into one

2008-01-16 Thread Auré Gourrier
Dear all, I wrote an application allowing to display an imshow image in one part of a Tk GUI and the corresponding colorbar in another part. This allows me to work on the image with more freedom. My problem is then to save the result which implies getting the 2 axes into another figure. I've

Re: [Matplotlib-users] usetex=True

2008-01-16 Thread Michael Droettboom
Thanks. I think that's actually unrelated to your patch -- but is new since 0.91.2. Fixed in SVN r4872. Thanks for your help, Mike Paul Novak wrote: The patch for legends works except for LineCollection. For any call to legend(), I get the errors below, Paul Traceback (most recent

Re: [Matplotlib-users] Bug in pylab?

2008-01-16 Thread Michael Droettboom
I'm having an enormous sense of deja vu... There was a very similar bug filed here, http://sourceforge.net/tracker/index.php?func=detailaid=1757315group_id=80706atid=560720 which I thought I had resolved in revision 4197 (which would have made it into all of the 0.91.x releases). My fix there

Re: [Matplotlib-users] FuncFormatter and Colorbar

2008-01-16 Thread Thorsten Kranz
Hi MAtthias, yes, I can confirm this behavior. This is what I get as well. But the solution is easy: just get rid of th line cb.ax.yaxis.set_major_formatter(formatter) We don't need it anymore and it messes it all up. Without it, it should work. Greetings, Thorsten 2008/1/11, Matthias Michler

Re: [Matplotlib-users] Bug in pylab?

2008-01-16 Thread Darren Dale
On Wednesday 16 January 2008 08:22:45 am Michael Droettboom wrote: I'm having an enormous sense of deja vu... There was a very similar bug filed here, http://sourceforge.net/tracker/index.php?func=detailaid=1757315group_id=8 0706atid=560720 I think it is identical, I overlooked the original

Re: [Matplotlib-users] Is Gtk draw() slow?

2008-01-16 Thread Christopher Barker
Michael Droettboom wrote: It's sort of a pygtk issue -- it would have to be rewritten to take numpy arrays not quite -- it would have to be re-written to use the array interface, which is different, as that can be done without requiring numpy, or its headers. which is probably unlikely

[Matplotlib-users] TrueType font embedding in eps problem.

2008-01-16 Thread Jordan Dawe
Ok... I'm running python 2.5 on winxp. I recently upgraded from matplotlib 88ish to 91.1, and now the font embedding in eps files no longer works for me: all fonts end up as paths when I open an eps file in illustrator, and I can't do any font editing like I could before I upgraded. I found

[Matplotlib-users] Distance of yticklabels from axis

2008-01-16 Thread Thorsten Kranz
Hi list! I have another question, which hopefully is not that hard. I want to control the distance of the ticklabels from the axiy. How can I do this? Maybe by one of the rc-Parameters? Thanks in advance, Thorsten - This

[Matplotlib-users] multiline math text

2008-01-16 Thread BL
- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ Matplotlib-users

Re: [Matplotlib-users] Distance of yticklabels from axis

2008-01-16 Thread Darren Dale
On Wednesday 16 January 2008 01:02:04 pm Thorsten Kranz wrote: Hi list! I have another question, which hopefully is not that hard. I want to control the distance of the ticklabels from the axiy. How can I do this? Maybe by one of the rc-Parameters? Yes, see the (x,y)tick.(major,minor).pad

[Matplotlib-users] x axis alignment with bar graph

2008-01-16 Thread John Harrison
bump. please...? Begin forwarded message: I have some code that produces a series of graphs of data over time. For the most part it works well, but for certain combinations of dates the two plots do not line up, due to the width of the bars in the first subplot. What is the best way

Re: [Matplotlib-users] x axis alignment with bar graph

2008-01-16 Thread John Harrison
Thanks Eric! Here is corrected code that works: import matplotlib from datetime import * import time from pylab import * def toOrd(strDate): return datetime(*time.strptime(strDate,%m/%d/%y)[0:5]).toordinal() def main(): startDate = toOrd(05/24/05) endDate =

Re: [Matplotlib-users] formatting axis to percent notation

2008-01-16 Thread John Hunter
On Jan 16, 2008 1:03 PM, Kevin Christman [EMAIL PROTECTED] wrote: I'm new to matplotlib. Currently the x-axis shows numbers from 0 to 1. I would like it to show it in percent notation (e.g. 0% to 100%). How do I do this in matplotlib? You can either multiply your x data by 100 (where x is

Re: [Matplotlib-users] Is Gtk draw() slow?

2008-01-16 Thread John Hunter
On Jan 15, 2008 7:46 AM, Michael Droettboom [EMAIL PROTECTED] wrote: Ah -- just thought of something else. If I adjust simple_plot_fps.py to have 100,000 data points rather than 1,000 I see something that starts to match with what you're seeing: GtkAgg: wallclock: 4.23297405243 user: 3.33

Re: [Matplotlib-users] TrueType font embedding in eps problem.

2008-01-16 Thread Jordan Dawe
Setting ps.useafm = True while ps.fonttype = 42 allows illustrator to open the eps files again and gives me back text editing capability, but I don't have any control over the typeface anymore, it just defaults to Helvetica. Jordan

[Matplotlib-users] colorbar and set_under

2008-01-16 Thread Carol Leger
Hi folks, I have encountered a problem using colorbar and set_under with a color map that has only 32 colors. The downward arrow is not filled with the correct color. If 64 colors are used, the arrow is filled correctly. I actually want 8 colors. The test code is essentially

Re: [Matplotlib-users] Cross hair and polygon drawing tools.

2008-01-16 Thread Mephisto
For some simple but effective Python code you can use to create a mask similar to that provided by the Matlab roipoly function, see http://www.ariel.com.au/a/python-point-int-poly.html http://www.ariel.com.au/a/python-point-int-poly.html . The code seems to be quite effective. Venkat Ramanan

[Matplotlib-users] Tkagg segfault on standard examples

2008-01-16 Thread Rostislav Chudoba
Hi all, I am unable to use the TkAgg backend on opensuse linux 10.2 or 10.3? The standard examples embedded_in_tk.py embedded_in_tk2.py end up with a segmentation fault. In debugger, the following message is reported Program received signal SIGSEGV, Segmentation fault. [Switching to Thread

[Matplotlib-users] gtk backend failure on systems without gtk

2008-01-16 Thread Christopher Fonnesbeck
On some OSX systems, pylab is failing on importing pylab because of lack of GTK. This appears to be a bug; if the system doesnt have gtk, it should simply not import that backend to begin with. from matplotlib import pylab Traceback (most recent call last): File stdin, line 1, in module

Re: [Matplotlib-users] parametric plot of two sets of discrete data

2008-01-16 Thread John Hunter
On Jan 2, 2008 10:25 PM, Aitor Gonzalez [EMAIL PROTECTED] wrote: Hi, I have some two sets of data with their x- and y-coordinates, (x1, y1) and (x2, y2). I want to plot these curves as a parametric plot: # from numpy import * from pylab import * t = arange ( 0.0 , pi/2 , 0.05)

Re: [Matplotlib-users] Cross hair and polygon drawing tools.

2008-01-16 Thread John Hunter
On Jan 4, 2008 4:33 PM, Mephisto [EMAIL PROTECTED] wrote: For some simple but effective Python code you can use to create a mask similar to that provided by the Matlab roipoly function, see http://www.ariel.com.au/a/python-point-int-poly.html

Re: [Matplotlib-users] gtk backend failure on systems without gtk

2008-01-16 Thread John Hunter
On Jan 13, 2008 7:26 PM, Christopher Fonnesbeck [EMAIL PROTECTED] wrote: On some OSX systems, pylab is failing on importing pylab because of lack of GTK. This appears to be a bug; if the system doesnt have gtk, it should simply not import that backend to begin with. matplotlib does not do

Re: [Matplotlib-users] colorbar and set_under

2008-01-16 Thread Eric Firing
Carol Leger wrote: Hi folks, I have encountered a problem using colorbar and set_under with a color map that has only 32 colors. The downward arrow is not filled with the correct color. If 64 colors are used, the arrow is filled correctly. I actually want 8 colors. The test code is