[Matplotlib-users] drawmapscale() and 'cyl' projection [SEC=UNCLASSIFIED]

2009-10-28 Thread Ross.Wilson
Hi all, Sorry if this has been discussed before, but I can't find any previous threads on this. I'm trying to draw a scale on an equidistant cylindrical projection, and I'm seeing a ValueError exception with the message: Cannot draw map scale for projection='cyl' And indeed, in basemap/__i

Re: [Matplotlib-users] spines are tricky!

2009-10-28 Thread Phillip M. Feldman
This is tremendous. thanks!! Phillip Jae-Joon Lee wrote: > On Wed, Oct 28, 2009 at 7:20 PM, Phillip M. Feldman > wrote: > >> If I get one y-axis with the 'host', and each invocation of twinx adds >> another y-axis, then it seems that I must invoke twinx three times to get >> four y-axes. Do

Re: [Matplotlib-users] spines are tricky!

2009-10-28 Thread Jae-Joon Lee
On Wed, Oct 28, 2009 at 7:20 PM, Phillip M. Feldman wrote: > If I get one y-axis with the 'host', and each invocation of twinx adds > another y-axis, then it seems that I must invoke twinx three times to get > four y-axes.  Does twinx add more than one y-axis per invocation?  (The > documentation

Re: [Matplotlib-users] spines are tricky!

2009-10-28 Thread Phillip M. Feldman
I introduced a bug when converting the code to make indices start at zero. This is fixed in the attachment. Phillip M. Feldman wrote: I very much appreciate the help, but I still haven't been able to figure out how to make this work. If I get one y-axis with the 'host', and each invocation o

Re: [Matplotlib-users] spines are tricky!

2009-10-28 Thread Phillip M. Feldman
I very much appreciate the help, but I still haven't been able to figure out how to make this work. If I get one y-axis with the 'host', and each invocation of twinx adds another y-axis, then it seems that I must invoke twinx three times to get four y-axes. Does twinx add more than one y-axis

Re: [Matplotlib-users] spines are tricky!

2009-10-28 Thread Jae-Joon Lee
On Tue, Oct 27, 2009 at 11:12 PM, Dr. Phillip M. Feldman wrote: > (1) Not only is the y-axis for dependent variable #1 blue (as it should be), > but the entire frame around the plot is blue. > at line 158, you're changing the color of all spines. Change the color of spine that you only want to ch

Re: [Matplotlib-users] Axis problem demo program

2009-10-28 Thread Jae-Joon Lee
On Wed, Oct 28, 2009 at 9:55 AM, Michael Droettboom wrote: > Does anyone with more experience with the scientific notation/offset > code have any further comments? While it is possible to turn off using the offset (or setting it manually), the api is not very friendly. fmt = gca().xaxis.get_majo

Re: [Matplotlib-users] Axis problem demo program

2009-10-28 Thread Matthias Michler
Hi Jim, I attached an example that does the job circumventing Matplotlibs scientific formatting instead of solving the problem with number of digits in scientific formatting. It uses a FuncFormatter from matplotlib.ticker, which allows you to define your own tick-formatting. Kind regards Matt

Re: [Matplotlib-users] Cant load file as an array.

2009-10-28 Thread Stan West
From: Piter_ [mailto:x.pi...@gmail.com] Sent: Tuesday, October 27, 2009 14:37 Hi all. I have a problem with loading file of following format: first 1024 rows are tab delimited and contain from 2 to 256 elements (in different files different number of columns) after that 5 empty lines and at the e

Re: [Matplotlib-users] Drawing Error Ellipses

2009-10-28 Thread Tinne De Laet
On Wed, Oct 28, 2009 at 2:59 PM, Michael Droettboom wrote: > Eero Nevalainen wrote: >>> 2) forgot a factor 2 for the width and height (it's the entire width >>> not the `radius`) >>> >> >> I'd even say that this is a documentation bug in the Ellipse class. >> Too bad that they are multiplying by 0

Re: [Matplotlib-users] Drawing Error Ellipses

2009-10-28 Thread Drain, Theodore R (343P)
We've had several users come to the same (incorrect) conclusion so I'd have to say it's not a rare occurrence for those comments to be misunderstood. Perhaps adding "total" in front of length would help. width- The total width of the ellipse > -Original Message- > From: Michael Dr

Re: [Matplotlib-users] Drawing Error Ellipses

2009-10-28 Thread Eero Nevalainen
Michael Droettboom wrote: > Eero Nevalainen wrote: >>> 2) forgot a factor 2 for the width and height (it's the entire width >>> not the `radius`) >>> >> I'd even say that this is a documentation bug in the Ellipse class. >> Too bad that they are multiplying by 0.5 inside their code :P >> >

Re: [Matplotlib-users] Drawing Error Ellipses

2009-10-28 Thread Michael Droettboom
Eero Nevalainen wrote: >> 2) forgot a factor 2 for the width and height (it's the entire width >> not the `radius`) >> > > I'd even say that this is a documentation bug in the Ellipse class. > Too bad that they are multiplying by 0.5 inside their code :P > Well, it's not a good idea to chan

Re: [Matplotlib-users] Axis problem demo program

2009-10-28 Thread Michael Droettboom
Jim Horning wrote: > Greetings, > > I've been having difficulties with axis limit control. From a bigger > application I've reduced an example down to the following short code > segment. Note, the commented-out line, #x = numpy.linspace(98.42, > 99.21, 100), line in which the example works OKA

Re: [Matplotlib-users] Movable Legend

2009-10-28 Thread Gökhan Sever
This movable legend is a good idea on plots, especially if there are many elements on one figure. However a few notes that I would like to add: 1-) So many lines of code. Makes it hard to read when I share the code with someone else. Would be so much better to have a functionality like: plt.legend

