Re: [Matplotlib-users] Possible bug with saving eps figure

2013-04-26 Thread john collins
Filipe Pires Alvarenga Fernandes writes: > > Yep, that's what I was expecting. It should fail with both show() and > the save as 'png' format. However, it only fails when trying to save > an 'eps' > > -Filipe > > On Mon, May 7, 2012 at 1:12 PM, Benjamin Root ou.edu> wrote: > > On Mon, May

[Matplotlib-users] problem with Path.contains_points

2013-04-26 Thread Cameron Hayne
I've been converting my code that used nxutils.points_inside_poly (for checking if a point is inside a polygon) to instead use path.contains_points (since the former is now deprecated). After reading the docs about creating Path objects, I thought I understood that I needed to supply the first v

Re: [Matplotlib-users] Individual custom markers and colorbar

2013-04-26 Thread Brendan Barnwell
On 2013-04-26 08:31, Sterling Smith wrote: > Notwithstanding these probably work (I haven't tried), my gut reaction would have been to color the edges the same as the face, although I don't know if you can give set_edgecolor the same cmap(colors_norm) argument. I think you can set the edg

Re: [Matplotlib-users] Projection Direction Distortion

2013-04-26 Thread Jody Klymak
Hi Mat, On Apr 26, 2013, at 3:03 AM, Mathew Topper wrote: > I have a set of wave directions in lon lat, Not clear how a direction is given as a lon lat. Do you mean you have a set of vectors, each defined as lon/lat pairs? > but I want to display them > in a UTM type projection. I belie

Re: [Matplotlib-users] Setting right spine position to 'zero' locates spine at +1

2013-04-26 Thread Goyo
2013/4/26 Chad Parker > Hi all- > > I've been working on a plot that puts the bottom and right spines at zero > (adapting some code from the example at > http://matplotlib.org/examples/pylab_examples/spine_placement_demo.html) > , and I've discovered that setting the position of the right spine t

Re: [Matplotlib-users] Individual custom markers and colorbar

2013-04-26 Thread Hackstein
Ryan, thank you very much, it works and it's exaclty how I needed it to look like! Cheers, -- Try New Relic Now & We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service

Re: [Matplotlib-users] Individual custom markers and colorbar

2013-04-26 Thread Sterling Smith
Notwithstanding these probably work (I haven't tried), my gut reaction would have been to color the edges the same as the face, although I don't know if you can give set_edgecolor the same cmap(colors_norm) argument. -Sterling On Apr 26, 2013, at 5:30AM, Ryan Nelson wrote: > Hackstein, > > Fr

Re: [Matplotlib-users] wxPython Phoenix - backend_wxagg

2013-04-26 Thread Michael Droettboom
On 04/26/2013 02:57 AM, Werner F. Bruhin wrote: > Hi, > > Anyone can provide some info on what "agg.buffer_rgba" returns and maybe > even some suggestion on how to resolve this issue in the wxagg backend. It returns a Python buffer object on Python 2, though on Python 3 it is a memoryview, since

Re: [Matplotlib-users] Individual custom markers and colorbar

2013-04-26 Thread Ryan Nelson
Hackstein, Francesco's suggestion works for me. col.set_edgecolor( 'none' ) You can also set the linewidth to be 0. col.set_linewidth( 0 ) Colorbars in these cases can be more painful than you might like. You need to make a mappable object and pass that into a figure.colorbar call. Rather than

Re: [Matplotlib-users] Individual custom markers and colorbar

2013-04-26 Thread Hackstein
Thanks, Francesco, but I already tried for both and that doesn't work either. Cheers, Am 26.04.2013 um 14:07 schrieb Francesco Montesano : > > Il giorno 26/apr/2013 13:16, "Hackstein" ha scritto: > > > > Thanks, Ryan, this is (amost) exactly what I was looking for. Now, I get > > the markers

Re: [Matplotlib-users] Individual custom markers and colorbar

2013-04-26 Thread Francesco Montesano
Il giorno 26/apr/2013 13:16, "Hackstein" ha scritto: > > Thanks, Ryan, this is (amost) exactly what I was looking for. Now, I get the markers and their colors right, but I still have two problems: > The markers have a black edges, that I cannot get rid of. I've tried > > rect = Rectangle(..., ec=

[Matplotlib-users] Setting right spine position to 'zero' locates spine at +1

2013-04-26 Thread Chad Parker
Hi all- I've been working on a plot that puts the bottom and right spines at zero (adapting some code from the example at http://matplotlib.org/examples/pylab_examples/spine_placement_demo.html) , and I've discovered that setting the position of the right spine to 'zero' seems to locate it at x=1.

Re: [Matplotlib-users] Individual custom markers and colorbar

2013-04-26 Thread Hackstein
Thanks, Ryan, this is (amost) exactly what I was looking for. Now, I get the markers and their colors right, but I still have two problems: The markers have a black edges, that I cannot get rid of. I've tried rect = Rectangle(..., ec=None) and also col.set=edgecolor(None) and 'None', respecti

Re: [Matplotlib-users] matplotlib and opensuse 12.3

2013-04-26 Thread Nils Wagner
Hi Michael, Great. Now it works fine for me. Nils On 4/25/13, Michael Droettboom wrote: > I believe this PR fixes this bug: > > https://github.com/matplotlib/matplotlib/pull/1884 > > I had been waiting for the original poster to confirm before merging, > but I think I'll go ahead and do this an

[Matplotlib-users] Projection Direction Distortion

2013-04-26 Thread Mathew Topper
Dear all, I have a set of wave directions in lon lat, but I want to display them in a UTM type projection. I believe the directions will be distorted, but I'm not sure by how much. Does anyone know of a method for calculating new directions under a projection change? Thanks again for your hel