Re: [Matplotlib-users] [ matplotlib-Bugs-2949906 ] finance.quotes_historical_yahoo raises ZeroDivisionError

2010-06-08 Thread David Goldsmith
On Tue, Jun 8, 2010 at 11:21 AM, Christoph Gohlke wrote: > > On 6/8/2010 10:39 AM, John Hunter wrote: > >> On Tue, Jun 8, 2010 at 11:53 AM, David Goldsmith >> wrote: >> >>> On Tue, Jun 8, 2010 at 9:52 AM, David Goldsmith >>> wrote: >>> - Forwarded message -- From:

Re: [Matplotlib-users] [ matplotlib-Bugs-2949906 ] finance.quotes_historical_yahoo raises ZeroDivisionError

2010-06-08 Thread David Goldsmith
On Tue, Jun 8, 2010 at 10:39 AM, John Hunter wrote: > On Tue, Jun 8, 2010 at 11:53 AM, David Goldsmith > wrote: > > On Tue, Jun 8, 2010 at 9:52 AM, David Goldsmith > > > wrote: > >> > >> - Forwarded message -- > >> From: SourceForge.net > >> Date: Mon, Jun 7, 2010 at 6:06 AM >

Re: [Matplotlib-users] ginput(0) termination error

2010-06-08 Thread Thøger Emil Juul Thorsen
Thanks guys for your advice. My mail server has been weird since yesterday so I only just saw your messages now. In the meantime, I managed to hack and extend the LineBuilder class code snippet at http://goo.gl/RLGS to actually meet my needs better than ginput - but, obviously, much less portable

Re: [Matplotlib-users] Re moving white space surrounding plots

2010-06-08 Thread mdekauwe
Note - in case it isn't clear that white space between where I mention the example and the image is what I am referring to and below it again. mdekauwe wrote: > > Hi, > > when I make plots with the Basemap package I seem to be getting a large > amount of white space at the top and bottom of t

[Matplotlib-users] Re moving white space surrounding plots

2010-06-08 Thread mdekauwe
Hi, when I make plots with the Basemap package I seem to be getting a large amount of white space at the top and bottom of the plot, even if I use the option bbox_inches='tight'. Does anyone know how I can stop this happening? Example image... http://old.nabble.com/file/p28824528/diffmap_JULES_D

Re: [Matplotlib-users] Plotting irregular 2d data

2010-06-08 Thread Friedrich Romstedt
Z = numpy.zeros((y_shape, x_shape)) x = your_flat_indices_in_x y = your_flat_indices_in_y z = your_flat_z_data If you have only coordinates, then try to figure out the indices in some way. Then do: Z[zip(y, x)] = z and figure out the coordinates that correspond to the mesh meant by Z. It's "fa

Re: [Matplotlib-users] MacOS X backend broken

2010-06-08 Thread Eric Firing
On 06/08/2010 12:33 PM, Eric Firing wrote: > On 06/08/2010 12:25 PM, Eric Firing wrote: >> On 06/08/2010 11:16 AM, Thomas Robitaille wrote: >>> Hello, >>> >>> I have submitted a bug report with full error transcript here: >>> >>> https://sourceforge.net/tracker/?func=detail&aid=3013440&group_id=80

Re: [Matplotlib-users] MacOS X backend broken

2010-06-08 Thread Eric Firing
On 06/08/2010 12:25 PM, Eric Firing wrote: > On 06/08/2010 11:16 AM, Thomas Robitaille wrote: >> Hello, >> >> I updated to svn r8396 today, and the MacOSX backend is broken. The >> following code >> >> import matplotlib >> matplotlib.use('MacOSX') >> import matplotlib.pyplot as mpl >> >> fig = mpl

Re: [Matplotlib-users] MacOS X backend broken

