Re: [Matplotlib-users] plotting from within ipython, and then go on in the shell calculations

2009-10-14 Thread Ernest Adrogué
13/10/09 @ 14:35 (-1000), thus spake Eric Firing: > Ernest Adrogué wrote: > >14/10/09 @ 02:38 (+0200), thus spake qu...@gmx.at: > >>okay. don't shoot me > >> > >>you need to start ipython with: > >> > >> ipython -pylab > >> > > > >or alternatively, start ipython normally, import matplotlib.pyplot

Re: [Matplotlib-users] plotting from within ipython, and then go on in the shell calculations

2009-10-14 Thread Johann Rohwer
On Wednesday 14 October 2009, Ernest Adrogué wrote: > 13/10/09 @ 14:35 (-1000), thus spake Eric Firing: > > Ernest Adrogué wrote: > > No, you have to call ipython with a threading option: > >-gthread, -qthread, -q4thread, -wthread, -pylab > > Ah, I didn't know that. In my Debian machine, it

Re: [Matplotlib-users] Installing matplotlib on mac os 10.6 (Snow Leopard)?

2009-10-14 Thread Pierre de Buyl
Hello, First, make sure that you have installed the Apple Developer Tools, and the "BSD components" from the DVDs OS X. Then, please indicate your version of python, and of numpy, and give the installation log. Pierre Le 13 oct. 09 à 19:14, William Carithers a écrit : > I've not been able

Re: [Matplotlib-users] help with fill_between and a colorbar

2009-10-14 Thread John [H2O]
UPDATE: I've got something to work (see below). I would appreciate comments on whether it is 'pythonic' and the most efficient. Also, what would I have to do to have a more OO approach? I would prefer to not use 'pyplot' in general. #!/usr/bin/env python import matplotlib as mpl import numpy as

[Matplotlib-users] graphs in memory

2009-10-14 Thread bas pigmans
hi i am trying to use mathplot in a script that has to produce and store about 3000 graphs a time, the problem i have is that something inside mathplot keeps storing in the memory, (eigther the graph or the file to write to i guess...) so once it reached 1.5GB of ram it crashes i hope you can hel

[Matplotlib-users] Axes3D - Equal Aspect Ratio

2009-10-14 Thread Thomas Lecocq
Dear All, I'm playing around with mpl_toolkits.mplot3d to represent a 3D scatter, but I need the axis' aspect to be 'equal'. I tried to : ax = Axes3D(fig) ax.set_aspect('equal') but it doesn't change anything... Any tips ? Thanks a lot in advance, Thomas ** Thomas Leco

[Matplotlib-users] matplotlib setup is trying to build macosx extension on linux ?

2009-10-14 Thread David Cournapeau
Hi, I updated matplotlib to 0.99.1, and got a weird build failure: gcc: error trying to exec 'cc1obj': execvp: No such file or directory I realized that cc1obj stands for the objective C compiler, and that it is trying to build the macosx extension, but I am on Ubuntu with python 2.6, so it

Re: [Matplotlib-users] graphs in memory

2009-10-14 Thread John [H2O]
Bas, Send an example of how you're handling the plotting. I have had similar issues, but I've finally figured out how to work around it. Basically, look at the Object Oriented examples, rather than using pyplot. What I found to be most efficient was to reuse figures as much as possible, but del

Re: [Matplotlib-users] Axes3D - Equal Aspect Ratio

2009-10-14 Thread Tinne De Laet
Hi Thomas,. > I'm playing around with mpl_toolkits.mplot3d to represent a 3D scatter, but > I need the axis' aspect to be 'equal'. I tried to : > > ax = Axes3D(fig) > ax.set_aspect('equal') axis("scaled") worked for me. Tinne -

Re: [Matplotlib-users] matplotlib setup is trying to build macosx extension on linux ?

2009-10-14 Thread Jouni K . Seppänen
David Cournapeau writes: > This would always build the mac os x extension if > options['build_macosx'] is True, which is the case for me (it is set-up > in setup.cfg, which I did not touch). The setup.cfg file is included in the distribution by mistake. Just delete it before building. -- Joun

[Matplotlib-users] Problems with yticklabels in combination with the mpl toolkits

2009-10-14 Thread reyungoo
Hi everyone, I try to make a simple subplot with yticklabels on the left and right side. Everthing is allright, if I use the subplot command, but I need the Subplot command from the mpl toolkits in order to hide some axis. The code below doesn't work for me. Setting label2On=True or False has no

[Matplotlib-users] graphs in memory

2009-10-14 Thread bas pigmans
hi i am trying to use mathplot in a script that has to produce and store about 3000 graps a time, the problem i have is that something inside mathplot keeps stroring in the memmory, (eigther the graph or the file to write to i guess...) so once it reached 1.5GB of ram it crashes i hope you can he

[Matplotlib-users] graphs in memory

2009-10-14 Thread bas pigmans
hi i am trying to use mathplot in a script that has to produce and store about 3000 graps a time, the problem i have is that something inside mathplot keeps stroring in the memmory, (eigther the graph or the file to write to i guess...) so once it reached 1.5GB of ram it crashes i hope you can

Re: [Matplotlib-users] Re verse colormapping/LUT?

2009-10-14 Thread thkoe002
Ok, I'll answer my own question. I got the answer from http://groups.google.com/group/de.comp.lang.python/browse_thread/thread/5d9a315c3d3ac0f5 , already 2 months old, but I wasn't aware. Code snippet below. import Image from pylab import * #generate intensity map a=meshgrid(ara

Re: [Matplotlib-users] nonlinear axes for imshow

