[Matplotlib-users] interactive python session with matplotlib

2009-09-24 Thread Andre Walker-Loud
Hi All, I have what I think is a basic question. I want to have an interactive python script/code which uses matplotlib. For example, the script first asks what data set to use, then when received, it does some analysis routines, and then makes some plots. To launch the plot, my I have

Re: [Matplotlib-users] interactive python session with matplotlib

2009-09-24 Thread Andre Walker-Loud
for input. Is this possible to do (in either Python or iPython)? Thanks, Andre On Sep 24, 2009, at 8:44 PM, Gökhan Sever wrote: On Thu, Sep 24, 2009 at 7:25 PM, Andre Walker-Loud > wrote: Hi All, I have what I think is a basic question. I want to have an interactive python scr

Re: [Matplotlib-users] interactive python session with matplotlib

2009-09-25 Thread Andre Walker-Loud
Hi Gökhan, Thanks. I will start playing around with iPython. Andre On Sep 25, 2009, at 1:22 AM, Gökhan Sever wrote: On Thu, Sep 24, 2009 at 10:47 PM, Andre Walker-Loud > wrote: IPython can remedy all your wonderings :) http://matplotlib.sourceforge.net/users/shell.html -- Gökhan

[Matplotlib-users] ipython -pylab

2010-03-09 Thread Andre Walker-Loud
Hi All, I am trying to understand exactly what the -pylab option does when I launch ipython -pylab - thought some folks here might know. For example, after executing ipython -pylab I can type either a = np.array([1.,10.]) OR b = array([1.,10.]) are these both numpy arrays? And clearly, t

Re: [Matplotlib-users] ipython -pylab

2010-03-09 Thread Andre Walker-Loud
> Also, how is scipy imported? Just "form scipy import *" or something > similar to numpy? > > I haven't been able to find this info online or in documents yet. > > > Thanks, > > Andre > > Hi, > > Look in IPython/Shell.py to see how pylab option is being evaluated. > And similarly in matplotlib/

[Matplotlib-users] figure save problem

2010-03-11 Thread Andre Walker-Loud
Hi All, I am having a problem saving figures produced with matplotlib. Right now, I am running a freshly built matplotlib-0.99.1.2 (unzipped, the directory reads 0.99.1.1?) built on python-2.6 numpy-1.3.0 scipy-0.7.1 ipython-0.10 All on an OSX 10.5 intel. When I try to save a figure, in the

Re: [Matplotlib-users] figure save problem

2010-03-12 Thread Andre Walker-Loud
; OS X 10.5.8 - intel > matplotlib 99.1.1 > python 2.6.1 > ipython 0.9.1 > numpy-1.3.0 > > --Jim > > > On Mar 11, 2010, at 1:31 PM, Andre Walker-Loud wrote: > >> Hi All, >> >> I am having a problem saving figures produced with matplotlib. Right >>

Re: [Matplotlib-users] Adding a plot within a plot

2010-03-15 Thread Andre Walker-Loud
Hi Nathan, It sounds like this example is what you want http://matplotlib.sourceforge.net/examples/pylab_examples/axes_demo.html Cheers, Andre On Mar 15, 2010, at 7:44 AM, Nathan Harmston wrote: > Hi everyone, > > I've been trying (with no luck) to add a plot inside a plot, like this > (ap

Re: [Matplotlib-users] Problem saving a plot in OSX

