Re: [Matplotlib-users] plot Africa only

2014-10-24 Thread Filipe Pires Alvarenga Fernandes
Hi Tommy, there is not easy way to do it with matplolib+basemap. Also, you will find it extra hard because the image you are plotting (blue marble) is raster that is cut in lon, lat bounding box. Therefore, unless you create a mask around what to plot and what not to plot, it will show everythin

Re: [Matplotlib-users] Drag, add, remove points from a plot with the mouse

2012-09-12 Thread Filipe Pires Alvarenga Fernandes
OK, a little bit more of manual reading I got the "drag point" working. Now, even though it works, I would like the opinion of someone with more experience on event handling to improve that. Thanks, Filipe On Wed, Sep 12, 2012 at 6:14 PM, Filipe Pires Alvarenga Fernandes wrote: &g

Re: [Matplotlib-users] Drag, add, remove points from a plot with the mouse

2012-09-12 Thread Filipe Pires Alvarenga Fernandes
After some modifications and manual reading I got "insert" point and "delete" point working, but I still cannot make the "drag" point work... -Filipe On Wed, Sep 12, 2012 at 4:04 PM, Filipe Pires Alvarenga Fernandes wrote: > Hi all, > > I am trying to

[Matplotlib-users] Drag, add, remove points from a plot with the mouse

2012-09-12 Thread Filipe Pires Alvarenga Fernandes
Hi all, I am trying to create a class to edit the points of a plot based on the poly_editor.py example. However, I have very little experience with even handling and I need some help. Here is what I did so far, the "toggle" on/off works fine. Also I believe that actions "press", "release", "ins

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

2012-05-07 Thread Filipe Pires Alvarenga Fernandes
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 wrote: > On Mon, May 7, 2012 at 12:55 PM, Michael Droettboom wrote: >> >> That's not a bug

[Matplotlib-users] Possible bug with saving eps figure

2012-05-07 Thread Filipe Pires Alvarenga Fernandes
Hi, this is not a big deal, but I think that there is a bug while saving eps figures and passing the linewidth='2.5' as string instead of float. The following reproduces the error I get here: plt.plot([1,2,3], 'k', linewidth='2.5') plt.savefig('teste.png') # Saves OK # The following fails with l

Re: [Matplotlib-users] Fwd: Matplotlib gallery

2012-02-23 Thread Filipe Pires Alvarenga Fernandes
Just a suggestion. All these ideas sounds like a "google code-in" task. http://code.google.com/intl/pt-BR/opensource/gci/2010-11/ I do not know if "Matplotlib" participated in the past, if not take a look of last years sympy task list: https://github.com/sympy/sympy/wiki/GCI-2011-Task-list If th

Re: [Matplotlib-users] Basemap shapelib change from 1.0.1 to 1.0.2

2011-10-09 Thread Filipe Pires Alvarenga Fernandes
On Thu, Oct 6, 2011 at 14:50, Jeff Whitaker wrote: > On 9/29/11 9:44 AM, Filipe Pires Alvarenga Fernandes wrote: >> >> Hi I noticed that Basemap 1.0.2 will replace the old pyshapelib with >> the pure python shapelib.py. However, that did break some of my >> scripts w

[Matplotlib-users] Basemap shapelib change from 1.0.1 to 1.0.2

2011-09-29 Thread Filipe Pires Alvarenga Fernandes
Hi I noticed that Basemap 1.0.2 will replace the old pyshapelib with the pure python shapelib.py. However, that did break some of my scripts when I use custom shapefiles. Here is a picture from Basemap 1.0.1, http://imageshack.us/photo/my-images/69/basemap101.png/ and here the same script under

Re: [Matplotlib-users] matplotlib - fill open path inside U.S. borders + sample map

2011-09-29 Thread Filipe Pires Alvarenga Fernandes
On Wed, Sep 28, 2011 at 16:39, Jeff Whitaker wrote: > On 9/28/11 2:19 PM, Isidora wrote: >> Hi Filipe, >> >> I have just seen your answers.  I am trying to plot on a background GIF map, >> lines like the ones you can see in >> http://www.spc.noaa.gov/products/outlook/day1probotlk_2000_wind.gif.

Re: [Matplotlib-users] Fw: matplotlib - fill open path inside U.S. borders + sample map

2011-09-28 Thread Filipe Pires Alvarenga Fernandes
Hi Isidora, in the past I used the matlab function below for a similar task. Maybe it can be adapted to your problem. If you can provide a small sample of your problem I can try to implement that in python (it has been in my TODO list for a while, but i cannot promise.) http://woodshole.er.usgs.go

Re: [Matplotlib-users] Problems installing Matplotlib under SUSE SLES 11 SP1

2011-09-15 Thread Filipe Pires Alvarenga Fernandes
On Thu, Sep 15, 2011 at 14:48, Filipe Pires Alvarenga Fernandes wrote: > On Thu, Sep 15, 2011 at 14:34, John Hunter wrote: >> On Thu, Sep 15, 2011 at 1:31 PM, Filipe Pires Alvarenga Fernandes >> wrote: >>> Hi, >>> >>> On SUSE you have "zypper