2009-10-14 Thread thkoe002
Hi JJ, thanks a lot for your help. I think that http://matplotlib.sourceforge.net/examples/axes_grid/demo_curvelinear_grid.html has everything I need, I'll try it out. The coordinates given by the mouse are off, but that seems to be the case even for the far more elaborate "custom scale/projectio

Re: [Matplotlib-users] graphs in memory

2009-10-14 Thread Ryan May
On Mon, Oct 12, 2009 at 8:09 AM, bas pigmans wrote: > hi > > i am trying to use mathplot in a script that has to produce and store about > 3000 graps a time, the problem i have is that something inside mathplot > keeps stroring in the memmory, (eigther the graph or the file to write to i > guess..

Re: [Matplotlib-users] Problems with yticklabels in combination with the mpl toolkits

2009-10-14 Thread Jae-Joon Lee
If what you want is just to hide some axis, I (as a developer of axes_grid toolkit) strongly recommend you to stick with the mainline matplotlib. You can easily do it with spines. http://matplotlib.sourceforge.net/examples/pylab_examples/spine_placement_demo.html axes_grid toolkit uses different

Re: [Matplotlib-users] plotting from within ipython, and then go on in the shell calculations

2009-10-14 Thread Uri Laserson
Whenever I use matplotlib, I will perform something like the following in an ipython shell (no special flags): import matplotlib.pyplot as plt fig = plt.figure() fig.show()# this will cause the window to pop up, and give me back a prompt for ipython fig.savefig(...)# if you want to s

[Matplotlib-users] variable line color in plots

2009-10-14 Thread Devin Silvia
Does anyone know if its possible to vary the line color according to some pre-defined array in a standard line plot (either linear or loglog)? As an example, I would like to color the line so that it indicates progression of time. -- View this message in context: http://www.nabble.com/variable-

Re: [Matplotlib-users] variable line color in plots

2009-10-14 Thread Chloe Lewis
I use a scatterplot with enough points to overlap into a line. Works best with alpha=0.5 or thereabouts; I generally overplot with a dashed B&W line to make the legend understandable. Probability that there is a more elegant way: high. &C On Oct 14, 2009, at 9:23 AM, Devin Silvia wrote: >

[Matplotlib-users] Using letters as markers for lines and scatter plots

2009-10-14 Thread Uri Laserson
It would be very useful to be able to use letters (or text in general) as markers in lines and scatter plots. To be clear, I mean something like this: plot(x,y,marker='G') would produce a bunch of letter Gs as the marker. Is this already possible? If not, what would be the easiest way to impleme

[Matplotlib-users] Log scale for horizontal bar chart (2 bugs)

2009-10-14 Thread Donovan Parks
Hello, I've encountered two bugs recently in matplotlib. I am hoping someone can tell me if these are known issues and if any workarounds have been proposed. The bug occurs for horizontal bar chart where the x-axis has a log scale: from pylab import * val = 3+10*rand(5) # the bar lengths pos

[Matplotlib-users] Bus error when importing from matplotlib

2009-10-14 Thread William Carithers
I was trying what I thought was a simple import from matplotlib, when I got a "Bus error" Here's the terminal ouptput. Python 2.6.1 (r261:67515, Jul 7 2009, 23:51:51) [GCC 4.2.1 (Apple Inc. build 5646)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> from matp

Re: [Matplotlib-users] Log scale for horizontal bar chart (2 bugs)

2009-10-14 Thread PHobson
> -Original Message- > From: Donovan Parks [mailto:donovan.pa...@gmail.com] > Sent: Wednesday, October 14, 2009 1:31 PM > To: matplotlib-users@lists.sourceforge.net > Subject: [Matplotlib-users] Log scale for horizontal bar chart (2 > bugs) > > Hello, > > I've encountered two bugs recentl

Re: [Matplotlib-users] Bus error when importing from matplotlib

2009-10-14 Thread William Carithers
Ok, after a little more digging I'm really confused. Libfreetype.6.dylib is actually an OS X alias to libfreetype.6.3.2.dylib. Not sure why the error report gave the path to the alias rather than the target file. Bill On 10/14/09 1:37 PM, "William Carithers" wrote: > I was trying what I though

Re: [Matplotlib-users] matplotlib setup is trying to build macosx extension on linux ?

2009-10-14 Thread David Cournapeau
Jouni K. Seppänen wrote: > David Cournapeau writes: > > > The setup.cfg file is included in the distribution by mistake. Just > delete it before building. > Ah, that would explain it, indeed. Thanks, David -- Com

Re: [Matplotlib-users] Little issue with blitting technique

2009-10-14 Thread Jae-Joon Lee
On Tue, Oct 13, 2009 at 1:02 PM, Laurent Dufrechou wrote: > Hello, > > I've tested so far with wx and QT4 backend. > The two are buggy. > Easy way to reproduce the bug (another way I mean) > > ax = p.subplot(212) > ax2 = p.subplot(211) > On mac with wxgtk, it works fine. Maybe this is an windows

Re: [Matplotlib-users] [Solved] Little issue with blitting technique

2009-10-14 Thread Jae-Joon Lee
On Tue, Oct 13, 2009 at 5:06 PM, Laurent Dufréchou wrote: > Hey, coparing on how GTK2 example is done I've seen a difference between the > two! > > In QT4Agg example and WX example the code use: > > canvas.copy_from_bbox(ax.bbox) > replacing all occurrence of ax.bbox with ax.get_figure().bbox sol

Re: [Matplotlib-users] Little issue with blitting technique

2009-10-14 Thread Jae-Joon Lee
On Tue, Oct 13, 2009 at 4:53 PM, Laurent Dufréchou wrote: > (still your gtk example is more beautiful but 10 times slower than other > examples, so is blitting really working in this case ?) What example do you mean? The performance will depend on complexity of the plot items that need to be dra