Re: [Matplotlib-users] Making an Axis Label like a legend

2010-03-09 Thread Matthias Michler
On Tuesday 09 March 2010 21:10:49 Alex S wrote: > Hmm I think I could do this with TextWithDash, but I can't manage to use > it... I go: > > CumGasTxt = fig.text(0.5, 0.5, 'Cumulative Gas (MCF)', withdash=True) > > and it says "AttributeError: Unknown property withdash". > > I tried changing "fig"

Re: [Matplotlib-users] shiftgrid 'cyclic point not included' error

2010-03-09 Thread Anton Vasilescu
Hi Jeff, Thank you for looking at the code for me! It works perfect for the first image but when it tries to do the second it errors out saying: "lon0 outside of range of lonsin". Any idea why is that happening? Is it happening for you too? Thanks, Anton Fro

[Matplotlib-users] Doc suggestion

2010-03-09 Thread David Arnold
All, The linebuilder program on: http://matplotlib.sourceforge.net/users/event_handling.html Needs two extra lines, one at the beginning and one at the end. Their absence, particularly the second one, can cause confusion. import matplotlib.pyplot as plt class LineBuilder: def __init__(se

Re: [Matplotlib-users] grey scale line plots

2010-03-09 Thread Chloe Lewis
Here's a skeleton, for a series of lines that get darker and more solid (from past to present, as I use it): from itertools import cycle grey_linestyles = cycle(map(lambda tu: dict(zip(('color','dashes'),tu)),(('0.5',(4,1,1,1)),('0.4',(2,1)), ('0.3',(5,1,2,1)),('0.2',(4,1)),('0.1',(6,1)),('0

Re: [Matplotlib-users] ipython -pylab

2010-03-09 Thread Andre Walker-Loud
> Also, how is scipy imported? Just "form scipy import *" or something > similar to numpy? > > I haven't been able to find this info online or in documents yet. > > > Thanks, > > Andre > > Hi, > > Look in IPython/Shell.py to see how pylab option is being evaluated. > And similarly in matplotlib/

Re: [Matplotlib-users] ipython -pylab

