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

2010-05-26 Thread Michiel de Hoon
We can actually check from Python whether it's a framework install or not. >>> import MacOS >>> MacOS.WMAvailable() returns True if it's a framework install, False if not. I can add this check to the MacOSX backend and print out a warning if it's not a framework install. --Michiel --- On Wed

Re: [Matplotlib-users] Finding fonts

2010-05-26 Thread T J
On Wed, May 26, 2010 at 4:20 PM, Michael Droettboom wrote: > On 05/26/2010 04:47 PM, T J wrote: >> When I plot, I get: >> >> UserWarning: findfont: Font family ['sans-serif'] not found. Falling >> back to Bitstream Vera Sans >>    (prop.get_family(), self.defaultFamily[fontext])) >> >> My matplotl

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

2010-05-26 Thread Vincent Davis
I am using the EPD and have have an issue with saving( I cant type in a name for the file) Are you using the 64bit? I don't think wx runs in 64 bit and so something else is used in the EPD 64 distro. Not really clear on this and has been awhile since I looked at it. On Tue, May 25, 2010 at 12:51 P

Re: [Matplotlib-users] Finding fonts

2010-05-26 Thread Michael Droettboom
On 05/26/2010 04:47 PM, T J wrote: > When I plot, I get: > > UserWarning: findfont: Font family ['sans-serif'] not found. Falling > back to Bitstream Vera Sans >(prop.get_family(), self.defaultFamily[fontext])) > > My matplotlibrc file has: > > font.sans-serif: Computer Modern Sans Serif > font

Re: [Matplotlib-users] To modify 'extend' in a 2D plot

2010-05-26 Thread Eric Firing
On 05/26/2010 12:31 PM, Jose Guzman wrote: > Dear Matplotlib users, > > I need to plot a (time x distance) array of measurements associated with > a color bar. Although time is fixed (i.e 0, 1, 2, etc..), to the number > of rows, the distances are not evenly distributed (e.g are fixed to > 1.22, 1.

[Matplotlib-users] To modify 'extend' in a 2D plot

2010-05-26 Thread Jose Guzman
Dear Matplotlib users, I need to plot a (time x distance) array of measurements associated with a color bar. Although time is fixed (i.e 0, 1, 2, etc..), to the number of rows, the distances are not evenly distributed (e.g are fixed to 1.22, 1.53, 1.84, 2,11.), although are always constant. My

Re: [Matplotlib-users] Show() in emacs

2010-05-26 Thread Ted Rosenbaum
Jonn-- Thanks very much. Customizing the backend to TkAgg solved the problem. Chloe--thanks for your advice as well! On Wed, May 26, 2010 at 3:21 PM, John Hunter wrote: > On Tue, May 25, 2010 at 10:40 PM, Ted Rosenbaum > wrote: > > Hi, > > I am a real newbie at matplotlib, so I apologize if t

[Matplotlib-users] Finding fonts

2010-05-26 Thread T J
When I plot, I get: UserWarning: findfont: Font family ['sans-serif'] not found. Falling back to Bitstream Vera Sans (prop.get_family(), self.defaultFamily[fontext])) My matplotlibrc file has: font.sans-serif: Computer Modern Sans Serif font.serif: Computer Modern Roman font.monospace: C

Re: [Matplotlib-users] Show() in emacs

2010-05-26 Thread John Hunter
On Tue, May 25, 2010 at 10:40 PM, Ted Rosenbaum wrote: > Hi, > I am a real newbie at matplotlib, so I apologize if this is an obvious > question. > I am running ipython in emacs and while the first time I use the show() > command in the ipython buffer the graph shows up fine, subsequent times that

Re: [Matplotlib-users] interpolate inside a circle

2010-05-26 Thread Jose Gomez-Dans
On 26 May 2010 17:20, Carlos Grohmann wrote: > I can interpolate my data using rbf, but only inside a rectangular > area (mesh). I'm looking into how to interpolate data inside a > circular area, that is, disregarding anything outside a circle (or a > polygon, like a convex hull) > If you can de

Re: [Matplotlib-users] Show() in emacs

2010-05-26 Thread Chloe Lewis
My near-newbie suspicion is that you're using more tools than you need and having them interfere with each other. The show() command generally doesn't return control to whatever called it until you've closed the shown window (http://bytes.com/topic/python/answers/635142-matplotlib-basic-que

Re: [Matplotlib-users] overlapping text in pie plot

2010-05-26 Thread Jae-Joon Lee
On Mon, May 24, 2010 at 10:04 AM, Fredrik Pihl wrote: > some googling gives this thread: > http://www.mail-archive.com/matplotlib-users@lists.sourceforge.net/msg16191.html > > but that doesn't solve the problem, just makes it different... Different, but much easier to solve. Unfortunately, Matplo

[Matplotlib-users] projection question

2010-05-26 Thread Mathew Yeates
Hi This probably belongs in Proj mailing list, but . I want to specify a line/sample horizontal/vertical tile in a 1 Km resolution sinusoidal projection and get back a lat/lon. Anyone know how to do this? Mathew --

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

2010-05-26 Thread Christopher Barker
Daniel Welling wrote: > A quick update on Mac backends: > While I don't want to drag this thread on forever, I feel like some of > this info is useful for the Mac/MPL community. I would love to hear > from anyone else who has the OSX backend problem; it seems to be > isolated to Fink. I'm st

