Re: [Matplotlib-users] Customizing Quiver

2008-06-27 Thread Ryan May
er of lines or triangles along this shaft to indicate >> wind speed. It's a little odd and domain specific, but it's a must >> for the meteorologist. We like it because, unlike the arrows, you can >> pick off the actual wind speed at a point. See here for an example: >

Re: [Matplotlib-users] Customizing Quiver

2008-06-27 Thread Eric Firing
/www.rap.ucar.edu/weather/info/about_windbarb.html > http://www.rap.ucar.edu/weather/surface/displaySfc.php?region=abi&endDate=20080627&endTime=-1&duration=0 > > Has anyone ever tried this (I'm pretty sure I know the answer)? Failing > that, can anyone give me an idea of

[Matplotlib-users] Customizing Quiver

2008-06-27 Thread Ryan May
st. We like it because, unlike the arrows, you can pick off the actual wind speed at a point. See here for an example: http://www.rap.ucar.edu/weather/info/about_windbarb.html http://www.rap.ucar.edu/weather/surface/displaySfc.php?region=abi&endDate=20080627&endTime=-1&duration=0 Has

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 o

Re: [Matplotlib-users] colorbar

2008-06-27 Thread Ryan May
Yves Revaz wrote: Ryan May wrote: Yves Revaz wrote: Hi all, When I use: colorbar(orientation='horizontal') the color bar is drawn on the bottom of the corresponding graph. Which option will draw the colorbar on the top of the graph ? I think (correct me if I'm wrong devs) you'll hav

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 - Chec

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] Multiple lines with axhline?

2008-06-27 Thread John Hunter
On Fri, Jun 27, 2008 at 2:56 PM, Angus McMorland <[EMAIL PROTECTED]> wrote: > 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 >

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

[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 P

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 <[E

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 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, 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

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,

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

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 confu

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 mana

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] 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) /Users/jaffe/home/python/

[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 T

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 wro

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') /usr/local/src/python-2.5.2/lib

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 switch_back

[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 b

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

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 Mat

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

2008-06-27 Thread Michael Droettboom
What version of matplotlib are you using? Can you provide a standalone example that doesn't rely on basemap? If not, can you provide the .eps file so we can have a look? Colored lines on contour plots in EPS works fine here (contour_demo.py) (with matplotlib 0.98.2 on a Linux box). Cheers, Mi

[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 fil

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

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 in

[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 o

[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 matp

[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

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 plo

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: http://matplotlib.svn.sourceforge.net/

[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 g

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

2008-06-27 Thread Andrea Gavana
Hi All, I have upgraded matplotlib from an old version I was using (0.91.2) to the very latest one (0.98.1). In one of my applications, I am using this code: from matplotlib.transforms import offset_copy def offset(ax, x, y): return offset_copy(ax.transData, x=x, y=y, units='dots') Righ