[Matplotlib-users] matplotlib ignores CocoaAgg backend in matplotlibrc

2007-12-05 Thread Chris Fonnesbeck
I have the CocoaAgg backend specified in matplotlibrc in ~/.matplotlib/ as: backend : CocoaAgg However, when I plot, matplotlib uses the TkAgg backend in spite of this. -- Christopher J. Fonnesbeck + Fish Wildlife Research Institute (FWC) + 727.235.5570

[Matplotlib-users] How to show matplotlib.image ?

2007-12-05 Thread hjc520070
The following run well . But I just want to make the image, with the x and y as axis and z as the image value ,show on the figure. In the pylab , we can just give a command imshow ,But here , I fail to do it , I have try ax.imshow() again and again ,but fail. Can sb give me some advice . Thank

[Matplotlib-users] CocoaAgg backend status?

2007-12-05 Thread Stephen Uhlhorn
I was just wondering what the status of the CocoaAgg backend is since there is not much info available. Can it be used interactively w/ipython? Can it be used to embed mpl in a cocoa app and take advantage of all the xcode/interface builder stuff in OS X? Thanks- -stephen

Re: [Matplotlib-users] Matplotlib very slow

2007-12-05 Thread José Gómez-Dans
On Tuesday 04 December 2007 16:16:06 José Gómez-Dans wrote: On Tuesday 04 December 2007 16:05:33 John Hunter wrote: On Dec 4, 2007 10:00 AM, José Gómez-Dans [EMAIL PROTECTED] wrote: Hmm, the plot thickens. How about embedding_in_gtk2.py -- this add the toolbar This does indeed slow

Re: [Matplotlib-users] possible to expand the current Colorcycle?

2007-12-05 Thread John Hunter
On Dec 5, 2007 6:38 AM, Søren Nielsen [EMAIL PROTECTED] wrote: Hi, Is it possible to expand the colorcycle that matplotlib uses by default? in axes.py, class _process_plot_var_args, def _clear_color_cycle(self) It seems that self.colors are hardcoded to be self.colors =

Re: [Matplotlib-users] eggs or pythonmac packages on OS X?

2007-12-05 Thread Stephen Uhlhorn
On Dec 4, 2007 5:14 PM, Russell E. Owen [EMAIL PROTECTED] wrote: If you use Tcl/Tk and use a current version (instead of the ancient version that is built in) then use the packages at pythonmac. I just built 0.91.1 today and it should show up there soon. Meanwhile you can get it from here:

Re: [Matplotlib-users] Matplotlib very slow

2007-12-05 Thread John Hunter
On Dec 5, 2007 8:58 AM, José Gómez-Dans [EMAIL PROTECTED] wrote: Mmmm... I was just wondering whether compiling the new 0.91.1 version might make the problem go away? I am currently running 0.90.1. Unlikely, we haven't changed anything in that code. One thing you can do, it is fairly labor

Re: [Matplotlib-users] matplotlib/__init__.py : gs version parsing problem

2007-12-05 Thread hjc520070
Xavier Gnata wrote: Hi, Quoting matplotlib/__init__.py : def checkdep_ghostscript(): try: if sys.platform == 'win32': command = 'gswin32c -v' else: command = 'gs -v' stdin, stdout = os.popen4(command) line =

Re: [Matplotlib-users] How to show matplotlib.image ?

2007-12-05 Thread Christopher Barker
John Hunter wrote: You cannot import pylab and use the FigureCanvasWx at the same time. Please follow the lead of examples/embedding_in_wx*.py if you want to use matplotlib in a wxpython GUI. or use wxmpl: http://agni.phys.iit.edu/~kmcivor/wxmpl/ By the way, couldn't that be distributed with

Re: [Matplotlib-users] ImportError: cannot import name rcParams

2007-12-05 Thread John Hunter
On Dec 2, 2007 1:04 AM, Brian Orr [EMAIL PROTECTED] wrote: Hi All, I'm running into the following error when I try to run any of the matplotlib examples: $ python anim.py Traceback (most recent call last): File anim.py, line 19, in module import pylab as p File

Re: [Matplotlib-users] TypeError on CocoaAgg backend