Re: [Matplotlib-users] Drawing Error Ellipses

2009-10-28 Thread Eero Nevalainen
Thanks, and yes it looks better now :) Tinne De Laet wrote: > I still discoverd some problems with my plotEllipse function: > 1) the angle in the ellipsePlot expects and angle in DEGREES and not > in radians apparently so it seems > 2) forgot a factor 2 for the width and height (it's the entire

Re: [Matplotlib-users] [Numpy-discussion] Using matplotlib's prctile on masked arrays

2009-10-28 Thread Gökhan Sever
On Tue, Oct 27, 2009 at 8:25 AM, wrote: > This should not be the correct results if you use > scipy.stats.scoreatpercentile, > it doesn't have correct missing value handling, it treats nans or > mask/fill values as regular numbers sorted to the end. > > stats.mstats.scoreatpercentile is the corr

Re: [Matplotlib-users] [Numpy-discussion] Using matplotlib's prctile on masked arrays

2009-10-28 Thread josef . pktd
On Tue, Oct 27, 2009 at 7:56 AM, Gökhan Sever wrote: > Hello, > > Consider this sample two columns of data: > >  99. 99. >  99. 99. >  99. 99. >  99.   1693.9069 >  99.   1676.1059 >  99.   1621.5875 >     651.8040   1542.

[Matplotlib-users] place labels between ticks

2009-10-28 Thread dfdf
how do i place ticks labels between ticks (not below ticks) for example: when plotting a the stock price over time i would like the x axis minor ticks to display months and the years to show up between consecutive x axis major ticks (not just below the major ticks) ---|---|---|---|---|---|---|--

[Matplotlib-users] General formatting question for Pie / Bar charts

2009-10-28 Thread mattwarren
Hi, I'm hoping you can help. I've been reading through the matplotlib documentation but finding it fairly confusing. I am plotting some pie and bar charts, example code would be similar to, def makepie(labels,slices,titlestring,outputname,FIGUREID,FIGSIZE): colorrange=[] for c

[Matplotlib-users] Axis problem demo program

2009-10-28 Thread Jim Horning
Greetings, I've been having difficulties with axis limit control. From a bigger application I've reduced an example down to the following short code segment. Note, the commented-out line, #x = numpy.linspace(98.42, 99.21, 100), line in which the example works OKAY. What is annoying is that the

Re: [Matplotlib-users] Drawing Error Ellipses

2009-10-28 Thread Tinne De Laet
On Wed, Oct 28, 2009 at 9:55 AM, Tinne De Laet wrote: > On Wed, Oct 28, 2009 at 9:06 AM, Eero Nevalainen > wrote: >> Hi, >> >> I need to draw error ellipses on a scatterplot. I'm guessing someone has >> done this before. >> >> I've found some examples, such as this one >> http://matplotlib.source

Re: [Matplotlib-users] Source tarball should not include setup.cfg (was: 0.99.1.1 build attempts to import non-existing wx)

2009-10-28 Thread John Hunter
On Wed, Oct 28, 2009 at 1:09 AM, Jouni K. Seppänen wrote: > This is because the distribution includes a setup.cfg file by mistake. > Deleting setup.cfg should allow the autodetection logic to disable > building wxagg. This is bug #2871530 on Sourceforge: > > https://sourceforge.net/tracker/?func=

Re: [Matplotlib-users] Drawing Error Ellipses

2009-10-28 Thread Tinne De Laet
On Wed, Oct 28, 2009 at 9:06 AM, Eero Nevalainen wrote: > Hi, > > I need to draw error ellipses on a scatterplot. I'm guessing someone has > done this before. > > I've found some examples, such as this one > http://matplotlib.sourceforge.net/examples/pylab_examples/ellipse_rotated.html > > That le

[Matplotlib-users] Drawing Error Ellipses

2009-10-28 Thread Eero Nevalainen
Hi, I need to draw error ellipses on a scatterplot. I'm guessing someone has done this before. I've found some examples, such as this one http://matplotlib.sourceforge.net/examples/pylab_examples/ellipse_rotated.html That led to the artist tutorial, and... ARGH! INFORMATION OVERFLOW! Can someon

Re: [Matplotlib-users] strip charts using matplotlib

2009-10-28 Thread Eero Nevalainen
Dan Klinglesmith wrote: > Can someone give me examples of generating a strip chart type of display that > will display 1800 data points and update once per second? I made something like this in matlab once. Froze up because memory had to cleaned. Back then I concluded that circular buffers would