[Matplotlib-users] Axis Limits and Dash Text Misbehaviours

2008-06-27 Thread Andrea Gavana
Hi All, I have switched from matplotlib 0.91.2 to 0.98.1, and I have noticed a couple of strange behaviours (I am not using PyLab, but matplotlib embedded in wxPython): 1) If I use: ylims = self.myAxis.get_ylim() And then I add other lines to the plot, the value of ylims is modified. It

Re: [Matplotlib-users] offset_copy in transforms.py... Gone?

2008-06-27 Thread Michael Droettboom
Yes, this is one of the casualties of the transforms refactoring in 0.98. The new transformation framework is documented here: http://matplotlib.sourceforge.net/doc/html/devel/transformations.html Most of the changes from 0.91 to 0.98 are documented here:

Re: [Matplotlib-users] Axis Limits and Dash Text Misbehaviours

2008-06-27 Thread Michael Droettboom
Andrea Gavana wrote: Hi All, I have switched from matplotlib 0.91.2 to 0.98.1, and I have noticed a couple of strange behaviours (I am not using PyLab, but matplotlib embedded in wxPython): 1) If I use: ylims = self.myAxis.get_ylim() And then I add other lines to the plot, the value

[Matplotlib-users] Fwd: offset_copy in transforms.py... Gone?

2008-06-27 Thread Andrea Gavana
-- Forwarded message -- From: Andrea Gavana [EMAIL PROTECTED] Date: Jun 27, 2008 1:53 PM Subject: Re: [Matplotlib-users] offset_copy in transforms.py... Gone? To: Michael Droettboom [EMAIL PROTECTED] Hi Michael, On 6/27/08, Michael Droettboom wrote: Yes, this is one of the

[Matplotlib-users] GTK pylab console

2008-06-27 Thread Nicolas Rougier
Hi all, I've developed a GTK/Python/Pylab console that is able to display most matplotlib figures directly within the console and handle matplotlib mouse events properly. Screenshots and sources are available at: http://www.loria.fr/~rougier/pylab.html I've tested several examples from

[Matplotlib-users] broken savefig('name.pdf') with usetex, Qt4Agg

2008-06-27 Thread George Nurser
Works OK with WXAgg, but with latest svn, r5683, OS X 10.5.3, Qt4Agg backend, dvipnghack: True, text.usetex : True running from ipython -pylab: plot([1,2,3]) savefig('123_2.pdf') gives.. ERROR: An unexpected error occurred while tokenizing input The following traceback may be corrupted

Re: [Matplotlib-users] GTK pylab console

2008-06-27 Thread Michael Droettboom
Very nice. I like the idea of inline plots -- less of an interrupted flow. Have you looked at the similar project reinteract? (www.reinteract.org) It's a little more aggressively different, for what it's worth. The author seems to have lost steam in the last few months, but it has some

Re: [Matplotlib-users] GTK pylab console

2008-06-27 Thread Nicolas Rougier
Thanks. I've stumbled across reinteract and found that the inline plot has been done using the previous version of the pylab console (http://blog.fishsoup.net/2007/11/10/reinteract-better-interactive-python/) Concerning ipython, I've once designed the code to integrate it but since then I got a

[Matplotlib-users] bug: fewer colors in encapsulated postscript versions than PNG

2008-06-27 Thread Michael Hearne
I noticed a problem with colors in rendered encapsulated postscript files, and fortunately I was able to replicate with a modified version of one of Jeff Whitaker's example scripts, which I have attached. The EPS version of the plot has black contour lines where they are colored in the PNG

Re: [Matplotlib-users] Linking non framework Tcl/Tk on Mac OS X

2008-06-27 Thread Charlie Moad
You'll need to edit setupext.py to not inject the -framework Tcl -framework Tk flags. - Charlie On Fri, Jun 27, 2008 at 12:36 AM, Adam Mercer [EMAIL PROTECTED] wrote: Hi I'm trying to track down a problem present in MacPorts Matplotlib build and the TkAgg backend. It appears that Matplotlib

Re: [Matplotlib-users] bug: fewer colors in encapsulated postscript versions than PNG