2007-12-05 Thread Barry Wark
Chris, I appologize for cryptic language and quickly written emails leading you astray. I've included the diff of backend_cocoaagg.py (which has also been sent to the mpl devs) which seems to work for me. Barry backend_cocoaagg.py.diff Description: Binary data On Dec 3, 2007, at 8:00

Re: [Matplotlib-users] number rendering in GTKCairo

2007-12-05 Thread Michael Droettboom
It works for me on Linux with matplotlib 0.91.1, and Cairo 1.4.0. What version of matplotlib and Cairo are you using? It sounds like it may be pulling in the wrong fonts. Can you please send the contents of your matplotlibrc file, and also set verbose.level to debug-annoying and send the

[Matplotlib-users] filehandle leaks in matplotlib 0.91.1

2007-12-05 Thread Jörgen Stenarson
hi, I think the new 0.91.1 has some kind of file handle leak at least when using python 2.4, tkagg, and within ipython. Using process explorer to look at filehandles opened by python then I get about 25 new open handles to vera.ttf per %run of the following script. from pylab import *

Re: [Matplotlib-users] CocoaAgg backend status?

2007-12-05 Thread Stephen Uhlhorn
Thanks for the background Barry. I was asking because I have a bit of image processing/analysis code (numpy/mpl/pil) that I would like to build a GUI front-end for. As I am a recent convert to the osx world, I thought it would be very slick to be able to do this with the xcode/IB tools. Since

Re: [Matplotlib-users] eggs or pythonmac packages on OS X?

2007-12-05 Thread Charlie Moad
I primarily follow the dev list, but you've caught my eye. ;) So to be clear, you would just like me to install some other tcl/tk before I do the official matplotlib osx binaries. What package should I be installing and where should I get it from. As long as it still works with the bundled

Re: [Matplotlib-users] [OT] Confusion with mailing lists

2007-12-05 Thread Robert Dailey
I feel we're getting a tad bit off topic from my original inquiry. Does anyone have an answer for me? Thanks. On Dec 5, 2007 8:42 AM, massimo sandal [EMAIL PROTECTED] wrote: rex ha scritto: massimo sandal [EMAIL PROTECTED] [2007-12-04 09:18]: On a related note, I *hate* that hitting reply

[Matplotlib-users] matplotlib install

2007-12-05 Thread Jonathan King
i am having trouble installing matplotlib from source and thought i would post my issue here. i download matplotlib version 0.91.0 i am using a version of scientific linux, so i can't use rpm packages for some packages # uname -a Linux labcalx 2.6.23.8 #1 Fri Nov 23 10:54:41 EST 2007 i686 i686

Re: [Matplotlib-users] CocoaAgg backend status?

2007-12-05 Thread Fernando Perez
On Dec 5, 2007 11:55 AM, Barry Wark [EMAIL PROTECTED] wrote: Stephen, The CocoaAgg backend is not supported in IPython. Though we'd love to support it, were a few patches to land our way :) Cheers, f - SF.Net email is

Re: [Matplotlib-users] CocoaAgg backend status?

2007-12-05 Thread Barry Wark
Stephen, The CocoaAgg backend is not supported in IPython. You can use it in the non-interactive form (i.e. with a pylab.show() but you will have to close the window in order to return control to the IPython shell). It is possible to embed an MPL plot in a Cocoa application using the same

Re: [Matplotlib-users] CocoaAgg backend status?

