[Matplotlib-users] basemap toolkit: project graphics file given in lon-lat

2010-10-15 Thread Daniel Fulger
Dear all, I would like to project a graphics file of some colour coded geo data that is already given in lat-lon with corners specified in lat-lon onto a map. The projection of the result should be flexible. In the end the resulting plot shows a section of the earth, either from a satallite

[Matplotlib-users] Adding Arrows to Polar Plot

2010-10-15 Thread Lorenzo Isella
Dear All, I am not very much into matplotlib, so please bear with me if I am asking a trivial question. I put together this small snippet with the help I got on the mailing list and using the arrow example at http://bit.ly/cI9dqj . My problem is (or at least I believe it to be) the fact that I

[Matplotlib-users] 3d plot without marker edge

2010-10-15 Thread Robert Fenwick
Hi, I have a 3d plot that I am trying to plot and I can not get rid of the marker edge. an example would help Bryn -- Download new Adobe(R) Flash(R) Builder(TM) 4 The new Adobe(R) Flex(R) 4 and Flash(R)

Re: [Matplotlib-users] 3d plot without marker edge

2010-10-15 Thread John Hunter
On Fri, Oct 15, 2010 at 3:10 AM, Robert Fenwick robert.fenw...@irbbarcelona.org wrote: I have a 3d plot that I am trying to plot and I can not get rid of the marker edge. an example would help What have you tried -- if line is a Line3D object, the following should work:

Re: [Matplotlib-users] Adding Arrows to Polar Plot

2010-10-15 Thread Jae-Joon Lee
On Fri, Oct 15, 2010 at 9:33 PM, Lorenzo Isella lorenzo.ise...@gmail.com wrote: arr = Arrow(0, 0, .3, .3, edgecolor='white') # Get the subplot that we are currently working on ax = gca() # Now add the arrow ax.add_patch(arr) I recommend you to use the annotate command. annotate(,

Re: [Matplotlib-users] user group video

2010-10-15 Thread John Hunter
On Thu, Oct 14, 2010 at 2:07 PM, Carl Karsten c...@personnelware.com wrote: yep - thanks.  Not exactly how I remember it from the talk.  wonder where the story got changed. Hey Carl -- I added the talk video link on the mpl website http://carlfk.blip.tv/file/2557425 The dolphins story you

Re: [Matplotlib-users] 3d plot without marker edge

2010-10-15 Thread Daniel Hyams
Since you are talking about markers, I assume that you made the plot with the scatter() function. The scatter() function creates the appropriate collection of patches (polygon, circle, etc.) depending on what the marker style was passed to it. As such, the normal 'marker*' properties do not

Re: [Matplotlib-users] 3d plot without marker edge

2010-10-15 Thread Daniel Hyams
Ugh, if I could only undo an email send 20 seconds after I hit go ;) If setting 'edgewidths' to 0 doesn't work, try setting 'edgecolors' to 'None' as per JDH's suggestion above, which is the same suggestion as mine except for the marker part of the property is removed. On Fri, Oct 15, 2010 at

Re: [Matplotlib-users] Marker types in 3d plots

2010-10-15 Thread Daniel Hyams
Right, there is only a subset of marker styles supported in the scatter function, both 2D and 3D. This is because, behind the scenes, it's drawing all of the symbols as patches. See http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.scatter On Fri, Oct 15, 2010 at 10:43

Re: [Matplotlib-users] Best way to use Excel Data

2010-10-15 Thread Christopher Barker
On 10/14/10 9:52 PM, Alessio Civ wrote: Let' put things this way: if you have to work with many records, it is better if you have a database. pyTables is worth a look, too http://www.pytables.org/moin -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division

[Matplotlib-users] closing figure inside a callback seg faults

2010-10-15 Thread Paul Ivanov
I want to do something like this: import matplotlib.pyplot as plt def onclick(event): if event.button==1: plt.close() fig = plt.gcf() cid = fig.canvas.mpl_connect('button_press_event', onclick) plt.show() I've tried several variations on this theme, but all of them cause

Re: [Matplotlib-users] closing figure inside a callback seg faults

2010-10-15 Thread Chris Barker
On 10/15/10 5:16 PM, Paul Ivanov wrote: I want to do something like this: import matplotlib.pyplot as plt def onclick(event): if event.button==1: plt.close() fig = plt.gcf() cid = fig.canvas.mpl_connect('button_press_event', onclick) plt.show() I've tried

Re: [Matplotlib-users] basemap toolkit: project graphics file given in lon-lat

2010-10-15 Thread Gerrit Kuhlmann
Dear Daniel, to give the corners of an array, some matplotlib plotting functions have the extent keyword, e.g. contour and imshow. You can use this to put your data on the map. However, the functions of the Basemap class do not support this functionality. Basemap.imshow overwrites the extent