2008-06-27 Thread Michael Droettboom
There have subsequently been a number of fixes to how state is saved and restored in the Postscript backend. (Especially in revisions 5082, 5083 and 5133). Comparing your eps file with mine, that seems the most likely culprit of the bug. Can you update to 0.98.1 or later (or the current SVN

[Matplotlib-users] Changing backend with ipython

2008-06-27 Thread Andrew Jaffe
Hi all, All the usual apologies if this is a FAQ, but I can't find it. Is there any way to change the backend interactively when using ipython? Best of all would a way to make changes in the middle of a session, but even being able to do it at the beginning without editing matplotlibrc would

Re: [Matplotlib-users] Changing backend with ipython

2008-06-27 Thread John Hunter
On Fri, Jun 27, 2008 at 12:52 PM, Andrew Jaffe [EMAIL PROTECTED] wrote: Hi all, All the usual apologies if this is a FAQ, but I can't find it. Is there any way to change the backend interactively when using ipython? Take a look at the pylab/pyplot switch_backends function

Re: [Matplotlib-users] Changing backend with ipython

2008-06-27 Thread Andrew Jaffe
Hi John, Thanks for the very fast response, but it doesn't quite work for my use case. I don't know if it's because my default is interactive, or ipython on general, or something else... n21:~/work/Pointing ipython -pylab -nobanner In [1]: switch_backend('Agg')

Re: [Matplotlib-users] Changing backend with ipython

2008-06-27 Thread Eric Firing
Andrew, The traceback shows that you are tripping over something that has been changed since the version you are using, so it might work if you update your mpl, preferably from svn. I think the relevant change was made by John quite recently, but I haven't looked it up. Eric Andrew Jaffe

[Matplotlib-users] Scipy08 Paper submission deadline extention to Monday 30th

2008-06-27 Thread Gael Varoquaux
The deadline for submitting abstracts to the Scipy conference was tonight. In order to give you more time to submit excellent abstracts, the review committee is extending the deadline to Monday (June 30th), and will work hastily to get all of them reviewed in time for the program announcement, on

Re: [Matplotlib-users] Changing backend with ipython

2008-06-27 Thread Andrew Jaffe
Hi- [OK, sorry for all the top-posting...] Anyway, if I move to the current svn, I get In [1]: switch_backend('Agg') --- TypeError Traceback (most recent call last)

Re: [Matplotlib-users] Changing backend with ipython

2008-06-27 Thread John Hunter
On Fri, Jun 27, 2008 at 1:31 PM, Andrew Jaffe [EMAIL PROTECTED] wrote: Hi- [OK, sorry for all the top-posting...] Anyway, if I move to the current svn, I get In [1]: switch_backend('Agg') --- TypeError

Re: [Matplotlib-users] color xy plot

2008-06-27 Thread sordnay
John Hunter-4 wrote: On Fri, Jun 20, 2008 at 6:14 PM, sordnay [EMAIL PROTECTED] wrote: Hi all, I'm trying to plot in 2D, 3 variables from time series, instead of volume I want color for the third variable. I have partial success with a scatter plot, but I'm unable to manage the

Re: [Matplotlib-users] Changing backend with ipython

2008-06-27 Thread Andrew Jaffe
Hi John, John Hunter wrote: On Fri, Jun 27, 2008 at 1:31 PM, Andrew Jaffe [EMAIL PROTECTED] wrote: Hi- [OK, sorry for all the top-posting...] Anyway, if I move to the current svn, I get ... Try removing all the matplotlib installs, eggs, etc. Something is getting confused, because

Re: [Matplotlib-users] Axis Limits and Dash Text Misbehaviours

2008-06-27 Thread Michael Droettboom
Andrea Gavana wrote: 2) The dashed text positioning is wrong, you can see it by running dashpointlabel.py in the matplotlib_examples_0.98.1\examples\pylab_examples: the position of the values should be at the other end of the dash, not over the plotted point. I believe I have this fixed

Re: [Matplotlib-users] Changing backend with ipython

2008-06-27 Thread Fernando Perez
On Fri, Jun 27, 2008 at 10:52 AM, Andrew Jaffe [EMAIL PROTECTED] wrote: Hi all, All the usual apologies if this is a FAQ, but I can't find it. Is there any way to change the backend interactively when using ipython? Best of all would a way to make changes in the middle of a session, but