2010-06-08 Thread Eric Firing
On 06/08/2010 11:16 AM, Thomas Robitaille wrote: > Hello, > > I updated to svn r8396 today, and the MacOSX backend is broken. The following > code > > import matplotlib > matplotlib.use('MacOSX') > import matplotlib.pyplot as mpl > > fig = mpl.figure() > ax = fig.add_subplot(1,1,1) > fig.canvas.dr

[Matplotlib-users] Plotting irregular 2d data

2010-06-08 Thread Nikolaus Rath
Hi, I have a 1d array Z that unfortunately contains information about a two dimensional surface. The mapping is nontrivial (i.e. Z is not just a sequence of column or row information that I could reshape) but homogenous (i.e. there is a rectangular grid and Z contains data for each vertex). The x

[Matplotlib-users] MacOS X backend broken

2010-06-08 Thread Thomas Robitaille
Hello, I updated to svn r8396 today, and the MacOSX backend is broken. The following code import matplotlib matplotlib.use('MacOSX') import matplotlib.pyplot as mpl fig = mpl.figure() ax = fig.add_subplot(1,1,1) fig.canvas.draw() produces the following error: File "/Users/tom/Library/Python

Re: [Matplotlib-users] Question?

2010-06-08 Thread Benjamin Root
Waléria, I repeat, you need to add parentheses for the denominator of that quantity in order to match what you wrote out on paper. You are missing a set of parentheses that is causing (3e14**2) to be *multiplied* rather than divided. This explains the huge values you are getting. Ben Root On T

Re: [Matplotlib-users] Question?

2010-06-08 Thread Gökhan Sever
On Tue, Jun 8, 2010 at 2:05 PM, Waléria Antunes David < waleriantu...@gmail.com> wrote: > no, I think, did not understand my functions.seei made a change my > second function in the attached. You can further simplify your function. Try grouping 10 powers under one term. You can then Pyth

Re: [Matplotlib-users] Question?

2010-06-08 Thread Benjamin Root
I think I found your errors. First, you are correct, the scientific notation in python is as you understand, there is nothing wrong with that. Instead, you have a problem with order of operations. In the last quantity, you have "((x**2)/4*(1e4**2)*(3e14**2))" According to the equation that you w

Re: [Matplotlib-users] Question?

2010-06-08 Thread Alan G Isaac
> On Tue, Jun 8, 2010 at 1:34 PM, Gökhan Sever wrote: > > You might need to check your y2. You are mixing integers and floats > > which possible have resulted with some rounding errors. I get e+30 > > when I assert the terms as floats in y2. On 6/8/2010 1:47 PM, Waléria Antunes David wrote: >

[Matplotlib-users] ANN: EPD 6.2 released

2010-06-08 Thread Ilan Schnell
Hello, I am pleased to announce that EPD (Enthought Python Distribution) version 6.2 has been released. This release includes an update to Python 2.6.5, SciPy 0.8.0beta1, as well updates to many other packages and bug fixes. You can find a complete list of updates in the change log: htt

Re: [Matplotlib-users] [ matplotlib-Bugs-2949906 ] finance.quotes_historical_yahoo raises ZeroDivisionError