2007-12-05 Thread Michael Droettboom
Barry Wark wrote: We (at my work) are just starting to think about writing a more direct Quartz backend for mpl. A native backend would let a matplotlib view participate in newer Cocoa technologies, such as resolution independence and CoreAnimation (it's possible with the current backend

Re: [Matplotlib-users] eggs or pythonmac packages on OS X?

2007-12-05 Thread Christopher Barker
Russell E Owen wrote: At 10:08 AM -0500 2007-12-05, Stephen Uhlhorn wrote: Just for my edification, why can't the egg version be linked against/include a different Tcl/Tk? If you mean why can't it be built that way in the first place, I don't know. The guy who builds it apparently doesn't

Re: [Matplotlib-users] filehandle leaks in matplotlib 0.91.1

2007-12-05 Thread Michael Droettboom
I'm on a Linux box (I'm assuming you're on Windows, since you mentioned Process Explorer), and I wasn't able to find any file handle leaks, as such, but I did see that font files were being opened many more times than they need to be. If you're able to run from Subversion, r4633 has a fix for

Re: [Matplotlib-users] number rendering in GTKCairo

2007-12-05 Thread Michael Droettboom
What's happening is that it isn't finding the Bakoma Computer Modern fonts. These have a non-standard encoding, so the '-' for instance, is actually under a different character code. So... we need to track down why it's looking in the wrong place. Can you send the output of: python Python

[Matplotlib-users] converting GMT color palettes to pylab colormaps

2007-12-05 Thread Michael Hearne
Does anyone here have any experience converting GMT color palettes into pylab colormaps? I took a stab at it, and the results are not really what I expected. GMT, for the unfamiliar, is a scientific plotting/mapping package that I'm doing my best to rid myself of. If you've never heard

Re: [Matplotlib-users] number rendering in GTKCairo

2007-12-05 Thread Brian Baughman
Hello, Below is the requested output which looks correct to me: [EMAIL PROTECTED]:~/dev/pyanalysis$ python Python 2.5.1 (r251:54863, Oct 5 2007, 13:36:32) [GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)] on linux2 Type help, copyright, credits or license for more information. import

[Matplotlib-users] rcparams problem with pylab

2007-12-05 Thread twentypoundtrout
Hi. I installed matplotlib and get the following when I import pylab: In [8]: import pylab --- ImportError Traceback (most recent call last) C:\Documents and Settings\luke\Desktop\ipython

[Matplotlib-users] number rendering in GTKCairo

2007-12-05 Thread Brian Baughman
Hello all, I am trying to get a setup where I can have an interactive environment and output to PDF files as needed. I currently have this setup working in OS X 10.5 without problems. However, I cannot get a similar setup working on linux. The best I have been able to do is by using

Re: [Matplotlib-users] eggs or pythonmac packages on OS X?

2007-12-05 Thread Charlie Moad
I feel a 0.91.2 in the next few weeks, and I'll be sure to do this and send you a test build. - Charlie On Dec 5, 2007 1:30 PM, Russell E Owen [EMAIL PROTECTED] wrote: At 10:03 AM -0800 2007-12-05, Christopher Barker wrote: Russell E Owen wrote: At 10:08 AM -0500 2007-12-05, Stephen Uhlhorn

Re: [Matplotlib-users] number rendering in GTKCairo

2007-12-05 Thread Brian Baughman
Hello, On the Mac I use TkAgg and can output PDF files no problem. The only reason I was using GTKCairo was to get the PDF output which was not working with GTKAgg. I just updated to the most recent SVN from the one I was using from earlier today and now I can save to PDF in GTKAgg

[Matplotlib-users] possible to expand the current Colorcycle?