2010-03-22 Thread Andre Walker-Loud
Hi Vincent, I had this problem when I installed python from source code and did not use the --enable-framework flag at the ./configure stage (learned I should have it from some document - but can't remember if it was in matplotlib doc, on the internet, in a python doc etc). I then went ba

Re: [Matplotlib-users] Problem saving a plot in OSX

2010-03-22 Thread Andre Walker-Loud
nal etc, and so could still make new names for the files. Andre Vincent Davis 720-301-3003 vinc...@vincentdavis.net my blog | LinkedIn On Mon, Mar 22, 2010 at 9:37 PM, Andre Walker-Loud > wrote: Hi Vincent, I had this problem when I installed python from source

Re: [Matplotlib-users] setting scientific number notation on colorbar

2010-05-31 Thread Andre Walker-Loud
Hi Thanks for the answer, actually, I always use show and plot, I have no clue how to use the functions you suggested ... I'll look into it. Do you have an idea where I can find a description of the keyword "format" '%.3f' is nice, but still not scientific format... you can use '%.3e'

Re: [Matplotlib-users] setting scientific number notation on colorbar

2010-05-31 Thread Andre Walker-Loud
On May 31, 2010, at 8:56 PM, Oz Nahum wrote: hi andre, thanks for your reply, do you know where I can find more documentation about this ? Thanks, On Mon, May 31, 2010 at 5:55 PM, Andre Walker-Loud > wrote: Hi Thanks for the answer, actually, I always use show and plot, I have no clue

Re: [Matplotlib-users] Math fonts not working after upgrading to MPL 1.0

2010-09-08 Thread Andre Walker-Loud
It may not be an MPL issue, but rather Snow Leopard. I have a friend who had font troubles, but it was because Mac OSX 10.6 (Snow Leopard) changed the way fonts are handled. He had a file in his home directory (which he created on 10.5) which had some font specifications, which he had to alter/re

Re: [Matplotlib-users] Math fonts not working after upgrading to MPL 1.0

2010-09-10 Thread Andre' Walker-Loud
It may not be an MPL issue, but rather Snow Leopard. I have a friend who had font troubles, but it was because Mac OSX 10.6 (Snow Leopard) changed the way fonts are handled. He had a file in his home directory (which he created on 10.5) which had some font specifications, which he had to al

[Matplotlib-users] matplotlib figures missing text

2011-03-24 Thread Andre' Walker-Loud
Hi All, I am having two slight irritating issues making figures with matplotlib (and have not found a solution with Google) I am running the Enthought 6.2 distribution (python 2.6, matplotlib 0.99.3, ipython 0.10, ...) which is installed as a Framework on a Mac OSX 10.6 platform. I currentl

Re: [Matplotlib-users] matplotlib figures missing text

2011-03-24 Thread Andre' Walker-Loud
my /Library/Frameworks/Python.framework/Versions/6.2/lib/python2.6/site-packages/matplotlib/mpl-data/example/ folder. Do you mean ones I find on the web at the matplotlib site? Thanks, Andre On Mar 24, 2011, at 4:31 PM, Michael Droettboom wrote: > On 03/24/2011 09:35 AM, Andre' Wal

Re: [Matplotlib-users] Access to contents of bins of a matplotlib histogram

2011-03-25 Thread Andre' Walker-Loud
Hi Chris, I think I understand what you are asking. I think the key point is I have used "np.histogram" where you are using "np.hist" When I make my plots, I use np.hist, but then to access the data, I use np.histogram. Just to demonstrate, incase this is not what you want, I have found, if

Re: [Matplotlib-users] LaTeX matplotlib Bug?

2011-04-05 Thread Andre' Walker-Loud
Hi Sean, I just checked - the hyphenation you want does not work in LaTeX in math mode. Try removing the "$"-signs in your string command. Then the hyphenation should work. Andre On Apr 5, 2011, at 4:56 PM, Sean Lake wrote: > Hello all, > > I'm trying to specify a range of numbers in a

Re: [Matplotlib-users] LaTeX matplotlib Bug?

2011-04-05 Thread Andre' Walker-Loud
that also doesn't work. The following would work (this is a LaTeX thing - not matplotlib) r"80--120" r"$80\textrm{--}120$" andre On Apr 5, 2011, at 5:08 PM, gary ruben wrote: > Um, how about r"$80--120$" instead of r"$80--120" ? > > On Wed, Apr 6, 2011 at 9:56 AM, Sean Lake wrote: >> Hell

Re: [Matplotlib-users] LaTeX matplotlib Bug?

2011-04-05 Thread Andre' Walker-Loud
you appear to have another typo. > Gary Ruben found the actual bug: math mode doesn't support --. "Gary Ruben" --> "Andre Walker-Loud" :) On Apr 5, 2011, at 5:15 PM, Sean Lake wrote: > Ah, sorry about that. In the script I was using it had the closing $. I

Re: [Matplotlib-users] LaTeX matplotlib Bug?

2011-04-05 Thread Andre' Walker-Loud
On Apr 5, 2011, at 5:51 PM, Jae-Joon Lee wrote: > On Wed, Apr 6, 2011 at 9:15 AM, Sean Lake wrote: >> Gary Ruben found the actual bug: math mode doesn't support --. > > Just to clarify, in latex math mode, "$-$" is "-" (minus sign) and > "$--$" is "--". > And this is not a bug. > > -JJ Yes. T

[Matplotlib-users] tick sizes

2011-07-28 Thread Andre' Walker-Loud
Hi All, I am trying to modify tick sizes and labels. Reading documents and examples, I have found an easy way to modify the labels, > import matplotlib.pyplot as plt > > ax = plt.axes() > font_size = 24 > > plt.setp(ax.get_xticklabels(),fontsize=font_size) but I am struggling to find such a n

Re: [Matplotlib-users] tick sizes

2011-07-28 Thread Andre' Walker-Loud
erent valid values for the params dict, including > direction, width, and color. > > Ben > > On Thu, Jul 28, 2011 at 2:22 PM, Andre' Walker-Loud > wrote: > Hi All, > > I am trying to modify tick sizes and labels. Reading documents and examples, > I h

Re: [Matplotlib-users] tick sizes

2011-07-28 Thread Andre' Walker-Loud
xis.get_ticklines(minor=False), markersize=10) > > but I'm using matplotlib 1.0.1. I'm not sure if neither of those solutions > work. > > Ben > > On Thu, Jul 28, 2011 at 3:30 PM, Andre' Walker-Loud > wrote: > Hi Ben, > > Would you expect

