Re: [Matplotlib-users] How to have few marks on the lines?

2010-05-25 Thread Omer Khalid
Hi Jae, Thanks for your reply and letting me know about this. Can you please point me to some code example? Cheers, Omer On Thu, May 20, 2010 at 20:38, Jae-Joon Lee lee.j.j...@gmail.com wrote: http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.plot use *markevery*

[Matplotlib-users] Clearing A Figure (I Know That This Has Been Posted Before But I Does Not Work For Me)

2010-05-25 Thread Thistleryver
I am attempting to run a lot of tests automatically and generate a graph for each one. However, at the moment, the previous graph remains on the figure and the next plot is drawn over it. I have read extensively the documentation and I have tried a whole lot of different commands but to no

Re: [Matplotlib-users] How to have few marks on the lines?

2010-05-25 Thread John Hunter
On Tue, May 25, 2010 at 6:46 AM, Omer Khalid omer.kha...@cern.ch wrote: Hi Jae, Thanks for your reply and letting me know about this. Can you please point me to some code example? In [226]: t = np.arange(0, 2, 0.05) In [227]: s = np.sin(2*np.pi*t) In [228]: plot(t, s, '-') Out[228]:

Re: [Matplotlib-users] Clearing A Figure (I Know That This Has Been Posted Before But I Does Not Work For Me)

2010-05-25 Thread John Hunter
On Tue, May 25, 2010 at 4:08 AM, Thistleryver mhar...@ec.auckland.ac.nz wrote: I am attempting to run a lot of tests automatically and generate a graph for each one.  However, at the moment, the previous graph remains on the figure and the next plot is drawn over it. I have read extensively

Re: [Matplotlib-users] [matplotlib-devel] basemap domain changes on pyplot call