2007-12-05 Thread Søren Nielsen
Hi, Is it possible to expand the colorcycle that matplotlib uses by default? in axes.py, class _process_plot_var_args, def _clear_color_cycle(self) It seems that self.colors are hardcoded to be self.colors = ['b','g','r','c','m','y','k'] ... is there a way to extend this? (Without changing the

Re: [Matplotlib-users] CocoaAgg backend status?

2007-12-05 Thread Fernando Perez
On Dec 5, 2007 8:37 AM, Stephen Uhlhorn [EMAIL PROTECTED] wrote: I was just wondering what the status of the CocoaAgg backend is since there is not much info available. Can it be used interactively w/ipython? I don't know for a fact, but the answer is probalby no. Each GUI backend requires

Re: [Matplotlib-users] [OT] Confusion with mailing lists

2007-12-05 Thread Steve Schmerler
rex wrote: massimo sandal [EMAIL PROTECTED] [2007-12-04 09:18]: On a related note, I *hate* that hitting reply uses the mail address of the parent poster, instead than that of the mailing list. The scipy and the gentoo mailing list (two other examples I know) behave more properly. Is

Re: [Matplotlib-users] How to show matplotlib.image ?

2007-12-05 Thread John Hunter
On Dec 1, 2007 7:47 PM, hjc520070 [EMAIL PROTECTED] wrote: The following run well . But I just want to make the image, with the x and y as axis and z as the image value ,show on the figure. In the pylab , we can just give a command imshow ,But here , I fail to do it , I have try ax.imshow()

[Matplotlib-users] ImportError: cannot import name rcParams

2007-12-05 Thread Brian Orr
Hi All, I'm running into the following error when I try to run any of the matplotlib examples: $ python anim.py Traceback (most recent call last): File anim.py, line 19, in module import pylab as p File C:\Python25\Lib\site-packages\pylab.py, line 1, in module from matplotlib.pylab

Re: [Matplotlib-users] TypeError on CocoaAgg backend

2007-12-05 Thread John Hunter
On Dec 5, 2007 12:36 PM, Barry Wark [EMAIL PROTECTED] wrote: Chris, I appologize for cryptic language and quickly written emails leading you astray. I've included the diff of backend_cocoaagg.py (which has also been sent to the mpl devs) which seems to work for me. I committed in r4571,

Re: [Matplotlib-users] number rendering in GTKCairo

2007-12-05 Thread Michael Droettboom
Sorry for the wild goose chase. Now that my memory has been jogged -- This is actually a known problem with the Cairo backend. Cairo only allows access to fonts installed in the normal OS-specific places (and /usr/lib/python2.5/site-packages/matplotlib/mpl-data/fonts/ttf is definitely not

Re: [Matplotlib-users] converting GMT color palettes to pylab colormaps

2007-12-05 Thread Jeff Whitaker
Michael Hearne wrote: Does anyone here have any experience converting GMT color palettes into pylab colormaps? I took a stab at it, and the results are not really what I expected. GMT, for the unfamiliar, is a scientific plotting/mapping package that I'm doing my best to rid myself of.

[Matplotlib-users] Error on importing basemap 0.9.8

2007-12-05 Thread Adam Mercer
Hi After updating to basemap-0.9.8 I'm getting the following error when trying to import the basemap module on Intel Mac OS X Leopard using Python-2.5.1 from MacPorts Python 2.5.1 (r251:54863, Nov 22 2007, 18:02:58) [GCC 4.0.1 (Apple Inc. build 5465)] on darwin Type help, copyright, credits or

Re: [Matplotlib-users] Error on importing basemap 0.9.8

2007-12-05 Thread John Hunter
On Dec 5, 2007 9:13 PM, Adam Mercer [EMAIL PROTECTED] wrote: ImportError: No module named pkg_resources Am I missing a required module? Looks like you need setuptools http://peak.telecommunity.com/DevCenter/EasyInstall#installing-easy-install

Re: [Matplotlib-users] Error on importing basemap 0.9.8

2007-12-05 Thread Adam Mercer
On Dec 5, 2007 10:30 PM, John Hunter [EMAIL PROTECTED] wrote: Looks like you need setuptools http://peak.telecommunity.com/DevCenter/EasyInstall#installing-easy-install Thanks John, installing setuptools did the trick. Cheers Adam

[Matplotlib-users] power law fitting of data

2007-12-05 Thread Ping Yeh
Hi, I have (x,y) data that I want to fit to the formula y = a * x^b to determine a and b. How can I do it? The current manual only lists linear fit and polynomial fit. Or, putting it in a more general setting, is there a module to do fitting to an arbitrary function? It would be something like

Re: [Matplotlib-users] power law fitting of data

2007-12-05 Thread Barry Wark
Ping, You should investigate scipy.optimize.lsqFit for using least squares to fit an arbitrary function and scipy.odr for regular or orthogonal least squares fitting. barry On Dec 5, 2007 9:45 PM, Ping Yeh [EMAIL PROTECTED] wrote: Hi, I have (x,y) data that I want to fit to the formula y =

Re: [Matplotlib-users] power law fitting of data

2007-12-05 Thread Matthieu Brucher
Hi, You could use another package, like openopt and the generic optimizers that give you what you want provided that you create at least the gradient of the function (I didn't create a class that can numerically derive a fit function). For instance