Re: [Matplotlib-users] interpolate inside a circle

2010-05-26 Thread Carlos Grohmann
Thanks Fabrice. I can interpolate my data using rbf, but only inside a rectangular area (mesh). I'm looking into how to interpolate data inside a circular area, that is, disregarding anything outside a circle (or a polygon, like a convex hull) tks Carlos On Wed, May 26, 2010 at 09:29, Fab

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

2010-05-26 Thread Daniel Welling
A quick update on Mac backends: 1) Two others in my office use macports, python 2.6, mpl 99.1, and snowleopard. They have none of the issues I have with the GUI stuff. Most notably, their MacOSX backends work properly in both X11 and native Mac terminal. 2) I cannot follow up on WxPython or Qt4 f

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

2010-05-26 Thread John Hunter
On Wed, May 26, 2010 at 10:47 AM, Pim Schellart wrote: > Dear John and George, > > I am happy to report that everything is now working! > The latest SVN patch fixed the fetch problem and a complete removal of > my custom compiled libpng and libfreetype2 followed by: > > sudo make -f make.osx fetch

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

2010-05-26 Thread Pim Schellart
Dear John and George, I am happy to report that everything is now working! The latest SVN patch fixed the fetch problem and a complete removal of my custom compiled libpng and libfreetype2 followed by: sudo make -f make.osx fetch deps mpl_build mpl_install sudo python setup.py install did the re

Re: [Matplotlib-users] Dual x-axes with transformation

2010-05-26 Thread Sarah Graves
Brilliant, that worked perfectly! Thanks very much, Sarah Jae-Joon Lee wrote: > You need to define your own transform. And the best way is to read > through the transforms.py. Here is a modified version of your example > that uses a custom transform. > > However, often you may need to use a custo

[Matplotlib-users] savefig eps error

2010-05-26 Thread alex arsenovic
today i produced an image that failed to save to eps. i can save the file in pdf, but i get the same error if i try to use pdf2ps. png works too, but its not vector. not sure if its important, but the image has 401 lines, with 500 points each. the image is produced from a bunch of data files a

Re: [Matplotlib-users] Matplotlib-users Digest, Vol 48, Issue 46

2010-05-26 Thread Sandy Ydnas
Yes I wrote about problem with show() , too is matplotlib seriouse project Sandy Hi, I am a real newbie at matplotlib, so I apologize if this is an obvious question. I am running ipython in emacs and while the first time I use the show() command in the ipython buffer the graph

Re: [Matplotlib-users] Remove ticklines but keep labels

2010-05-26 Thread Jae-Joon Lee
There is no clear api to manage this. Try something like ax = gca() for t in ax.xaxis.get_major_ticks(): t.tick1On = False t.tick2On = False -JJ On Wed, May 26, 2010 at 6:30 AM, John Reid wrote: > Hi, > > This is probably easy to do but I didn't work it out from the > documentation so

Re: [Matplotlib-users] Dual x-axes with transformation

2010-05-26 Thread Jae-Joon Lee
You need to define your own transform. And the best way is to read through the transforms.py. Here is a modified version of your example that uses a custom transform. However, often you may need to use a custom locator also for this kind of transform. HTH, -JJ from matplotlib.transforms import

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

2010-05-26 Thread John Hunter
On Wed, May 26, 2010 at 5:18 AM, Pim Schellart wrote: > Hi John and George, > > I did of course rtfm :) > However when I do this for the latest svn checkout I get: > > matplotlib $ PREFIX=/usr/local sudo make -f make.osx fetch deps mpl_install > Password: > python2.6 -c 'import urllib; > urllib.ur

Re: [Matplotlib-users] interpolate inside a circle

2010-05-26 Thread Fabrice Silva
Le mardi 25 mai 2010 à 21:47 -0300, Carlos Grohmann a écrit : > 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)? May these pages help you? http://www.scipy.org/Cookbook/RadialBasisFunctions http://do

[Matplotlib-users] Dual x-axes with transformation

2010-05-26 Thread Sarah Graves
Hi, I've made a matplotlib plot with frequency on the x-axis, and I would like to add an additional x-axis at the top that is measured in wavelength , i.e. wavelength = 3e8 / frequency Is there anyway to do this transformation automatically in matplotlib? I tried to give a transformation argu

[Matplotlib-users] Remove ticklines but keep labels

2010-05-26 Thread John Reid
Hi, This is probably easy to do but I didn't work it out from the documentation so far. How do I remove the tick lines on a plot but keep the labels? Thanks, John. -- ___ M

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

2010-05-26 Thread Pim Schellart
Hi John and George, I did of course rtfm :) However when I do this for the latest svn checkout I get: matplotlib $ PREFIX=/usr/local sudo make -f make.osx fetch deps mpl_install Password: python2.6 -c 'import urllib; urllib.urlretrieve("http://www.zlib.net/zlib-1.2.3.tar.gz";, "zlib-1.2.3.tar.gz"

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

2010-05-26 Thread Thistleryver
>w/o seeing the entire code it is difficult to diagnose. Nothing looks >wrong with your code. However, for full control I suggest you use the >API; see examples at >http://matplotlib.sourceforge.net/examples/api/index.html and take a >look at the "artist tutorial" at >http://matplotlib.sourcefor

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

2010-05-26 Thread David Reichert
Thanks I guess that did the trick! On Tue, May 25, 2010 at 9:37 PM, Eric Firing wrote: > 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" > >