2010-05-25 Thread Benjamin Root
Chris, If you have lat-long, you can call your basemap object to convert it to map coordinates. I forget if you have to call inverse=True or not. Off the top of my head it would be something like this (assuming 'map' is your Basemap object that has already been initialized): x, y = map(45.0,

[Matplotlib-users] Compiling matplotlib against 64 bit python 2.6 on OSX Snow Leopard

2010-05-25 Thread Pim Schellart
Hi Everyone, I am attempting to compile matplotlib against a 64 bit version of Python 2.6 compiled and installed from source on OSX 10.6 (Snow Leopard). Numpy, scipy, freetype2 and libpng have been installed and work just fine, however I cannot get matplotlib to compile correctly. I get the

Re: [Matplotlib-users] Compiling matplotlib against 64 bit python 2.6 on OSX Snow Leopard

2010-05-25 Thread George Nurser
Hi, Installing pkg-config sorted things out for me. http://pkgconfig.freedesktop.org/releases/pkg-config-0.23.tar.gz --George. On 25 May 2010 16:03, Pim Schellart p.schell...@gmail.com wrote: Hi Everyone, I am attempting to compile matplotlib against a 64 bit version of Python 2.6 compiled

Re: [Matplotlib-users] Compiling matplotlib against 64 bit python 2.6 on OSX Snow Leopard

2010-05-25 Thread John Hunter
On Tue, May 25, 2010 at 10:10 AM, George Nurser gnur...@gmail.com wrote: Hi, Installing pkg-config sorted things out for me. http://pkgconfig.freedesktop.org/releases/pkg-config-0.23.tar.gz Also, you may want to try the make.osx script which lives beside setup.py. See the associated

Re: [Matplotlib-users] Compiling matplotlib against 64 bit python 2.6 on OSX Snow Leopard

2010-05-25 Thread John Hunter
On Tue, May 25, 2010 at 10:45 AM, Pim Schellart p.schell...@gmail.com wrote: Hi John and George, I tried both and although it now seems to find the libraries it still fails to link something. matplotlib-0.99.1.1 $ sudo python setup.py install According to the README I pointed you too, this

Re: [Matplotlib-users] Compiling matplotlib against 64 bit python 2.6 on OSX Snow Leopard

2010-05-25 Thread George Nurser
If what John suggests doesn't work, and you really only need 64 bit, then the nuclear option is to remove all occurrences of -arch i386 from the makefile (assuming you have a framework build) at /Library/Frameworks/Python.framework/Versions/Current/lib/python2.6/config/Makefile This should only

Re: [Matplotlib-users] Mac backend problems for nearly all backends.

2010-05-25 Thread Daniel Welling
$%$^#!!! My sincere apologies, gmail sent before I was ready. To continue: GtkCairo: looks great, crashes ipython on resize. Wx: color issues, not stable. Qt: installs from fink, but won't load. In any case, it's not the Gtk/Qt/Wx problems that are important, it's the OSX backend issue.

[Matplotlib-users] Mac backend problems for nearly all backends.

2010-05-25 Thread Daniel Welling
Greetings. I did quite a bit of digging on this and cannot find similar problems, but if I did miss an earlier discussion, then I apologize. In any case, I have been having royal problems with GUI backends and matplotlib. Some background on where I've been having these problems: Machine 1: OSX

Re: [Matplotlib-users] matplotlib font in cairo

2010-05-25 Thread Frank Adämmer
I've found a little work-a-round to get my custom font. Here it is: from ctypes import windll gdi32 = windll.gdi32 FR_PRIVATE = 0x10 gdi32.AddFontResourceExA(FILENAME_OF_TTF,FR_PRIVATE,0) greetz Frank Am 18.05.2010 16:09, schrieb Michael Droettboom: We went through this a few years ago

Re: [Matplotlib-users] Mac backend problems for nearly all backends.

2010-05-25 Thread Jonathan Stickel
I've experienced many of the same problems on Mac OS X 10.6.3 (Snow Leopard). I have python/scipy/numpy/matplotlib/ipython all installed via Macports. I found the MacOSX backend to work OK, but I could not save a figure through the GUI. I finally have the WXagg backend working, but that

[Matplotlib-users] Type 1 font in figures needed

2010-05-25 Thread David Reichert
Hi, I'm writing a conference paper and I must use only type 1 fonts. It seems like matplotlib is using type 3. How can I use type 1 instead? Thanks, David The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336.

Re: [Matplotlib-users] Type 1 font in figures needed

2010-05-25 Thread Michael Droettboom
There isn't a way to embed Type 1 fonts, but you can force matplotlib to use the core 14 Postscript fonts only by setting the rcParam ps.useafm to True. Mike On 05/25/2010 04:10 PM, David Reichert wrote: Hi, I'm writing a conference paper and I must use only type 1 fonts. It seems like

Re: [Matplotlib-users] Type 1 font in figures needed

2010-05-25 Thread Eric Firing
On 05/25/2010 10:21 AM, Michael Droettboom wrote: There isn't a way to embed Type 1 fonts, but you can force matplotlib to use the core 14 Postscript fonts only by setting the rcParam ps.useafm to True. Or for the pdf backend, rcParams['pdf.use14corefonts'] = True and refrain from using any

[Matplotlib-users] Link from matplotlib webpage hijacked

2010-05-25 Thread Kaushik Ghose
Hi Gang, I don't know if it is a problem from nabble, but the 'archives' link from the main matplotlib pages goes to a decidedly non-matplotlib page. The link is http://www.nabble.com/matplotlib---users-f2906.html Best -Kaushik

Re: [Matplotlib-users] Mac backend problems for nearly all backends.

2010-05-25 Thread Christopher Barker
Jonathan Stickel wrote: I've experienced many of the same problems on Mac OS X 10.6.3 (Snow Leopard). I have python/scipy/numpy/matplotlib/ipython all installed via Macports. Just to be clear -- this sounds like a MacPorts problem, not necessarily an OS-X problem. I finally have the

Re: [Matplotlib-users] Mac backend problems for nearly all backends.

2010-05-25 Thread Michiel de Hoon
Are you using a framework install of Python? Also, does the MacOSX backend work with plain python instead of ipython? --Michiel. --- On Tue, 5/25/10, Daniel Welling dantwell...@gmail.com wrote: MacOSX backend: Loads plots quickly, but when I try to save, I cannot type in the file name area of

[Matplotlib-users] interpolate inside a circle

2010-05-25 Thread Carlos Grohmann
Dears, I want to interpolate some irregular data using radial basis. Can I interpolate only the data that falls inside a circle (or a polygon)? TIA -- Prof. Carlos Henrique Grohmann - Geologist D.Sc. Institute of Geosciences - Univ. of São Paulo, Brazil http://www.igc.usp.br/pessoais/guano

Re: [Matplotlib-users] Mac backend problems for nearly all backends.

2010-05-25 Thread Jonathan Stickel
On 05/25/2010 matplotlib-users-requ...@lists.sourceforge.net wrote: From: Christopher Barker chris.bar...@noaa.gov Subject: Re: [Matplotlib-users] Mac backend problems for nearly all backends. To: matplotlib-users@lists.sourceforge.net Message-ID: 4bfc626c.40...@noaa.gov Content-Type:

Re: [Matplotlib-users] Mac backend problems for nearly all backends.

2010-05-25 Thread Daniel Welling
Thanks for the info... 1)The problem does manifest in the same manner through the normal python prompt. 2) I'm not sure what is meant by a framework install. Everything (except MPL 99.1.1) was installed through fink. 3) I've never had problems with Fink software before, and I have a crapload

Re: [Matplotlib-users] Mac backend problems for nearly all backends.

2010-05-25 Thread Michiel de Hoon
1)The problem does manifest in the same manner through the normal python prompt. OK that is good to know. 2) I'm not sure what is meant by a framework install.  Everything (except MPL 99.1.1) was installed through fink. This is important. Check where python is installed. If 'which