Re: [Matplotlib-users] Changing backend with ipython

2008-06-27 Thread Andrew Jaffe
Hi, Fernando Perez wrote: On Fri, Jun 27, 2008 at 10:52 AM, Andrew Jaffe [EMAIL PROTECTED] wrote: Hi all, All the usual apologies if this is a FAQ, but I can't find it. Is there any way to change the backend interactively when using ipython? Best of all would a way to make changes in the

Re: [Matplotlib-users] Changing backend with ipython

2008-06-27 Thread John Hunter
On Fri, Jun 27, 2008 at 1:49 PM, Andrew Jaffe [EMAIL PROTECTED] wrote: In fact I deleted my whole svn directory and re-updated, but no change. I'm pretty sure I've done this correctly... You also need to delete previous installs of matplotlib. If it matters, I'm installing as an egg.

Re: [Matplotlib-users] Changing backend with ipython

2008-06-27 Thread Andrew Jaffe
Hi John, John Hunter wrote: In fact I deleted my whole svn directory and re-updated, but no change. I'm pretty sure I've done this correctly... You also need to delete previous installs of matplotlib. If it matters, I'm installing as an egg. [python setupegg.py build bdist_egg;

Re: [Matplotlib-users] Changing backend with ipython

2008-06-27 Thread Andrew Jaffe
Hi all, I should point out that for my actual use case, Fernando explained the right thing to do: start ipython *without* pylab, in which case use('Agg') [for example] is legal. Andrew Andrew Jaffe wrote: Hi, Fernando Perez wrote: On Fri, Jun 27, 2008 at 10:52 AM, Andrew Jaffe [EMAIL

[Matplotlib-users] Multiple lines with axhline?

2008-06-27 Thread Angus McMorland
Hi all, I sometimes find myself wanting to plot a series of lines using axhline or axvline. Is there a mechanism to do this that I'm missing, or would it be difficult to support the positional parameter being an array of values at which to draw each line? Angus. -- AJC McMorland, PhD candidate

Re: [Matplotlib-users] Multiple lines with axhline?

2008-06-27 Thread Angus McMorland
2008/6/27 Angus McMorland [EMAIL PROTECTED]: Hi all, I sometimes find myself wanting to plot a series of lines using axhline or axvline. Is there a mechanism to do this that I'm missing, or would it be difficult to support the positional parameter being an array of values at which to draw

Re: [Matplotlib-users] bug: fewer colors in encapsulated postscript versions than PNG

2008-06-27 Thread Michael Hearne
I upgraded using svn, and it solved the problem. Thanks for the tip! --Mike Michael Droettboom wrote: There have subsequently been a number of fixes to how state is saved and restored in the Postscript backend. (Especially in revisions 5082, 5083 and 5133). Comparing your eps file with

Re: [Matplotlib-users] Linking non framework Tcl/Tk on Mac OS X

2008-06-27 Thread Adam Mercer
On Fri, Jun 27, 2008 at 12:03 PM, Charlie Moad [EMAIL PROTECTED] wrote: You'll need to edit setupext.py to not inject the -framework Tcl -framework Tk flags. Thanks Charlie, that does the trick. Cheers Adam - Check out

Re: [Matplotlib-users] Axis Limits and Dash Text Misbehaviours

2008-06-27 Thread Andrea Gavana
Hi Michael, On Fri, Jun 27, 2008 at 7:54 PM, Michael Droettboom wrote: Andrea Gavana wrote: 2) The dashed text positioning is wrong, you can see it by running dashpointlabel.py in the matplotlib_examples_0.98.1\examples\pylab_examples: the position of the values should be at the other end

Re: [Matplotlib-users] Customizing Quiver

2008-06-27 Thread Eric Firing
Ryan, Quiver is not quite the right starting point, although parts of it might work--and actually it could be bent into shape. The problem with attempting a direct transformation of arrows into wind barbs is that the arrows are formed with a fixed number of vertices, so everything is done

Re: [Matplotlib-users] Customizing Quiver

2008-06-27 Thread Ryan May
I kind of figured that was the case, upon looking at the code and realizing that the only commonality was in the broad purpose of both representations. Otherwise, there's really no commonality in the details or implementation. I just wanted to see what the experts thought before I embarked.