Re: [Matplotlib-users] How to make an arrow all one color?

2011-09-06 Thread Brad Malone
Jae-Joon, Thanks! That worked perfectly. Brad On Tue, Sep 6, 2011 at 6:46 PM, Jae-Joon Lee wrote: > In matplotlib, patches have two colors; facecolor and edgecolor. > So, try something like this > > arrowprops=dict(facecolor=((0.549,0.176,0.0156)), > edgecolor=

Re: [Matplotlib-users] How to make an arrow all one color?

2011-09-06 Thread Jae-Joon Lee
In matplotlib, patches have two colors; facecolor and edgecolor. So, try something like this arrowprops=dict(facecolor=((0.549,0.176,0.0156)), edgecolor=(0.549,0.176,0.0156), shrink=0.02,width=1,headwidth=6,frac=0.05), Regards, -JJ On

[Matplotlib-users] How to make an arrow all one color?

2011-09-06 Thread Brad Malone
Hi, I am trying to draw a brown arrow to a particular part of my figure but am having some difficulty. The code I'm currently using is something like: annotate('notice > this',xy=(119.628,-7.9158),xytext=(0.8,0.5),textcoords='axes fraction' > > ,arrowprops=dict(facecolor=((0.549,0.176,0.0156)),shr

Re: [Matplotlib-users] edge joinstyle on rectangles

2011-09-06 Thread Jae-Joon Lee
On Wed, Sep 7, 2011 at 12:47 AM, Jeffrey Blackburne wrote: > It would be nice to have. Since the patch edge seemed to be using a "round" > style and I wanted "miter", my workaround was just to use a separate step > plot to overlay the outline. But for more general cases (e.g., a bar plot not >

Re: [Matplotlib-users] it is possible to use basemap to create regular spaced lat/lon grids?

2011-09-06 Thread Eric Firing
On 09/06/2011 12:55 PM, Paul Hobson wrote: > On Tue, Sep 6, 2011 at 12:58 PM, Benjamin Root wrote: >> >> I don't know the full details, but the idea was that we didn't want to have >> SciPy as a dependency, so mlab was used to replicate many of the functions >> found in SciPy. I don't know why th

Re: [Matplotlib-users] it is possible to use basemap to create regular spaced lat/lon grids?

2011-09-06 Thread Paul Hobson
On Tue, Sep 6, 2011 at 12:58 PM, Benjamin Root wrote: > > I don't know the full details, but the idea was that we didn't want to have > SciPy as a dependency, so mlab was used to replicate many of the functions > found in SciPy.  I don't know why the calling conventions are different, > though. >

[Matplotlib-users] Moving plot windows?

2011-09-06 Thread Ethan Gutmann
Hi, I'm trying to move plot windows programmatically, or at least control where a new window opens. At the moment, every new window opens 20px further down/right from the previous new window, but can I tell it to open e.g. 0px down and 100px right? Or can I move it after it opens? I've dug arou

Re: [Matplotlib-users] it is possible to use basemap to create regular spaced lat/lon grids?

2011-09-06 Thread Benjamin Root
On Tue, Sep 6, 2011 at 2:48 PM, Matt Funk wrote: > Hi Aman, > thanks for your code. I am testing it right now, but i think this might > what i need. > Not sure if you know this: what is the difference between: > 1) scipy.interpolate.griddata > 2) matplotlib.mlab.griddata > > For 2) you have spec

Re: [Matplotlib-users] it is possible to use basemap to create regular spaced lat/lon grids?

2011-09-06 Thread Matt Funk
Hi Aman, thanks for your code. I am testing it right now, but i think this might what i need. Not sure if you know this: what is the difference between: 1) scipy.interpolate.griddata 2) matplotlib.mlab.griddata For 2) you have specify the interpolation method and i think the calling convention is

Re: [Matplotlib-users] How do you Plot data generated by a python script?

2011-09-06 Thread surfcast23
Benjamin Root-2 wrote: > > On Tue, Sep 6, 2011 at 12:01 PM, surfcast23 wrote: > >> >> Thanks for everyone responses and help >> >> Che, >> >> You are correct on what I have to do. The problem is that I have a data >> set >> with ~1250 so I cant' do the sorting or finding the mean by hand. I

Re: [Matplotlib-users] it is possible to use basemap to create regular spaced lat/lon grids?

2011-09-06 Thread Aman Thakral
Hi Matt, Something like this?: def create_map(ax, llcrnrlon,llcrnrlat,urcrnrlon,urcrnrlat): m = Basemap(llcrnrlon=llcrnrlon,llcrnrlat=llcrnrlat,urcrnrlon=urcrnrlon,urcrnrlat=urcrnrlat,resolution='i',projection='cyl',lon_0=(urcrnrlon+llcrnrlon)/2,lat_0=(urcrnrlat+llcrnrlat)/2) m.drawcoastl

