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
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
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
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
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
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
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
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
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
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.
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
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
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
>
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
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
.
*
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
.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
&
>
> 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:
>>
&
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_
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.
>
>
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
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
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
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
---
"\\" 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
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
>
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
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
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
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
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
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
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
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
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
35 matches
Mail list logo