Re: [Matplotlib-users] open ascii grid data and plot

2012-03-14 Thread questions anon
I think my error is from the np.genfromtxt because I just checked the size of my data and it appears in 1D rather than 2D. if I try taking out 'skip_header' I end up with this error: Traceback (most recent call last): File "d:\BoMdata\plotrainfall.py", line 63, in f=np.genfromtxt(inputfile,

Re: [Matplotlib-users] open ascii grid data and plot

2012-03-14 Thread questions anon
Thanks for responding. It is 'sort of' good to know that it can't be explained as I just thought it was my incompetency! I tried the np rather than N but that made no differences. thanks again On Thu, Mar 15, 2012 at 7:48 AM, Benjamin Root wrote: > > > On Tue, Mar 13, 2012 at 4:23 PM, questions

Re: [Matplotlib-users] show() does not pop up a window

2012-03-14 Thread Benjamin Root
Michael, Sorry for not getting back to you sooner. Your email got a little buried in my inbox. From your build log, most of the dependencies for the backends are not available. Surprisingly, not even Tkinter. Could you take a look at this page and see if automatically installing dependencies h

Re: [Matplotlib-users] open ascii grid data and plot

2012-03-14 Thread Benjamin Root
On Tue, Mar 13, 2012 at 4:23 PM, questions anon wrote: > also I have tried running it on a different computer and the same error > occurred > > > On Wed, Mar 14, 2012 at 8:22 AM, questions anon > wrote: > >> thanks for looking into this Goyo. >> The complete code: >> >> >> import numpy as N >> im

Re: [Matplotlib-users] How to remove x axis in a subplotted graph

2012-03-14 Thread Tony Yu
On Wed, Mar 14, 2012 at 2:38 PM, kususe wrote: > > I got an error using the first subplot function because I have to specify 3 > parameters. > If i do it, I get that "AxesSubplot' object is not iterable" > I coded using 3 subplot functions, getting the same error. > > Thanks > K. > > Note that I

Re: [Matplotlib-users] How to remove x axis in a subplotted graph

2012-03-14 Thread kususe
I got an error using the first subplot function because I have to specify 3 parameters. If i do it, I get that "AxesSubplot' object is not iterable" I coded using 3 subplot functions, getting the same error. Thanks K. Tony Yu-3 wrote: > > On Wed, Mar 14, 2012 at 1:41 PM, kususe wrote: > >>

Re: [Matplotlib-users] TypeError when plotting dates on Windows 32 bit

2012-03-14 Thread Aman Thakral
On Wed, Mar 14, 2012 at 2:16 PM, Aman Thakral wrote: > I recently upgrade to Python 2.7 (I used EPD Free for the install which > comes with matplotlib 1.1.0) and I'm getting the following error when I try > to plot dates. I've tried a few different backends, but they all seem to > give the same e

[Matplotlib-users] TypeError when plotting dates on Windows 32 bit

2012-03-14 Thread Aman Thakral
I recently upgrade to Python 2.7 (I used EPD Free for the install which comes with matplotlib 1.1.0) and I'm getting the following error when I try to plot dates. I've tried a few different backends, but they all seem to give the same error. I had no issues using Python 2.6 up to now. I think th

Re: [Matplotlib-users] How to remove x axis in a subplotted graph

2012-03-14 Thread Tony Yu
On Wed, Mar 14, 2012 at 1:41 PM, kususe wrote: > > Thanks, it works. > But if the graph is just one in a figure. > > I created various graph and I wanna remove all ticks in all of X axis. > I coded: > >plt.subplot(3,1,1) >p1, = plt.plot(self.data0,self.data1) >

Re: [Matplotlib-users] How to remove x axis in a subplotted graph

2012-03-14 Thread kususe
Thanks, it works. But if the graph is just one in a figure. I created various graph and I wanna remove all ticks in all of X axis. I coded: plt.subplot(3,1,1) p1, = plt.plot(self.data0,self.data1) . plt.subplot(3,1,2)

Re: [Matplotlib-users] matplotlib website problems?

2012-03-14 Thread Zoltán Vörös
You could download the examples from http://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.1.0/, and that should solve your problem once and for all. Cheers, Zoltán On Wed, Mar 14, 2012 at 9:58 AM, Jonathan Slavin mailto:jsla...@cfa.harvard.edu>> wrote: Hi, Rece

Re: [Matplotlib-users] matplotlib website problems?

2012-03-14 Thread Tony Yu
On Wed, Mar 14, 2012 at 9:58 AM, Jonathan Slavin wrote: > Hi, > > Recently on several occasions I have gotten the response "Too many > requests, please try again later." when trying to go to a matplotlib > webpage. Have others experienced this also? Is this a problem with > sourceforge? I'm won

Re: [Matplotlib-users] How to remove x axis in a subplotted graph

2012-03-14 Thread Tony Yu
On Wed, Mar 14, 2012 at 5:44 AM, kususe wrote: > > Hi folks, > I have a graph got using the subplot command. > I'd like to remove all ticks in X axis in all of graph. > > I used: plt.setp(plt.gca(),'XtickLabel',[]) > > but I get that: > > File "/usr/lib/pymodules/python2.6/matplotlib/artist.py",

Re: [Matplotlib-users] How to draw an arrow

2012-03-14 Thread Tony Yu
On Wed, Mar 14, 2012 at 6:02 AM, kususe wrote: > > Hi folks, > I've to draw an arrow. > I used Arrow() function: > > pa.Arrow(0, 0, x, y, width=1.0) > > where I imported > > matplotlib.patches as pa > > Now, how to use plot() function di display the figure? > > Tanks in advance, > K. > -- > View

[Matplotlib-users] matplotlib website problems?

2012-03-14 Thread Jonathan Slavin
Hi, Recently on several occasions I have gotten the response "Too many requests, please try again later." when trying to go to a matplotlib webpage. Have others experienced this also? Is this a problem with sourceforge? I'm wondering what could be done about this. It's very annoying when, for

[Matplotlib-users] How to remove x axis in a subplotted graph

2012-03-14 Thread kususe
Hi folks, I have a graph got using the subplot command. I'd like to remove all ticks in X axis in all of graph. I used: plt.setp(plt.gca(),'XtickLabel',[]) but I get that: File "/usr/lib/pymodules/python2.6/matplotlib/artist.py", line 1169, in setp func = getattr(o,funcName) AttributeEr

[Matplotlib-users] How to draw an arrow

2012-03-14 Thread kususe
Hi folks, I've to draw an arrow. I used Arrow() function: pa.Arrow(0, 0, x, y, width=1.0) where I imported matplotlib.patches as pa Now, how to use plot() function di display the figure? Tanks in advance, K. -- View this message in context: http://old.nabble.com/How-to-draw-an-arrow-tp3