Re: [Matplotlib-users] Problems installing Matplotlib under SUSE SLES 11 SP1

2011-09-15 Thread Filipe Pires Alvarenga Fernandes
On Thu, Sep 15, 2011 at 14:34, John Hunter wrote: > On Thu, Sep 15, 2011 at 1:31 PM, Filipe Pires Alvarenga Fernandes > wrote: >> Hi, >> >> On SUSE you have "zypper" >> >> I'm not familiar with SUSE repos, but OpenSUSE repos do have >

Re: [Matplotlib-users] Problems installing Matplotlib under SUSE SLES 11 SP1

2011-09-15 Thread Filipe Pires Alvarenga Fernandes
Hi, On SUSE you have "zypper" I'm not familiar with SUSE repos, but OpenSUSE repos do have matplotlib, just type: "sudo zypper in python-matplolib" that should install it for you. -Filipe On Thu, Sep 15, 2011 at 14:22, John Hunter wrote: > On Thu, Sep 15, 2011 at 11:42 AM, falbriard wrote

Re: [Matplotlib-users] Since upgrading to SUSE 11.3 matplotlib simply craches with segfault

2010-11-15 Thread Filipe Pires Alvarenga Fernandes
Since you are using OpenSuse, (and If you are brave enough) you can add my REPO and use the latest version of matplolib: http://download.opensuse.org/repositories/home:/ocefpaf/openSUSE_11.3/ I compile the svn version every week there. Filipe. On Mon, Nov 15, 2010 at 13:45, Michael Droettboom

Re: [Matplotlib-users] installation question

2010-10-21 Thread Filipe Pires Alvarenga Fernandes
. * Filipe Pires Alvarenga Fernandes, PhD Candidate School of Marine Science and Technology University of Massachusetts at Dartmouth 706 Rodney French Blvd., New Bedford, MA 02744 Email: falvarengafernan...@umassd.edu           ocef...@gmail.com http://ocefpaf.tiddlyspot.com

Re: [Matplotlib-users] How to colorize the ticklabels using host.parasite

2010-09-27 Thread Filipe Pires Alvarenga Fernandes
.get_color()) >    par2.axis["right"].major_ticklabels.set_color(p3.get_color()) Cool, it worked nicely. > Note that these are only effective when you use axes_grid1 toolkit. > > Regards, > > -JJ > > On Tue, Sep 28, 2010 at 1:35 AM, Filipe Pires Alvarenga Fernandes &

Re: [Matplotlib-users] How to colorize the ticklabels using host.parasite

2010-09-27 Thread Filipe Pires Alvarenga Fernandes
> > Aman > > It did not though.  I'm not sure why.  Could someone please clarify? > > On Mon, Sep 27, 2010 at 12:35 PM, Filipe Pires Alvarenga Fernandes > wrote: >> >> I was wondering if there is a way to get a effect similar to this example: >> &

[Matplotlib-users] How to colorize the ticklabels using host.parasite

2010-09-27 Thread Filipe Pires Alvarenga Fernandes
I was wondering if there is a way to get a effect similar to this example: http://matplotlib.sourceforge.net/examples/api/two_scales.html?highlight=codex%20two%20scale Here The yticklabels have the same color as the label, but using host/parasite: http://matplotlib.sourceforge.net/examples/axes_

Re: [Matplotlib-users] New subplots from 1.0 + shared axis

2010-08-09 Thread Filipe Pires Alvarenga Fernandes
On Mon, Aug 9, 2010 at 12:22, Fernando Perez wrote: > On Mon, Aug 9, 2010 at 8:48 AM, Filipe Fernandes wrote: >> >> The docstring for sunplots has the "sharex(y) option", but my "ax" are >> being created now!? Is that a chicken and egg problem? Or I'm failing to >> understand the logic here. > >

Re: [Matplotlib-users] Basemap white space

2010-04-12 Thread Filipe Pires Alvarenga Fernandes
Thanks for point TKinter to me. However, I'm stuck again. I've tried two approaches, one is following what you suggested: """ Tkinter """ import Tkinter as tk root = tk.Tk() from PIL import Image, ImageTk image = ImageTk.PhotoImage(Image.open('map.png')) # load saved image #image = ImageTk.Photo

Re: [Matplotlib-users] Basemap white space

2010-03-30 Thread Filipe Pires Alvarenga Fernandes
ing attached the script if you are interested in looking at it. Thanks again. Filipe. On Sun, Mar 28, 2010 at 3:35 PM, Friedrich Romstedt wrote: > > 2010/3/28 Filipe Pires Alvarenga Fernandes : > > Hello list > > I've trying for a while a "python only" solution to remove

[Matplotlib-users] Basemap white space

2010-03-27 Thread Filipe Pires Alvarenga Fernandes
t implementation. I save and then reload it again... any suggestions to improve this are welcome. Also, I have not tried this on figures with labels and annotations. Thanks for any input. * Filipe Pires Alvarenga Fernandes Universi

Re: [Matplotlib-users] DateFormatter + Latex issue