2010-06-08 Thread Christoph Gohlke
On 6/8/2010 10:39 AM, John Hunter wrote: > On Tue, Jun 8, 2010 at 11:53 AM, David Goldsmith > wrote: >> On Tue, Jun 8, 2010 at 9:52 AM, David Goldsmith >> wrote: >>> >>> - Forwarded message -- >>> From: SourceForge.net >>> Date: Mon, Jun 7, 2010 at 6:06 AM >>> Subject: [ matplot

Re: [Matplotlib-users] How to Set the Range of the Y-Axis on a Bar Chart

2010-06-08 Thread Ted Kord
Thanks Ben. worked brilliantly. Ted On 8 June 2010 18:48, Benjamin Root wrote: > Ted, > > You can call ylim([0, 100]) after you create your plot. If you have the > axes object (from gca()), you can directly manipulate the limits using > set_ylim([0, 100]). > > Ben Root > > > > On Tue, Jun 8,

Re: [Matplotlib-users] Index Out of Range Error after Installation on RHEL5

2010-06-08 Thread Benjamin Root
Then I haven't a clue. Maybe someone else has some insight? Ben Root On Mon, Jun 7, 2010 at 4:10 PM, Dharhas Pothina < dharhas.poth...@twdb.state.tx.us> wrote: > Ben, > > The matplotlib on the other working machine is using python 2.6.4. On this > machine I am using python 2.6.5. > > The defaul

Re: [Matplotlib-users] How to Set the Range of the Y-Axis on a Bar Chart

2010-06-08 Thread Benjamin Root
Ted, You can call ylim([0, 100]) after you create your plot. If you have the axes object (from gca()), you can directly manipulate the limits using set_ylim([0, 100]). Ben Root On Tue, Jun 8, 2010 at 10:50 AM, Ted Kord wrote: > Hi > > How do I set the range of the y-axis on a bar chart , e.

Re: [Matplotlib-users] Help with imshow on Mac OS X 10.6 Snow Leopoard

2010-06-08 Thread Eric Firing
On 06/08/2010 04:31 AM, Benjamin Root wrote: > Todd, > > I am glad that worked for you. [...] > > Anyway, you can always call "plt.ion()" to turn interactive mode on, and > "plt.ioff()" to turn it off, or you can use ipython with the "-pylab" > argument (although I don't know if this is the same as

Re: [Matplotlib-users] [ matplotlib-Bugs-2949906 ] finance.quotes_historical_yahoo raises ZeroDivisionError

2010-06-08 Thread John Hunter
On Tue, Jun 8, 2010 at 11:53 AM, David Goldsmith wrote: > On Tue, Jun 8, 2010 at 9:52 AM, David Goldsmith > wrote: >> >> - Forwarded message -- >> From: SourceForge.net >> Date: Mon, Jun 7, 2010 at 6:06 AM >> Subject: [ matplotlib-Bugs-2949906 ] finance.quotes_historical_yahoo >>

[Matplotlib-users] Fwd: [ matplotlib-Bugs-2949906 ] finance.quotes_historical_yahoo raises ZeroDivisionError

2010-06-08 Thread David Goldsmith
- Forwarded message -- From: SourceForge.net Date: Mon, Jun 7, 2010 at 6:06 AM Subject: [ matplotlib-Bugs-2949906 ] finance.quotes_historical_yahoo raises ZeroDivisionError To: nore...@sourceforge.net Bugs item #2949906, was opened at 2010-02-11 13:44 Message generated for change

Re: [Matplotlib-users] [ matplotlib-Bugs-2949906 ] finance.quotes_historical_yahoo raises ZeroDivisionError

2010-06-08 Thread David Goldsmith
On Tue, Jun 8, 2010 at 9:52 AM, David Goldsmith wrote: > - Forwarded message -- > From: SourceForge.net > Date: Mon, Jun 7, 2010 at 6:06 AM > Subject: [ matplotlib-Bugs-2949906 ] finance.quotes_historical_yahoo raises > ZeroDivisionError > To: nore...@sourceforge.net > > Bugs item

Re: [Matplotlib-users] Question?

2010-06-08 Thread Alan G Isaac
On 6/8/2010 11:19 AM, Waléria Antunes David wrote: > the first function isdecrescent an the second is crescent Decreasing and increasing over the specified range, you mean. You won't see that when you plot them together because they have very different scales, so the one with the small scale wi

Re: [Matplotlib-users] Question?

2010-06-08 Thread Gökhan Sever
On Tue, Jun 8, 2010 at 10:19 AM, Waléria Antunes David < waleriantu...@gmail.com> wrote: > Hello!!! > > My name is Waleria. I work at INPE in Sao Jose dos Campos, Brazil. And I'd > like to make a question. I'm in trouble to generate a two functions graph. > > I have a problem to generate a graph o

Re: [Matplotlib-users] Question?

2010-06-08 Thread Alan G Isaac
On 6/8/2010 11:19 AM, Waléria Antunes David wrote: > the first function isdecrescent an the second is crescent Decreasing and increasing over the specified range, you mean. You won't see that when you plot them together because they have very different scales, so the one with the small scale wi

Re: [Matplotlib-users] Question?

2010-06-08 Thread Jim Vickroy
Waléria Antunes David wrote: Hello!!! My name is Waleria. I work at INPE in Sao Jose dos Campos, Brazil. And I'd like to make a question. I'm in trouble to generate a two functions graph. I have a problem to generate a graph of the two functions. I have this functions, is bellow: *y1 = -1

Re: [Matplotlib-users] Question?

2010-06-08 Thread Benjamin Root
I tried to reproduce your attached plots using the functions you gave. While I was able to reproduce your first graph (values from -1.08e-20 to -1.386e-20) I could not reproduce your second graph. My y2 has values from 1.397e27 to 1.7936e27. Your second graph shows values ranging from 1.7e-27 to

[Matplotlib-users] How to Set the Range of the Y-Axis on a Bar Chart

2010-06-08 Thread Ted Kord
Hi How do I set the range of the y-axis on a bar chart , e.g, from 0 to 100? Thanks Ted -- ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental u

[Matplotlib-users] ploting with QT4

2010-06-08 Thread Vladimir Rodriguez
I am a new user and I need to make a GUI with QT4 in which you can plot, just like using Matlab's GUIDE. Someone can send me a littel example (or tutorial) for doing this. Thanks -- ThinkGeek and WIRED's GeekDad team up

[Matplotlib-users] Sphinx plot extension source/build directory issues

2010-06-08 Thread Craig and Natalie McQueen
Hello, I'm trying to use the matplotlib Sphinx plot extension to add some diagrams to Sphinx documentation. However, I've come across a couple of issues. First, my Sphinx documentation uses the "separate directories for source and build" option. It seems that matplotlib doesn't work well with thi

Re: [Matplotlib-users] Help with imshow on Mac OS X 10.6 Snow Leopoard

2010-06-08 Thread Benjamin Root
Todd, I am glad that worked for you. I am assuming that you are coming from a Matlab-like experience where every plot command did produced a graphical result when called? If so, I can see how this behavior can be a little confusing. I will admit I was a little confused at first when I started u

Re: [Matplotlib-users] Animated Line2D

2010-06-08 Thread Nie, Jinsuo
John, I just tried all backends I have on my Win7 system (Qt4Agg, WXAgg, TkAgg) and found none of them could allow the animation in the line_editor.py. Please let me know whether I have to use GTK or GTKAgg to get the animation. Thanks. -- Jinsuo -Original Message- From: John Hunter [

Re: [Matplotlib-users] Custom data transformations with log ticks

2010-06-08 Thread Michael Droettboom
The problem is that the LogLocator expects the data to be non-log-transformed, since it is providing the log transform itself. It actually is doing the right thing since the data passed to plot ranges from 1 to 4. As a workaround, you can manually set the ticks with set_xticks, set_xmajortick

Re: [Matplotlib-users] ginput(0) termination error

2010-06-08 Thread Fabrice Silva
Le vendredi 04 juin 2010 à 15:25 +0200, Thøger Emil Juul Thorsen a écrit : > Hello list; > > I'm new to python/matplotlib, migrating from IDL. I need to do some > interactive point selection with mouse, and the pyplot.ginput() routine > seemed to be just the right thing here. I do however need to

[Matplotlib-users] LineCollection: multiple ways of setting colors?

2010-06-08 Thread Jorge Scandaliaris
Hi, I am working with collection of lines, and when trying to set the color of each individual lines I found that you can either use a 'color' or colors' (note the 's') argument to LineCollection() to accomplish the same, but that there's only a set_color() method you can call. Is this intended? A