[Matplotlib-users] errorbar plot with different markers

2011-08-16 Thread Andre' Walker-Loud
Hi All, A question for a possible new feature for Matplotlib. First, in case there is a way to do it currently: I often find myself plotting data with errorbars, and I would like to be able to modify the marker, or marker size of each individual point separately. A (seemingly to me) natural w

Re: [Matplotlib-users] Bug in scatter

2011-08-19 Thread Andre' Walker-Loud
> > I agree that this is a bug. (I suspect it is a malign side-effect of > some attempt to make bar plots work with a log scale, but I haven't > tracked it down.) What is less clear is the desired behavior. Raise an > exception? Silently delete the points that are invalid with a log scale? >

[Matplotlib-users] matplotlib 0.99.3 --> 1.0.1 plotting error

2011-09-26 Thread Andre' Walker-Loud
Hi All, I recently upgraded my python packages through Enthought. I have a mac osx 10.6.8 Previous versions: python 2.6, matplotlib 0.99.3 (Enthought 6.2) New versions: python 2.7, matplotlib 1.0.1 (Enthought 7.1) I am using the macosx backend. I have some functions I wrote which analyze data.

Re: [Matplotlib-users] matplotlib installation and ?'s

2012-02-20 Thread Andre' Walker-Loud
Hi William, There is a company, Enthought, which offers a free package installer, which comes with 6 "essential" python libraries, including matplotlib. http://www.enthought.com/products/epd_free.php If you have an "edu" email account (you are an academic, or do academic research at a gov lab,

[Matplotlib-users] where did my plots go?

2012-06-17 Thread Andre' Walker-Loud
Hi All, I have mac os x, 10.6.8, enthought distribution. I recently upgraded from the 6.2 to 7.3 EPD. Previously, I had a script which would manipulate some data, and as soon as the command plt.figure() was issued, the plot would show up. I could then continue along with the analysis (I wro

Re: [Matplotlib-users] where did my plots go?

2012-06-18 Thread Andre' Walker-Loud
> Most likely, there was a change to your matplotlibrc file. There is a > setting in there for "interactive" and by default, it is set to False. If > you uncomment it and set it to True, you should get back the behavior you > expected. You can also explicitly set the interactive mode to True

[Matplotlib-users] another mac os matplotlib question

2012-06-18 Thread Andre' Walker-Loud
Hi All, A few more issues have come up for me with matplotlib in an EPD upgrade. mac os X 10.6.8, EPD 7.3 (python 2.7, matplotlib 1.1.0) 1) After my code generates a plot (at the moment, not sure if it is a specific plot or all plots), it gives me a long list of the repeated error Python[1044

Re: [Matplotlib-users] where did my plots go?

2012-06-19 Thread Andre' Walker-Loud
Hi All, Sort of hijacking my own thread here. I posted another issue yesterday or the day before, and this has caused me to find some bigger problems... > Most likely, there was a change to your matplotlibrc file. There is a > setting in there for "interactive" and by default, it is set to F

Re: [Matplotlib-users] where did my plots go?

2012-06-19 Thread Andre' Walker-Loud
Hi Goyo, > 2012/6/19 Andre' Walker-Loud : >> But my plots still vanish as soon as the script is done : > > That's to be expected. You can make the script not to end until the > user ask for it explicitly: > > raw_input('Press when you are done') If

Re: [Matplotlib-users] where did my plots go?

2012-06-19 Thread Andre' Walker-Loud
Hi Ben, > On Jun 19, 2012, at 12:15 PM, Benjamin Root wrote: > On Tue, Jun 19, 2012 at 2:40 PM, Andre' Walker-Loud > wrote: > Hi Goyo, > > > 2012/6/19 Andre' Walker-Loud : > >> But my plots still vanish as soon as the script is done : > > > >

Re: [Matplotlib-users] where did my plots go?

2012-06-19 Thread Andre' Walker-Loud
>> If this is expected - it is a new feature. >> >> My understanding was that changing >> >> interactive : True >> >> in the matplotlibrc file, then the plots would not vanish until explicitly >> closed by the user. >> >> Is my understanding incorrect? >> >> >> Thanks, >> >> Andre >> >> T

Re: [Matplotlib-users] where did my plots go?

2012-06-19 Thread Andre' Walker-Loud
Hi Goyo, >> That is correct. If you have a call to show(), then the script should not >> finish on their own until the windows are closed -- regardless of whether or >> not "interactive" is True or False. The "interactive" setting should only >> dictate whether or not the script execution pauses

[Matplotlib-users] legend label for fill_between (or similar)

2012-06-21 Thread Andre' Walker-Loud
Hi All, Sometimes, instead of using data points with error bars, I instead use fill_between to create a little bar, with a band which I use alpha=.3 or so. I have tried unsuccessfully to find an easy way to create a legend label for this band - I am trying to have a similar band appear in my le

Re: [Matplotlib-users] legend label for fill_between (or similar)

2012-06-21 Thread Andre' Walker-Loud
Hi Tony, > Unfortunately, I think the preferred method is to create a proxy artist: > > http://matplotlib.sourceforge.net/users/legend_guide.html#using-proxy-artist > > Basically, you draw a fake patch with the same parameters as your fill (see > example below). > > Hope that helps, Yes, that

[Matplotlib-users] matplotlit.pyplot.xtick lablel alignment with subscripts

2012-06-21 Thread Andre' Walker-Loud
Hi All, Trying to tune alignment of xtick labels. I have the following for my lables === import matlplotlib.pyplot as plt x_dat = [1,2,3,4] x_label = ['$\mathrm{nn}$' , '${}^2\mathrm{H}$', '${}^4\mathrm{He}$', '${}^4_{\Lambda\Lambda}\mathrm{He}$'] plt.xticks(x_dat,x_label) === you can see I

Re: [Matplotlib-users] Combining 4 plots into one figure

2012-07-19 Thread Andre' Walker-Loud
Hi Brad, Have you have tried using the tabular environment? I haven't tried using \vspace inside the figure, but I suspect that would also let you squeeze the figures closer together. \begin{figure} \begin{tabular}{cc} %for a two columns of figures \includegraphics[width=0.48\textwidth]{figure_a

Re: [Matplotlib-users] Options for speeding up matplotlib, spectrogram with log scale axis, etc.

2012-10-08 Thread Andre' Walker-Loud
Hi Jianbao, One option for getting Chaco is to install the Enthought python disctribution http://www.enthought.com/ you can see from their package index, they install Chaco (and all needed libraries to make it work) http://www.enthought.com/products/epdlibraries.php If you have an email endin

Re: [Matplotlib-users] Options for speeding up matplotlib, spectrogram with log scale axis, etc.

2012-10-08 Thread Andre' Walker-Loud
imple as possible. But it seems that I am probably better > off to install EPD as a whole. > > Cheers, > Jianbao > > On Mon, Oct 8, 2012 at 11:17 AM, Andre' Walker-Loud > wrote: > Hi Jianbao, > > One option for getting Chaco is to install the Enthought pyt

Re: [Matplotlib-users] Novice question: Am I using pyplot.rgrids correctly?

2012-12-17 Thread Andre' Walker-Loud
Hi Bob, > I am a matplotlib.pyplot novice, but I have looked through various FAQs to no > avail. > > I am plotting a polar graph with some negative values of r. Everything goes > well until I try to use rgrids(). Am I doing something wrong? > > I attach some demo scripts and their outputs. >

Re: [Matplotlib-users] Novice question: Am I using pyplot.rgrids correctly?

2012-12-17 Thread Andre' Walker-Loud
> I am a matplotlib.pyplot novice, but I have looked through various FAQs to no > avail. > > I am plotting a polar graph with some negative values of r. Everything goes > well until I try to use rgrids(). Am I doing something wrong? > > I attach some demo scripts and their outputs. > > versi

Re: [Matplotlib-users] Novice question: Am I using pyplot.rgrids correctly?

2012-12-17 Thread Andre' Walker-Loud
On Dec 17, 2012, at 1:12 PM, Pierre Haessig wrote: > Le 17/12/2012 21:59, Pierre Haessig a écrit : >> Maybe this the code behind the masking of half your curve, but I don't >> know more. > Looking closer at the plot, the curve is actually not masked ! > > Actually the "rmin functionality' is acti

Re: [Matplotlib-users] Novice question: Am I using pyplot.rgrids correctly?

2012-12-17 Thread Andre' Walker-Loud
>> I reiterate that in polar coordinates, a negative value of "r" does not make >> sense. It is confusing at best. > > This isn't really true. Many standard introductions to polar > coordinates consider negative r as valid. It's simply treated as a > radius in the opposite direction I

Re: [Matplotlib-users] Novice question: Am I using pyplot.rgrids correctly?

2012-12-17 Thread Andre' Walker-Loud
Hi Brendan, I reiterate that in polar coordinates, a negative value of "r" does not make sense. It is confusing at best. >>> >>> This isn't really true. Many standard introductions to polar >>> coordinates consider negative r as valid. It's simply treated as >>> a radius in the oppos

Re: [Matplotlib-users] uniqueness of polar coordinates (meaningfulness of r<0)

2012-12-18 Thread Andre&#x27; Walker-Loud
>> Is this in reference to issue #1603? Are you advocating changing the >> solution? > > > > My only point was that the ongoing conversation should > not accept uncritically the assertion that r<0 is senseless. and I finally appreciate that criticism. >From my perspective, I was happy to learn

Re: [Matplotlib-users] Novice question: Am I using pyplot.rgrids correctly?

2012-12-18 Thread Andre&#x27; Walker-Loud
Hi Pierre, >> There is no mention in the docs about the treatment of negative "r". The >> treatment is contrary to my expectations, and I would wager contrary to many >> peoples expectations. So at a new minimum, at the very least, the docs >> should make clear what is happening. >> >> I wou