2010-02-16 Thread Filipe Pires Alvarenga Fernandes
JJ: Wonderful, simple and much less messy and Latex+unicode. Although, now I'm fascinated by the Latex possibilities! Ernest: I haven't notice the "s" before when using "pts", but what is really strange is that "pt" does not work! Thank you all again, Filipe ---

Re: [Matplotlib-users] DateFormatter + Latex issue

2010-02-16 Thread Filipe Pires Alvarenga Fernandes
"\\" works for titles and label, but not for DateFormatter, but \vspace did the trick! Thanks again for the help. ps: I'm new to python, but maybe there is a way to mix Latex and unicode? > as latex as well. > > Yes, all strings are processed by LaTeX. > > > > > However, escaping the \ with an

Re: [Matplotlib-users] DateFormatter + Latex issue

2010-02-16 Thread Filipe Pires Alvarenga Fernandes
Thanks Ernest, I had no idea that the DateFormatter was going to be treated as latex as well. However, escaping the \ with another \ did not worked. I tried: majorF = DateFormatter("\\n \\n %b") How should I escape the \n ? > majorF = DateFormatter("\n \n %b") # problem >

[Matplotlib-users] DateFormatter + Latex issue

2010-02-15 Thread Filipe Pires Alvarenga Fernandes
Hello list, If I use DateFormatter with latex and lines breaks like this >>> DateFormatter("\n \n %b") I get an latex error: http://pastebin.com/m5b186ded Although, if I do not use the line breaks, >>> DateFormatter("%b") The problem disappears. Below is a script that reproduces what I'm talkin

Re: [Matplotlib-users] Placing a marker at specific places where lines join?

2010-02-14 Thread Filipe Pires Alvarenga Fernandes
Dear Wayne Watson, As yourself I'm also new to matplotlib (and python) and I know that learning such a library can be overwhelming at first. Still, this community/mailist has answered all my newbie questions, even when they were clearly in the manual or have already been answered in previous posts

Re: [Matplotlib-users] x,y ticklabel too close

2010-02-12 Thread Filipe Pires Alvarenga Fernandes
erted the CSIRO seawater library from matlab to python. http://www.cmar.csiro.au/datacentre/ext_docs/seawater.htm I know that this is specific for oceanographers, but I saw some of us in this list. Thanks again, this list helped my a lot. On Thu, Feb 11, 2010 at 12:40 PM, Filipe Pires Alva

[Matplotlib-users] x,y ticklabel too close

2010-02-11 Thread Filipe Pires Alvarenga Fernandes
Hello list, For the following plotI using a large font for the tick-label that causes the first x,y tick-labels to overlap http://yfrog.com/5zimageykp for now I'm padding spaces to "fix" the plot, like this: newtick = ["-10 ", "-5", "0 ", "5 ", "10 "] pos =[-10, -5, 0, 5, 10] y

Re: [Matplotlib-users] quiver + dates

2010-02-10 Thread Filipe Pires Alvarenga Fernandes
Hello again, I managed to produce a nice stickplot, thanks to all again. Here is the script in case anyone is interested. http://dl.dropbox.com/u/4411725/plt-surf-flx.html Best, Filipe On Mon, Feb 8, 2010 at 9:57 AM, Filipe Pires Alvarenga Fernandes < ocef...@gmail.com> wrote: > Tha

Re: [Matplotlib-users] quiver + dates

2010-02-08 Thread Filipe Pires Alvarenga Fernandes
pylab as P > # t may be generated using date2num() > t = P.arange(100,110,.1) > u = P.sin(t) > v = P.cos(t) > P.quiver([t],[[0]*len(t)],u,v) > P.gca().xaxis_date() > P.show() > > > On Sun, Feb 7, 2010 at 6:11 PM, Filipe Pires Alvarenga Fernandes < > ocef...@gmail.com

[Matplotlib-users] quiver + dates

2010-02-07 Thread Filipe Pires Alvarenga Fernandes
ks, Filipe ***** Filipe Pires Alvarenga Fernandes University of Massachusetts Dartmouth 200 Mill Road - Fairhaven, MA Tel: (508) 910-6381 Email: falvarengafernan...@umassd.edu ocef...@yahoo.com.br ocef...@gmail.com http://ocefpaf.tidd

[Matplotlib-users] accented characters

2010-01-25 Thread Filipe Pires Alvarenga Fernandes
Does matplotlib support accented characters without the TeX mathtext? Thanks. * Filipe Pires Alvarenga Fernandes University of Massachusetts Dartmouth 200 Mill Road - Fairhaven, MA Tel: (508) 910-6381 Email: falvarengafernan...@umassd.edu

[Matplotlib-users] Plots dates on contour plot

2010-01-14 Thread Filipe Pires Alvarenga Fernandes
t like: > CS = contourf(tempo, depth, dens) But I cannot make the dates appear, the plot shows only the "date number". Thanks for any help, Filipe ps: matplotlib version: 0.99.1.1 backend: Qt4Agg llinux Opensuse 11.2 ********* Filipe Pires