2010-03-09 Thread Gökhan Sever
On Tue, Mar 9, 2010 at 6:48 PM, Andre Walker-Loud wrote: > Hi All, > > I am trying to understand exactly what the -pylab option does when I > launch ipython -pylab - thought some folks here might know. > > For example, after executing > > ipython -pylab > > I can type either > > a = np.array([1.,1

[Matplotlib-users] ipython -pylab

2010-03-09 Thread Andre Walker-Loud
Hi All, I am trying to understand exactly what the -pylab option does when I launch ipython -pylab - thought some folks here might know. For example, after executing ipython -pylab I can type either a = np.array([1.,10.]) OR b = array([1.,10.]) are these both numpy arrays? And clearly, t

[Matplotlib-users] grey scale line plots

2010-03-09 Thread Alan G Isaac
I need a figure containing color line plots to be changed to grayscale, cycling through line styles instead of colors. How? Thanks, Alan Isaac PSI suppose I searched the web ineffectively on this, but I did try. -- Dow

[Matplotlib-users] Re move, mask, or hide parts of a polygon?

2010-03-09 Thread othererik
I've become stuck on what seems to be an easy problem. Can part of a patch or collection be masked or otherwise hidden? I assumed that my_polygon.set_clip_path( patch ) where patch is a patches.Polygon would do the trick. Thanks, -Erik -- View this message in context: http://old.nabble.com

Re: [Matplotlib-users] Making an Axis Label like a legend

2010-03-09 Thread Alex S
Hmm I think I could do this with TextWithDash, but I can't manage to use it... I go: CumGasTxt = fig.text(0.5, 0.5, 'Cumulative Gas (MCF)', withdash=True) and it says "AttributeError: Unknown property withdash". I tried changing "fig" to "ax1", but although that doesn't spit out an error, it d

Re: [Matplotlib-users] embedding a plot function in existing wxapp GUI, problem replotting

2010-03-09 Thread John Hunter
On Tue, Mar 9, 2010 at 1:49 PM, Pribadi, Krishna wrote: > > I know it's badly out of date... > > I'd like to embed it but I'm not quite sure where to begin... > > Do you think a simple solution like calling it from the system command line > will open the plot in a new instance, so that the metada

Re: [Matplotlib-users] Bad eps output

2010-03-09 Thread Michael Droettboom
Thanks for the report. I am able to reproduce it and am investigating further. As a workaround, you can set the rcParam 'ps.fonttype' to 42 (at the expense of some file size). Mike Olle Engdegård wrote: > Hi, > > This > > import pylab as pl > pl.plot([3,6,3,7,3]) > pl.xlabel("Xlabel") > pl.sa

Re: [Matplotlib-users] embedding a plot function in existing wxapp GUI, problem replotting

2010-03-09 Thread Pribadi, Krishna
I know it's badly out of date... I'd like to embed it but I'm not quite sure where to begin... Do you think a simple solution like calling it from the system command line will open the plot in a new instance, so that the metadata GUI wont be hung up by the show()? I'd have to pass the selecte

Re: [Matplotlib-users] embedding a plot function in existing wxapp GUI, problem replotting

2010-03-09 Thread John Hunter
On Tue, Mar 9, 2010 at 1:23 PM, Chris Barker wrote: > Pribadi, Krishna wrote: >> Based on what I’ve been reading regarding MPL, it seems that the >> matplotlib show() function causes another instance of a GUI loop to >> remain suspended. > > right --don't use show(), in fact, don't use pylab for t

Re: [Matplotlib-users] embedding a plot function in existing wxapp GUI, problem replotting

2010-03-09 Thread C M
On Tue, Mar 9, 2010 at 2:23 PM, Chris Barker wrote: > Pribadi, Krishna wrote: >> Based on what I’ve been reading regarding MPL, it seems that the >> matplotlib show() function causes another instance of a GUI loop to >> remain suspended. > > right --don't use show(), in fact, don't use pylab for t

Re: [Matplotlib-users] Contour Plotting of Varied Data on a Shape

2010-03-09 Thread Chris Barker
Ian Thomas wrote: > I submitted some code to matplotlib-users last September to perform > contouring of triangular grids. The posts and code can be found at: > > http://sourceforge.net/mailarchive/forum.php?thread_name=4AB3B95B.3090903%40noaa.gov&forum_name=matplotlib-users > > Like I wrote at t

Re: [Matplotlib-users] embedding a plot function in existing wxapp GUI, problem replotting

2010-03-09 Thread Chris Barker
Pribadi, Krishna wrote: > Based on what I’ve been reading regarding MPL, it seems that the > matplotlib show() function causes another instance of a GUI loop to > remain suspended. right --don't use show(), in fact, don't use pylab for the most part: http://www.scipy.org/Cookbook/Matplotlib/Emb

Re: [Matplotlib-users] Bug: string.letters

2010-03-09 Thread Robert Kern
On 2010-03-09 12:37 PM, Eric Firing wrote: > Eric Firing wrote: >> Tony S Yu wrote: >>> On Mar 9, 2010, at 1:22 PM, John Hunter wrote: >>> On Tue, Mar 9, 2010 at 12:16 PM, Eric Firing wrote: > Bizarre! I can reproduce it with python 2.6 (ubuntu 9.10) and mpl from > svn. I have

Re: [Matplotlib-users] Bug: string.letters

2010-03-09 Thread Eric Firing
Eric Firing wrote: > Tony S Yu wrote: >> On Mar 9, 2010, at 1:22 PM, John Hunter wrote: >> >>> On Tue, Mar 9, 2010 at 12:16 PM, Eric Firing wrote: >>> Bizarre! I can reproduce it with python 2.6 (ubuntu 9.10) and mpl from svn. I have done a little grepping and other exploration, but ha

[Matplotlib-users] embedding a plot function in existing wxapp GUI, problem replotting

2010-03-09 Thread Pribadi, Krishna
Hi, We have been working on a python wx app GUI for finding and selecting metadata (lots of lists and check boxes) from a test (that later fetches SQL time-history data for further processing in LabView or elsewhere). As an afterthought, we decided to add in a small function that would allow pre

Re: [Matplotlib-users] Bug: string.letters

2010-03-09 Thread Eric Firing
Tony S Yu wrote: > On Mar 9, 2010, at 1:22 PM, John Hunter wrote: > >> On Tue, Mar 9, 2010 at 12:16 PM, Eric Firing wrote: >> >>> Bizarre! I can reproduce it with python 2.6 (ubuntu 9.10) and mpl from >>> svn. I have done a little grepping and other exploration, but have >>> completely failed t

[Matplotlib-users] Bad eps output

2010-03-09 Thread Olle Engdegård
Hi, This import pylab as pl pl.plot([3,6,3,7,3]) pl.xlabel("Xlabel") pl.savefig("test.eps") gives me an unpleasant outfile with the backends GTK, GTKAgg, WXAgg, WX, Agg, GDK and PS. It works fine only with Cairo and GTKCairo. I'm on trunk and Ubuntu 8.04. All backends do fine for png. It's ac

Re: [Matplotlib-users] Bug: string.letters

2010-03-09 Thread Tony S Yu
On Mar 9, 2010, at 1:22 PM, John Hunter wrote: > On Tue, Mar 9, 2010 at 12:16 PM, Eric Firing wrote: > >> Bizarre! I can reproduce it with python 2.6 (ubuntu 9.10) and mpl from >> svn. I have done a little grepping and other exploration, but have >> completely failed to find where this change

Re: [Matplotlib-users] Bug: string.letters

2010-03-09 Thread Eric Firing
John Hunter wrote: > On Tue, Mar 9, 2010 at 12:16 PM, Eric Firing wrote: > >> Bizarre! I can reproduce it with python 2.6 (ubuntu 9.10) and mpl from >> svn. I have done a little grepping and other exploration, but have >> completely failed to find where this change is occurring. > > > > cboo

Re: [Matplotlib-users] Bug: string.letters

2010-03-09 Thread John Hunter
On Tue, Mar 9, 2010 at 12:16 PM, Eric Firing wrote: > Bizarre!  I can reproduce it with python 2.6 (ubuntu 9.10) and mpl from > svn.  I have done a little grepping and other exploration, but have > completely failed to find where this change is occurring. cbook imports locale -- may be implica

Re: [Matplotlib-users] Bug: string.letters

2010-03-09 Thread Eric Firing
Enssle Carl Philipp wrote: > Hallo. > > When importing string in python, "letters" are defined as follows: > > >>> import string > >>> string.letters > 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' > > … whereas when importing matplotlib, the order of "letters" seems to be > changed:

Re: [Matplotlib-users] Bug: string.letters

2010-03-09 Thread Ryan May
On Tue, Mar 9, 2010 at 11:28 AM, Enssle Carl Philipp wrote: > Hallo. > > When importing string in python, "letters" are defined as follows: > import string string.letters > 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' > > … whereas when importing matplotlib, the order of "lette

Re: [Matplotlib-users] Bug: string.letters

2010-03-09 Thread Jim Vickroy
Enssle Carl Philipp wrote: Hallo. When importing string in python, "letters" are defined as follows: import string string.letters 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' ... whereas when importing matplotlib, the order of "letters" seems to be changed: import

Re: [Matplotlib-users] matplotlib 0.99.3rc1 release candidate for testing

2010-03-09 Thread Christoph Gohlke
Hey, no offense to the numpy developers! They are doing a great job and the Python 3 support in the numpy 2.0 release is well worth the wait. What I meant was that ATM there is no officially released numpy version that one can use to build an official win-amd64 matplotlib binary (same for any o

[Matplotlib-users] Bug: string.letters

2010-03-09 Thread Enssle Carl Philipp
Hallo. When importing string in python, "letters" are defined as follows: >>> import string >>> string.letters 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' ... whereas when importing matplotlib, the order of "letters" seems to be changed: >>> import matplotlib >>> string.letters 'ABC

[Matplotlib-users] matplotlib 0.99.3rc1 release candidate for testing

2010-03-09 Thread John Hunter
I have uploaded the src and some binaries for the matplotlib 0.99.3 (stable branch) release candidate rc1 . This is a bugfix release that contains at least one critical bugfix (the path.simplify bug) and numerous other small fixes. I built the OSX binaries on a 64 bit 10.6 python2.6 machine so I

Re: [Matplotlib-users] Contour Plotting of Varied Data on a Shape

2010-03-09 Thread Ian Thomas
Hello all, I submitted some code to matplotlib-users last September to perform contouring of triangular grids. The posts and code can be found at: http://sourceforge.net/mailarchive/forum.php?thread_name=4AB3B95B.3090903%40noaa.gov&forum_name=matplotlib-users Like I wrote at the time, if it is

Re: [Matplotlib-users] Failure compiling MPL on Snow Leopard

2010-03-09 Thread Jakub Nowacki
Dear Jeremy, I'm not sure but I think it may be the problem with ppc, cause this architecture was dropped for Snow Leopard as far as I remember. So just delete "-arch ppc" and try again. In general you may try to use this description: http://blog.hyperjeff.net/?p=160 I've tested it and it work