[Matplotlib-users] it is possible to use basemap to create regular spaced lat/lon grids?

2011-09-06 Thread Matt Funk
Hi, i want to interpolate irregular spaced satellite data onto a regular spaced grid. The regular spaced grid should have cell sizes of 1km^2. Is it possible to use basemap to create such a grid. It looked like it includes some facilities like that, but i am not sure if they are meant to be used by

Re: [Matplotlib-users] How do you Plot data generated by a python script?

2011-09-06 Thread C M
>> The problem is that I have a data set >> with ~1250 so I cant' do the sorting or finding the mean by hand. That's not a problem--that's programming! Even if you had a data set with five items you should be in the mind set that "by hand" is an 18th century approach. This will drive further pro

Re: [Matplotlib-users] edge joinstyle on rectangles

2011-09-06 Thread Eric Firing
On 09/06/2011 04:48 AM, Michael Droettboom wrote: > On 08/31/2011 01:20 PM, Eric Firing wrote: >> On 08/31/2011 06:45 AM, Jeffrey Blackburne wrote: >>> Hi, >>> >>> Are the edges of the rectangles returned by plt.bar() supposed to conform >>> to the 'lines.solid_joinstyle' rcParam? If not, is there

Re: [Matplotlib-users] How do you Plot data generated by a python script?

2011-09-06 Thread Benjamin Root
On Tue, Sep 6, 2011 at 12:01 PM, surfcast23 wrote: > > Thanks for everyone responses and help > > Che, > > You are correct on what I have to do. The problem is that I have a data > set > with ~1250 so I cant' do the sorting or finding the mean by hand. I guess > what I need to to is to write a s

Re: [Matplotlib-users] How do you Plot data generated by a python script?

2011-09-06 Thread surfcast23
Thanks for everyone responses and help Che, You are correct on what I have to do. The problem is that I have a data set with ~1250 so I cant' do the sorting or finding the mean by hand. I guess what I need to to is to write a script that will sort the values, bin them, and keep track of the n

Re: [Matplotlib-users] Change JPG compression ratio in savefig

2011-09-06 Thread Michael Droettboom
Sorry for the noise -- I missed that this was already replied to (and with much greater detail). Mike On 09/06/2011 12:41 PM, Michael Droettboom wrote: > When you call savefig(), you can pass "quality", "optimize" and > "progressive", as defined in the print_jpg docstring: > > def prin

Re: [Matplotlib-users] Change JPG compression ratio in savefig

2011-09-06 Thread Michael Droettboom
When you call savefig(), you can pass "quality", "optimize" and "progressive", as defined in the print_jpg docstring: def print_jpg(self, filename_or_obj, *args, **kwargs): """ Supported kwargs: *quality*: The image quality, on a scale from 1 (wors

Re: [Matplotlib-users] Can't render the \dagger LaTex symbol

2011-09-06 Thread Michael Droettboom
Indeed that is a bug. That is one of about a dozen missing symbols from the mapping that I just found be comparing the legacy Adobe Type1 name-to-Unicode mapping in matplotlib to the LaTeX-to-Unicode mapping that is currently used. I committed these to master here: https://github.com/mat

Re: [Matplotlib-users] edge joinstyle on rectangles

2011-09-06 Thread Jeffrey Blackburne
On Sep 6, 2011, at 10:48 AM, Michael Droettboom wrote: >On 08/31/2011 01:20 PM, Eric Firing wrote: >> On 08/31/2011 06:45 AM, Jeffrey Blackburne wrote: >>> Hi, >>> >>> Are the edges of the rectangles returned by plt.bar() supposed to conform >>> to the 'lines.solid_joinstyle' rcParam? If not, is th

Re: [Matplotlib-users] Problem with GTK backends after compiling matplotlib

2011-09-06 Thread Michael Droettboom
On 08/31/2011 11:21 PM, Eric Firing wrote: > On 08/31/2011 01:59 PM, Benjamin Root wrote: >> On Wed, Aug 31, 2011 at 6:35 PM, Craig Finch> > wrote: >> >> I figured it out! I accidentally did something weird. When I built >> NumPy and SciPy, I used the --user opt

Re: [Matplotlib-users] edge joinstyle on rectangles

2011-09-06 Thread Michael Droettboom
On 08/31/2011 01:20 PM, Eric Firing wrote: > On 08/31/2011 06:45 AM, Jeffrey Blackburne wrote: >> Hi, >> >> Are the edges of the rectangles returned by plt.bar() supposed to conform to >> the 'lines.solid_joinstyle' rcParam? If not, is there another method for >> specifying that joinstyle? >> >>