Re: [Matplotlib-users] uniqueness of polar coordinates (meaningfulness of r0)

2012-12-18 Thread Andre' 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 r0 is senseless.

and I finally appreciate that criticism.

From my perspective, I was happy to learn something new.
I think it is clear to all on the list, that at first, this notion railed 
against my senses.


Cheers,

Andre
--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


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

2012-12-18 Thread Andre' 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 would further suggest that there are options specified by kwargs what the 
 behavior is.  The default could be the current behavior, which sounds like 
 it is standard to some, and another option would be to complain if r  0, as 
 I think many others would expect.
 I fully agree with the idea of enabling users to specify the behavior
 they want. I'm not sure about raising an error, but it's true that it
 can be pretty helpful to detect computational mistakes.

This (above) sums up why I would like to have the option of matplotlib error 
raising for negative values of r.
Just to set the scene, I come from a physics background.  So for me, and any 
application I would have, r is interpreted as a radius bounded from [0,inf].  
Otherwise, keeping track, for example, of the motion of an object in polar 
coordinates would be more difficult.
Constructing polar coordinates is not always obvious, and one can make a 
mistake.  Especially with something like matplotlib, where it is easy to 
experiment, sometimes one just throws the parameterization at the computer and 
sees what comes out.

From this perspective, it would be nice if I were to get a warning or error 
message.
I am perfectly happy to have the default behavior remain what it is.

I wish I were in a position to actually contribute to adding this new option.  
At the moment, I am in the midst of job hunting season, and would not be able 
to attempt it for a few months.  If no one has taken up the task by then, and a 
developer were willing to look over my shoulder now and then, I would be 
interested in trying to add such an option.  I have not yet contributed in such 
a way.

Regards,

Andre




--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


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.
 
 version1.py uses rgrid() but only has positive values of r.  Everything works 
 the way I expect it to (see version1.png).
 
 version2.py has negative values of r and the same call to rgrid() and 
 misbehaves (see version2.png).
 
 version3.py is the same as version2.py, but without the call to rgrids() (but 
 with negative values of r).  Again everything is as expected.
 
 What am I doing wrong in version2.py?

I am not sure why things work in version 3 and do not work in version 2.  A 
guess would be how matplotlib is covering up illegal values of your r 
coordinate.  Here I am only speaking from the math point of view, and not what 
is actually happening in matplotlib.  I tired finding info in the docs, but did 
not succeed in getting 

The coordinates t and r are angle and radius.  In polar coordinates, 
negative values of the radial coordinate r are not well defined, since in 
this coordinate system, you can not have negative values of a radius.

So my **guess** is that your problems are related to this ill definition of the 
radial coordinate.  And that sometimes matplotlib can cover it up for you, and 
other times it complains more loudly.


Regards,

Andre



--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


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.
 
 version1.py uses rgrid() but only has positive values of r.  Everything works 
 the way I expect it to (see version1.png).
 
 version2.py has negative values of r and the same call to rgrid() and 
 misbehaves (see version2.png).
 
 version3.py is the same as version2.py, but without the call to rgrids() (but 
 with negative values of r).  Again everything is as expected.
 
 What am I doing wrong in version2.py?

and only because it (sadly) took me a few minutes to figure out (even though it 
seemed so obvious), to create the plot of your version 3, with only positively 
defined values for r, you can do 

t = numpy.linspace(0,2*numpy.pi,61)
r = t
t2 = numpy.linspace(-numpy.pi,numpy.pi,61)
r2 = numpy.pi - t2

plt.polar(t,r)
plt.polar(t2,r2)



andre







--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


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 activated with rmin=-2*pi so that
 the whole r-axis is offset by +2pi. The plot is therefore pretty
 consistent only it is not what you want, I guess.
 I don't know how to disable this radius offset functionality.

Hi Pierre, Bob and all,

I reiterate that in polar coordinates, a negative value of r does not make 
sense.  It is confusing at best.

At the very least, I think matplotlib should raise a NOISY warning.  (I just 
checked that it does not).

I would advocate for a change however.  I suggest that given negative values of 
r, pyplot.polar raises an error and exits.  One could add a kwarg that allows 
you to override this default behavior, neg_r=False unless the user specifies 
otherwise.

In general, when I code things that don't make sense mathematically, I like it 
when the code tells me I made a dumb mistake.  If the code is defaulting to 
fixing the dumb mistake for me without any explicit warnings, that is more 
likely to raise a more serious error in my code, and a much harder bug to track 
down.


My two cents (well, it looks like a bit more than two).

Regards,

Andre
--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


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

In Euclidean space, can you have a negative distance?  Would you ever describe 
a circle as having negative radius (in Euclidean space)?  If you take r to be 
the radius, then I suggest you confuse a precise definition of radius with 
allowing a useful, non-unique interpretation of negative values of r.

 (i.e., the point is reflected about 
 the origin).  A few examples found by googling: 
 http://tutorial.math.lamar.edu/Classes/CalcII/PolarCoordinates.aspx 
 and 
 http://sites.csn.edu/istewart/mathweb/math127/intro_polar/intro_polar.htm 
 and an MIT Opencourseware document at 
 http://ocw.mit.edu/resources/res-18-001-calculus-online-textbook-spring-2005/study-guide/MITRES_18_001_guide9.pdf.
  

The nice MIT notes you linked to state (sec. 9.2, (page 355) listed as 132 on 
the bottom of page)

The polar equation r = F(theta) is like y = f(x).  For each angle theta the 
equation tells us the distance r (which is not allowed to be negative).

   Matplotlib shouldn't raise an error on negative r, it should just 
 interpret negative r values correctly.

You assume all people have chosen the same definition of how to interpret 
negative values of r.  I grant you that it may be useful in some contexts to 
define what it means to have negative values of r.  But this definition is 
NOT UNIQUE.  However, if you take r as a radius, and hence a positive 
definite quantity, as you would expect in Euclidean geometry for a distance, 
and you allow

r: [0,inf]
theta: [0,2pi)

then there is a unique and unambiguous representation of the coordinates.

I am not arguing that one can not take a definition of negative r, only that 
different users will expect different things, and what matplotlib choses to do 
is not readily accessible in the documents as far as I can see.  I also argue 
that many users, coming from the scientific background, will naturally 
interpret r as the radius (as I do) and hence expect r to be positive 
definite.  And lastly, I argue, that since the definition is not unique, and 
people have different expectations, at the very least, matplotlib should warn 
you how it is interpreting negative r.


Regards,

Andre



--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


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 opposite direction
 
 In Euclidean space, can you have a negative distance?  Would you
 ever describe a circle as having negative radius (in Euclidean
 space)?  If you take r to be the radius, then I suggest you
 confuse a precise definition of radius with allowing a useful,
 non-unique interpretation of negative values of r.
 
   I don't take r to be the radius, I take it to be a number in an 
 ordered pair with a particular mapping into R^2.  It is an extension of the 
 notion of radius, but there's no reason it has to conform with the 
 restrictions on geometrically possible radii.

This was clear from your previous comment - but this is precisely my point.  In 
your original message, you used the word radius.  My point is that 
mathematics, and computing, are precise languages with hopefully unambiguous 
definitions.  You used the word radius, but had in mind a less rigorous 
definition, because you were thinking of r as just one component of a 
two-coordinate description of 2D Euclidean space, with a specific definition of 
how to interpret negative r.  It is the standard you are used to and so not 
surprising to you.  My point is that this expectation is not unique, and in my 
field, not common, and so not expected by me.  Further, looking at the 
matplotlib doc, there is no indication what is happening - from 

http://matplotlib.org/api/pyplot_api.html

matplotlib.pyplot.polar(*args, **kwargs)
Make a polar plot.
call signature:
polar(theta, r, **kwargs)
Multiple theta, r arguments are supported, with format strings, as in plot().


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 would further suggest that there are options specified by kwargs what the 
behavior is.  The default could be the current behavior, which sounds like it 
is standard to some, and another option would be to complain if r  0, as I 
think many others would expect.

Maybe I am totally off.  Maybe I am the only one who does not expect r to go 
negative.  But at least the behavior should be clear without having to dig into 
the code.

   However, those issues are beside the point.  The point is that, 
 regardless of what a radius is, in the context of polar coordinates, a 
 negative *r-coordinate* is a perfectly mathematically respectable notion with 
 a standard interpretation.  Moreover, it is actually useful when you want to 
 graph some things, and is supported by other plotting software (see, e.g., 
 http://www.wolframalpha.com/input/?i=polar+plot+r%3Dtheta%2C-pi%3Cr%3C0).  
 Matplotlib should plot r-coordinates according to this standard 
 interpretation,

Again, I would just argue the standard behavior should be clearly stated in the 
docs.


Regards,

Andre




--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


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 ending in .edu you can automatically get their academic 
version (fully functioning version - you just have to verify you are doing 
academic research).  Since you mentioned you were at UC Berkeley, I assume you 
have .edu.
Their python installation works nicely, and installs itself in 
/Library/Frameworks/Python.framework/ so it plays nicely with the Mac GUI 
environment.  Also, it will not overwrite any other installation you have - it 
makes its own install dir.

UNFORTUNATELY - at the moment, it appears they are writing their new academic 
software licenses, so you can not download it right now.  But there message 
promises it will soon be available again.

I have found the Enthought installation to be MUCH more reliable than FINK or 
MacPorts  (Enthought is also a private company - hence the quality installers 
etc, and they like to support academic work).


Cheers,

Andre






On Oct 8, 2012, at 10:55 AM, Jianbao Tao wrote:

 Hi all,
 
 A little background: I am from the space physics field where a lot of people 
 watch/analyze satellite data for a living. This is a field currently 
 dominated by IDL in terms of visualization/analysis software. I was a happy 
 IDL user until I saw those very, very, I mean, seriously, very, very pretty 
 matplotlib plots a couple of weeks ago. Although I was happy with IDL most of 
 the time, I always hated the feel of IDL plots on screen.
 
 So, I decided to make my move from IDL to python + numpy + scipy + 
 matplotlib. However, this is not a trivial move. One major thing that makes 
 me stick to IDL in the first place is the Tplot package (bundled into THEMIS 
 Data Analysis Software, a.k.a., TDAS) developed at my own lab, the Space 
 Sciences Lab at UC Berkeley. I must have something equivalent to Tplot to 
 work efficiently on the python platform. In order to do that, there are two 
 problems to solve. First, a utility module is required to load data that are 
 in NASA CDF format. Second, a 2D plotting application is required with the 
 following features: 1) Able to handle large amount vector data, 2) able to 
 display spectrogram with log scale axis quickly, and 3) convenient toolbar to 
 navigate the data. 
 
 I have written a module that can quickly load data in CDF files in cython, 
 with help from the cython and the numpy communities. I have also gotten the 
 third plotting feature working with a customized navigation toolbar, thanks 
 to the help I received in this mailing list. However, I haven't figured out 
 how to get the first two plotting features. Matplotlib is known for its slow 
 speed when it comes to large data sets. However, it seems some other packages 
 can plot large data sets very fast, although not as pretty as matplotlib. So, 
 I am wondering what makes matplotlib so slow. Is it because the anti-aliasing 
 engine? If so, is it possible to turn it on or off flexibly to compromise 
 between performance and quality? Also, is it possible to convert the 
 bottle-neck bit of the code into cython to speed up matplotlib? As for 
 spectrograms with log scale axis, I found a working solution from Stack 
 Overflow, but it is simply too slow. So, again, why is it so slow?
 
 So, for my purposes, my real problem now is the slow speed of matplotlib. I 
 tried other packages, such as pyqtgraph, pyqwt, and Chaco/Traits. They seem 
 to be faster, but they have serious problems too. Pyqtgraph seems very 
 promising, but it seems to be in an infant stage for now with serious bugs. 
 For example, I can't get it working together with matplotlib. PyQwt/guiqwt is 
 reasonably robust, but it has too many dependencies in my opinion, and 
 doesn't seem to have a wide user base. Chaco/Traits seems another viable 
 possibility, especially considering the fact that it is actually supported by 
 a company, but I didn't get a chance to see their performance and quality 
 because I can't install Enable, a necessary bit for Chaco, on my mac. (But 
 the fact that Chaco/Traits is supported by a real company is a real plus to 
 me. If I can't eventually speed up matplotlib, I will probably give it 
 another shot.)
 
 I have one idea to speed up line plots in matplotlib on screen, which is 
 basically down-sampling the data before plotting. Basically, my idea is to 
 down-sample the data into a level that one pixel only corresponds to one data 
 point. Apparently, one must have enough information to determine the mapping 
 between the data and the pixels on screen. However, such an overhead is just 
 to maintain some house-keeping information, which I suppose is minimal. 
 
 I have no idea how to speed up the log-scale spectrogram plot at the moment. 
 :-(
 
 So, the bottom line: What 

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

2012-10-08 Thread Andre' Walker-Loud
Hi Jianbao,

I used to try and install my python suite from src code on my own.
Somewhere between the Mac OS 10.5, 10.6, migrating accounts, my python 
installation broke, and I never could get it all working again.  Something 
related to 10.6 didn't have full backwards compatibility because of the switch 
to 64 bit architecture, so my binaries stopped working... many long frustrating 
days trying to figure it out.  I eventually went to a friend of mine who does 
computing support for an astrophysics group, to get help solving my 
installation problems.  He said, Do you know about the Enthought python 
distribution?

So that changed my philosophy.  If my computer-wiz-friend uses Enthought, I 
have no excuse not to.
I have been happier ever since :)


Also - I have recently come to love HDF5 (Hierarchical Data Format (Version) 
5), which is a smart binary database with smart metadata mapping (maybe good 
for your research).  Eg. on the big machines at NERSC, Livermore, Argonne, etc 
(meaning next generation super computers) HDF5 is one of the pieces of software 
they use to benchmark the performance of their file systems, and make sure this 
code scales to work with these new architectures.  HDF5 is also professionally 
maintained.  And the Enthought distribution comes with HDF5 and two python 
interfaces to it.  From your description, I thought maybe you guys already use 
this.  And if not, maybe it is worth looking into.


Cheers,

Andre



On Oct 8, 2012, at 11:32 AM, Jianbao Tao wrote:

 Hi Andre,
 
 Thanks for your message. I like it. :-)
 
 I do have a .edu email. I didn't try to install Chaco with EPD because I tend 
 to be skeptical when it comes to a bundled package with a lot of stuff. I 
 like it to be as simple 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 walksl...@gmail.com 
 wrote:
 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 ending in .edu you can automatically get their 
 academic version (fully functioning version - you just have to verify you are 
 doing academic research).  Since you mentioned you were at UC Berkeley, I 
 assume you have .edu.
 Their python installation works nicely, and installs itself in 
 /Library/Frameworks/Python.framework/ so it plays nicely with the Mac GUI 
 environment.  Also, it will not overwrite any other installation you have - 
 it makes its own install dir.
 
 UNFORTUNATELY - at the moment, it appears they are writing their new academic 
 software licenses, so you can not download it right now.  But there message 
 promises it will soon be available again.
 
 I have found the Enthought installation to be MUCH more reliable than FINK or 
 MacPorts  (Enthought is also a private company - hence the quality installers 
 etc, and they like to support academic work).
 
 
 Cheers,
 
 Andre
 
 
 
 
 
 
 On Oct 8, 2012, at 10:55 AM, Jianbao Tao wrote:
 
  Hi all,
 
  A little background: I am from the space physics field where a lot of 
  people watch/analyze satellite data for a living. This is a field currently 
  dominated by IDL in terms of visualization/analysis software. I was a happy 
  IDL user until I saw those very, very, I mean, seriously, very, very pretty 
  matplotlib plots a couple of weeks ago. Although I was happy with IDL most 
  of the time, I always hated the feel of IDL plots on screen.
 
  So, I decided to make my move from IDL to python + numpy + scipy + 
  matplotlib. However, this is not a trivial move. One major thing that makes 
  me stick to IDL in the first place is the Tplot package (bundled into 
  THEMIS Data Analysis Software, a.k.a., TDAS) developed at my own lab, the 
  Space Sciences Lab at UC Berkeley. I must have something equivalent to 
  Tplot to work efficiently on the python platform. In order to do that, 
  there are two problems to solve. First, a utility module is required to 
  load data that are in NASA CDF format. Second, a 2D plotting application is 
  required with the following features: 1) Able to handle large amount vector 
  data, 2) able to display spectrogram with log scale axis quickly, and 3) 
  convenient toolbar to navigate the data.
 
  I have written a module that can quickly load data in CDF files in cython, 
  with help from the cython and the numpy communities. I have also gotten the 
  third plotting feature working with a customized navigation toolbar, thanks 
  to the help I received in this mailing list. However, I haven't figured out 
  how to get the first two plotting features. Matplotlib is known for its 
  slow speed when it comes to large data sets. However, it seems some other 
  packages can plot large data sets very

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}

\includegraphics[width=0.48\textwidth]{figure_b}
\\
$(a)$  $(b)$
\\
\includegraphics[width=0.48\textwidth]{figure_c}

\includegraphics[width=0.48\textwidth]{figure_d}
\\
$(c)$  $(d)$
\end{tabular}
\caption{\label{fig:your_label} your caption}
\end{figure}

Andre


On Jul 19, 2012, at 9:34 AM, Damon McDougall wrote:

 On Thu, Jul 19, 2012 at 07:56:29AM -0700, Brad Malone wrote:
 
 
 
 Personally, I use the subfigure package and it works really well. Also,
 +1 for reusable figures. The downside of the subfigure package is your
 latex code looks that much worse, but if the journal doesn't mind you
 using the subfigure package, then I recommend it.
 
 
 Thanks for the comments everyone. I am giving subfigure a try now, and it
 seems relatively promising. The only problem is that apparently the
 \caption package intereferes with RevTeX. This causes me to have to use
 \usepackage[caption=false]{subcaption} which then apparently doesn't allow
 me to label the individual plots (a), (b), (c), and (d). Instead,
 attempting to do this creates new FIG labels at these locations (using
 \caption* doesn't fix this either). But maybe I can figure a workaround to
 this, and besides, this is a LaTeX question at this point anyway.
 
 
 I know this is getting off topic, but is the journal you're submitting
 to insisting on the RevTex style file? Most of them have their own
 custom style. If so, I recommend using that over RevTex. That would
 potentially solve your package conflict.
 
 
 If this doesn't work I suppose there is always just manually creating a new
 file with Inkscape and adding the a), b), c), and d) labels manually in
 there.
 
 Thanks for all the suggestions.
 
 
 -- 
 Damon McDougall
 http://damon-is-a-geek.com
 B2.39
 Mathematics Institute
 University of Warwick
 Coventry
 West Midlands
 CV4 7AL
 United Kingdom
 
 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and 
 threat landscape has changed and how IT managers can respond. Discussions 
 will include endpoint security, mobile security and the latest in malware 
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[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 legend.

I am not attached to fill_between if there is a similar way to create such a 
little bar to represent my data point.


Thanks,

Andre
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


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 helps.  I also found another simple way using matplotlib.pyplot.bar()

===
import numpy as np
import matplotlib.pyplot as plt

x = np.array([1,2])
data = np.array([10,8])
err = np.array([2,1])

b1 = plt.bar(x-.2,2*err,0.4,color='b',bottom=data - err,alpha=0.3)
plt.legend([b1[0]], ['nice legend 
graphic'],shadow=True,fancybox=True,numpoints=1)
plt.axis([0,3,0,15])

plt.show()
===


Thanks,

Andre
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[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 have both superscripts and subscripts (and sometimes none) on 
these labels.
Try as I might, I can not figure out how to get these to align how I want (I 
have tried all the options from verticalalignment=option in the plt.xticks() 
command.

If LaTeX were rendering such fonts (in a TeX document), it would align the 
bottom of the characters, and then place the super and sub scripts accordingly.

It seems that matplotlib is creating a bounding box around each label, and then 
aligning according to the top, bottom or center of the corresponding bounding 
boxes.

Is there a way to get the alignment to work according to my above description 
(the LaTeX way)?
If it involves fine tuning the position of each label - could someone 
demonstrate a simple example of how to set the positions individually?


I am using the mathtext (there are issues I have had trying to get latex to 
work with my current set up, which I am still working on, but aren't sorted out 
yet).


Thanks,

Andre
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


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 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 from your 
 scripts with a plt.ion() call before loading your other modules.

I was having such problems with my setup (mac os 10.6.8, EPD 7.3[ python2.7 
matplotlib 1.1.0]), I decided to completely wipe all my python installations in 

/Library/Frameworks/Python.framework/Versions/

I then re-installed EPD 7.3
I modified my matplotlibrc to 
backend  : TkAgg
interactive  : True

I have run with --verbose-helpful to verify that these options are used (at 
least at startup).
But my plots still vanish as soon as the script is done :`(  [that is me, a 
grown man, crying]

I see I can use matplotlib.pyplot.isinteractive() to see that interactive is 
true.
How can I print the rc param to check the backend?  I haven't found this on 
google or in the matplotlib userguide yet.


Also, any ideas?  I am pulling hair out since of course I am supposed to be 
doing analysis for a talk next monday.


Thanks,

Andre
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


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

2012-06-19 Thread Andre' Walker-Loud
Hi Goyo,

 2012/6/19 Andre' Walker-Loud walksl...@gmail.com:
 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 Enter when you are done')

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
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


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 walksl...@gmail.com 
 wrote:
 Hi Goyo,
 
  2012/6/19 Andre' Walker-Loud walksl...@gmail.com:
  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 Enter when you are done')
 
 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
 
 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 or not at the call to 
 show().  Have you tried a different backend as a temporary work-around such 
 as QTAgg, QT4Agg, GTKAgg, TkAgg?

This behavior is observed with both TkAgg and MacOSX.
I don't have pygtk or pyqt installed, so couldn't test the others.


Andre

















--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


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
 
 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 or not at the call to 
 show().  Have you tried a different backend as a temporary work-around such 
 as QTAgg, QT4Agg, GTKAgg, TkAgg?
 
 This behavior is observed with both TkAgg and MacOSX.
 I don't have pygtk or pyqt installed, so couldn't test the others.

In case it matters, I am using the i386 installation and not the x86_64.


I have more info - which may be helpful.

Inspired by a related thread - which Goyo just answered, I tried the following

 import matplotlib.pyplot as plt
 plt.plot([1.6, 2.7])


In an interactive python session (also in ipython), this produced the plot, and 
it stayed up until I closed it.

I converted it to a little script

===
#!/Library/Frameworks/Python.framework/Versions/Current/bin/python  


import matplotlib.pyplot as plt
plt.plot([1.6, 2.7])
print plt.get_backend()

plt.show()
===

this prints to screen TkAgg, but the plot disappears as soon as the script 
finishes.


Thanks,
Andre



--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


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 or not at the call to
 show().
 
 Then the script is supposed to keep itself alive, after executing the
 last statment, until the plot windows are closed? Does not work that
 way for me (tkagg, qt4agg and gtk*) and I wouldn't expect that.

Yes, this is how things used to work on my mac (1 week ago).  After upgrade, no 
longer works this way.  Reverting to old compilation - still no longer works.

 BTW this may be better than using raw_input:
 
 import matplotlib.pyplot as plt
 plt.ion()
 plt.plot([1.6, 2.7])  # The plot windows shows up.
 # Do stuff, even user interaction, more plots, etc.
 # ...
 # Wait until all plot windows are closed.
 plt.ioff()
 plt.show()

This reproduces (as far as I can tell) the exact behavior I used to have.


Interesting to note.  If I have interactive : True in my matplotlibrc file, 
and then 

import matplotlib.pyplot as plt
# do everything I used to do
# including call functions that do other plots etc.

plt.ioff()
plt.show()

this also produces the above behavior (what used to work).


So, if I am in interactive mode, then matplotlibrc opens and closes the figures 
for me.  However, if after making all my plots, just before calling plt.show(), 
I turn off interactive mode, then the plots stay open.

This does not follow the logic I would expect - ie interactive means I would 
have to close the figures interactively.  But it gives the behavior I have come 
to expect.


Now back to my other problems (I'll start a new thread).


Cheers,

Andre




--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] where did my plots go?

2012-06-18 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 wrote an interactive script) and plots would be updated, and new 
plots would show up (when I issued a command like re-sizing the plot limits.

This no longer happens, and now the plots are not drawn until the very end of 
all the analysis.  But of course this defeats the purpose of having an 
interactive analysis session.

I do have plt.show() at the very end of the script.
In case it may matter, my main script loads another one as a module.  (But this 
is how it was before when it worked).

I am not sure what has caused this to change.  I have tried the follwing

- restart computer in case there were just some gui problem
- re-install the EPD 7.3 and EPD 6.2 (in that order)
- use the older 6.2 installation to run the script

all of these fail to produce the behavior I previously had.  It would be great 
to sort this out.


Thanks,

Andre
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


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 from your 
 scripts with a plt.ion() call before loading your other modules.
 
 I hope that helps!

Yes!!!

I don't recall changing that before (but that was 2+ years ago), so I didn't 
think to look for such a thing.
My google searches were also not precise enough.
So very helpful.  I expected it was something simple like this, thanks.


Andre
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[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[10440] Error: CGContextClosePath: no current point.


It gives so many, it ruins the point of my interactive analysis session, as it 
pushes the raw_input queries I am using so far up my terminal screen, it is 
hard to make progress in the analysis work.

Hoping someone else has seen this and has an idea where to look for the problem 
(or knows the answer).


2) and 3)  Two warnings show up which didn't previously

/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/matplotlib/__init__.py:395:
 UserWarning: matplotlibrc text.usetex option can not be used unless TeX-3.1415 
or later is installed on your system
  'installed on your system') % tex_req)

/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/matplotlib/__init__.py:401:
 UserWarning: matplotlibrc text.usetex can not be used with *Agg backend unless 
dvipng-1.5 or later is installed on your system
  warnings.warn( 'matplotlibrc text.usetex can not be used with *Agg '


I tried looking for where matplotlib points to the TeX distribution.  I have 
used TeXShop for years and never had a problem.  Also - previously on EPD 6.3, 
I did not get this warning, and all my fonts rendered correctly.  I should say, 
it appears they still render correctly, but if I can point it to my TeXShop 
build instead of texmf that would be nice.

I have my backend set to MacOSX, so I don't understand why I get the second 
error message.



I tried reverting back to my 6.3 build, but that is now buggy and doesn't 
render fonts correctly.  It is having trouble with the ticks and ticklabels, 
and gives a long list of errors.  At the moment, if I can get the 7.3 build 
working, I can happily ignore my issues in 6.3.


Thanks,

Andre


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


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, like LBL) you can download their full set of libraries

http://www.enthought.com/products/edudownload.php

If not, and you think it is worth it (or can get your company to pay), starting 
at $199 you can download their package installer (and get their tech support).

Couple words about them:  I have no affiliation with them.  Some of their 
original employees were deeply involved in numpy.  They developed a 3D plotting 
library, Mayavi, which is pretty cool.


I am reasonably comfortable with my mac, installing src code etc.  I used to 
install everything myself (back on OS X Tiger).  Then, when I upgraded to Snow 
Leopard, I couldn't get it all to work out - I did an account migration from 
old to new, and then there were some issues (I think) relating to the 32 vs 64 
bit compatibility that I couldn't resolve.  I went to a friend who is good with 
computers to get help - he said You should just use the Enthought installer - 
its so easy, that is what I do.  That helped me get over feeling like I had to 
do it all myself.  (Of course some day, when I have heaps of free time and no 
pressure from work, I will sort out how to do it all myself again)

I am guessing if you want to link numpy against the full BLAS/LAPACK libraries 
for optimal speed on matrix manipulation etc, then you may need to do the 
installation yourself, including all the fortran libraries.  But at least with 
their package installer, it should work out of the box.  Also, it installs the 
whole suite as a Framework in /Library/Frameworks/Python.framework/Versions/ 
with a cleverly chosen Version so as not to mesh with your own installation.  
So you can install there version, based on 2.7 and your own version 2.7 and 
they won't interfere.  You'll just have to relink the /usr/bin/python and 
/usr/local/bin/python to which version you want.


Good luck,

Andre





On Feb 20, 2012, at 9:07 PM, William Jennings wrote:

 Hello mat plot lib users! 
 
 I feel quite embarrassed that I’ve gone through 2 days of trying to get to 
 get numpy, scipy and matplotlib all to work nice with each other. I’ve 
 scraped through forums, stackoverflow and all the links that can bide me some 
 type of logic. Yet, alas I still fail wildly with this set of errors:
 
 my current status is: just did a fresh install of my lion os and haven't 
 installed Xcode yet. I'm a little lost and have found only macports, homebrew 
 guides online only to be a slower failure. I really need to use this software 
 but I'm finding it difficult keeping straight what order and what I need to 
 install. Is it best to have python 2.6 or 2.72? if it's 2.72 should it be the 
 universal version from python.org? Once that is installed is it best to just 
 install numpy and scipy from github and then try matplotlib? I know I need to 
 install fortran and make sure that it's using G++ 4.2 and C++ 4.2 BEFORE i 
 run scipy and numpy setup... Yet, right now I'm floundering for a clear 
 example on 10 or so commands I should put into terminal and in the correct 
 order for how to install it. I promise once I learn how to install I'll put a 
 resource on the web or link back to some of the better resources. As for now 
 my freshly installed os computer is in your hands currently with python 2.71 
 that was preinstalled with Lion. That is all I've done thus far. 
 
 Thank you !
 
 Here is the old error I was getting when I used the home brew guide that I 
 found here: bit.ly/qGdKy9 
 In file included from src/backend_agg.cpp:11:
 In file included from src/_backend_agg.h:34:
 agg24/include/agg_renderer_outline_aa.h:1368:45: error: binding of reference 
 to type ‘agg::line_profile_aa’ to a value of type ‘const 
 agg::line_profile_aa’ drops qualifiers
 line_profile_aa profile() { return *m_profile; }
 ^~
 1 error generated.
 error: command ‘/usr/bin/clang’ failed with exit status 1
 —-
 Command /Users/Will/.virtualenvs/test1/bin/python -c “import 
 setuptools;file=’/Users/Will/.virtualenvs/test1/src/matplotlib/setup.py’; 
 exec(compile(open(file).read().replace(‘\r\n’, ‘\n’), file, ‘exec’))” develop 
 –no-deps failed with error code 1 in 
 /Users/Will/.virtualenvs/test1/src/matplotlib
 Storing complete log in /Users/Will/.pip/pip.log
 --
 Keep Your Developer Skills Current with LearnDevNow!
 The most comprehensive online learning library for Microsoft developers
 is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
 Metro Style Apps, more. Free future releases when you subscribe now!
 http://p.sf.net/sfu/learndevnow-d2d___
 Matplotlib-users 

[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.  They previously worked with 
no error.  Now I get a weird error I am not sure how to sort out yet:

Python[47092] Error: CGContextClosePath: no current point.

I believe this is a matplotlib issue as searching for CGContextClosePath 
returns errors regarding drawing lines.

I should add that my scripts still run, and the plots are still drawn, but I 
get a dump of error messages like this in my output.


Any ideas what is going on?


Thanks,

Andre




--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


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? 
 Or delete them with a warning?

I would delete them with a warning.  Those who are familiar with logs will not 
be surprised.  Those who are not familiar will be provided an opportunity to 
learn something new!


Andre





 
 Eric
 
 
 thanks a lot,
 richard
 
 The verbose output:
 
 $HOME=/Users/richard
 CONFIGDIR=/Users/richard/.matplotlib
 matplotlib data path
 /Library/Frameworks/EPD64.framework/Versions/7.0/lib/python2.7/site-packages/matplotlib/mpl-data
 loaded rc file
 /Library/Frameworks/EPD64.framework/Versions/7.0/lib/python2.7/site-packages/matplotlib/mpl-data/matplotlibrc
 matplotlib version 1.0.1
 verbose.level helpful
 interactive is False
 units is False
 platform is darwin
 Using fontManager instance from /Users/richard/.matplotlib/fontList.cache
 backend MacOSX version unknown
 1.0.1
 
 The resulting figure:
 
 
 
 
 --
 Get a FREE DOWNLOAD! and learn more about uberSVN rich system,
 user administration capabilities and model configuration. Take
 the hassle out of deploying and managing Subversion and the
 tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
 
 
 
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users
 
 
 --
 Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
 user administration capabilities and model configuration. Take 
 the hassle out of deploying and managing Subversion and the 
 tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users


--
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[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 way to do this would allow

marker
markersize
markerfacecolor
markeredgecolor

etc accept arrays, as well as a single kwarg.  As far as I can tell, if I have 
a set of data, and I want to make the markers with different sizes, the only 
way to do this is have a loop that calls each data point individually and 
assigns the marker features.

1 - am I mistaken?  and if so, could someone instruct me how to achieve my goal

2 - does anyone else find this feature desirable?  If so, could this be added 
to Matplotlib?  I have not the coding experience to attempt this myself - but I 
imagine the simplest thing to do would be check if the marker, ms, etc are 
given single kwargs, or arrays.  If single, everything happens as now.  If 
array, then check the len of the array against the len of the data, and if the 
same, match the entries.


Thanks,

Andre
--
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[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 nice solution for the tick size.  I would 
like to change the size of the major and minor ticks independently.  But the 
best I have come up with so far is a brute force double loop (I tried calling 
major=False but major is not a recognized kwarg)

 for tick in ax.xaxis.get_ticklines(minor=True):
 tick.set_markersize(5)
 for tick in ax.xaxis.get_ticklines(minor=False):
 tick.set_markersize(10)


I assume there is some nice solution like for the tick labels, but I have not 
found it.

Anyone figured this one out yet?


Thanks,

Andre
--
Got Input?   Slashdot Needs You.
Take our quick survey online.  Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] tick sizes

2011-07-28 Thread Andre' Walker-Loud
Hi Ben,

Would you expect this to work on Matplotlib 0.99.3?

I get the following error

AttributeError: 'XAxis' object has no attribute 'set_tick_params'


Thanks,


Andre


On Jul 28, 2011, at 12:18 PM, Ben Breslauer wrote:

 Hi Andre,
 
 You should be able to set the size with the following:
 
 params = {'length': 10}
 axis = plt.axes().xaxis
 axis.set_tick_params(which='major', **params)
 
 You can also use 'minor' instead of 'major' to set the minor ticks.  There 
 are a number of different valid values for the params dict, including 
 direction, width, and color.
 
 Ben
 
 On Thu, Jul 28, 2011 at 2:22 PM, Andre' Walker-Loud walksl...@gmail.com 
 wrote:
 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 nice solution for the tick size.  I would 
 like to change the size of the major and minor ticks independently.  But the 
 best I have come up with so far is a brute force double loop (I tried calling 
 major=False but major is not a recognized kwarg)
 
  for tick in ax.xaxis.get_ticklines(minor=True):
  tick.set_markersize(5)
  for tick in ax.xaxis.get_ticklines(minor=False):
  tick.set_markersize(10)
 
 
 I assume there is some nice solution like for the tick labels, but I have not 
 found it.
 
 Anyone figured this one out yet?
 
 
 Thanks,
 
 Andre
 --
 Got Input?   Slashdot Needs You.
 Take our quick survey online.  Come on, we don't ask for help often.
 Plus, you'll get a chance to win $100 to spend on ThinkGeek.
 http://p.sf.net/sfu/slashdot-survey
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users
 

--
Got Input?   Slashdot Needs You.
Take our quick survey online.  Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] tick sizes

2011-07-28 Thread Andre' Walker-Loud
well I knew there was a better solution, thanks.

I guess I'll just have to upgrade my installation.


Andre


On Jul 28, 2011, at 12:44 PM, Ben Breslauer wrote:

 Hmm, no, it looks like the tick_params were added in 1.0.  I can also get it 
 to work using
 
 plt.setp(ax.xaxis.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 walksl...@gmail.com 
 wrote:
 Hi Ben,
 
 Would you expect this to work on Matplotlib 0.99.3?
 
 I get the following error
 
 AttributeError: 'XAxis' object has no attribute 'set_tick_params'
 
 
 Thanks,
 
 
 Andre
 
 
 On Jul 28, 2011, at 12:18 PM, Ben Breslauer wrote:
 
 Hi Andre,
 
 You should be able to set the size with the following:
 
 params = {'length': 10}
 axis = plt.axes().xaxis
 axis.set_tick_params(which='major', **params)
 
 You can also use 'minor' instead of 'major' to set the minor ticks.  There 
 are a number of different valid values for the params dict, including 
 direction, width, and color.
 
 Ben
 
 On Thu, Jul 28, 2011 at 2:22 PM, Andre' Walker-Loud walksl...@gmail.com 
 wrote:
 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 nice solution for the tick size.  I would 
 like to change the size of the major and minor ticks independently.  But the 
 best I have come up with so far is a brute force double loop (I tried 
 calling major=False but major is not a recognized kwarg)
 
  for tick in ax.xaxis.get_ticklines(minor=True):
  tick.set_markersize(5)
  for tick in ax.xaxis.get_ticklines(minor=False):
  tick.set_markersize(10)
 
 
 I assume there is some nice solution like for the tick labels, but I have 
 not found it.
 
 Anyone figured this one out yet?
 
 
 Thanks,
 
 Andre
 --
 Got Input?   Slashdot Needs You.
 Take our quick survey online.  Come on, we don't ask for help often.
 Plus, you'll get a chance to win $100 to spend on ThinkGeek.
 http://p.sf.net/sfu/slashdot-survey
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users
 
 
 

--
Got Input?   Slashdot Needs You.
Take our quick survey online.  Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


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 particular legend using LaTeX. 
 In order to do so I'm feeding it the string: r$80--120. The output should 
 be have an endash, 80–120, but I'm getting 80--120. This is a standard 
 feature of LaTeX ( http://en.wikibooks.org/wiki/LaTeX/Formatting ), so I 
 don't know what's going on. 
 
 Thanks,
 Sean Lake
 
 uname -a
 Darwin dynamic_051.astro.ucla.edu 10.7.0 Darwin Kernel Version 10.7.0: Sat 
 Jan 29 15:17:16 PST 2011; root:xnu-1504.9.37~1/RELEASE_I386 i386
 
 (You also have a bug on this web page: 
 http://matplotlib.sourceforge.net/faq/troubleshooting_faq.html#reporting-problems
  , The line python -c `import matplotlib; print matplotlib.__version__` 
 should not have back-ticks)
 /sw/bin/python2.6 -c 'import matplotlib; print matplotlib.__version__'
 1.0.0
 
 Got matplotlib via fink:
 fink --version
 Package manager version: 0.29.21
 Distribution version: selfupdate-rsync Sun Apr  3 02:28:24 2011, 10.6, x86_64
 Trees: local/main stable/main stable/crypto unstable/main unstable/crypto
 
 matplotlibrc file:
 text.usetex : True
 
 #backend : MacOSX
 backend : GTKAgg
 #backend : ps
 #backend : pdf
 
 
 
 --
 Xperia(TM) PLAY
 It's a major breakthrough. An authentic gaming
 smartphone on the nation's most reliable network.
 And it wants your games.
 http://p.sf.net/sfu/verizon-sfdev
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users


--
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


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 $. In 
 spite of the typo, Gary Ruben found the actual bug: math mode doesn't support 
 --. 
 
 Thanks,
 Sean
 
 On Apr 5, 2011, at 17:08, 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 odysseus9...@gmail.com wrote:
 Hello all,
 
 I'm trying to specify a range of numbers in a particular legend using 
 LaTeX. In order to do so I'm feeding it the string: r$80--120. The output 
 should be have an endash, 80–120, but I'm getting 80--120. This is a 
 standard feature of LaTeX ( http://en.wikibooks.org/wiki/LaTeX/Formatting 
 ), so I don't know what's going on.
 
 Thanks,
 Sean Lake
 
 uname -a
 Darwin dynamic_051.astro.ucla.edu 10.7.0 Darwin Kernel Version 10.7.0: Sat 
 Jan 29 15:17:16 PST 2011; root:xnu-1504.9.37~1/RELEASE_I386 i386
 
 (You also have a bug on this web page: 
 http://matplotlib.sourceforge.net/faq/troubleshooting_faq.html#reporting-problems
  , The line python -c `import matplotlib; print matplotlib.__version__` 
 should not have back-ticks)
 /sw/bin/python2.6 -c 'import matplotlib; print matplotlib.__version__'
 1.0.0
 
 Got matplotlib via fink:
 fink --version
 Package manager version: 0.29.21
 Distribution version: selfupdate-rsync Sun Apr  3 02:28:24 2011, 10.6, 
 x86_64
 Trees: local/main stable/main stable/crypto unstable/main unstable/crypto
 
 matplotlibrc file:
 text.usetex : True
 
 #backend : MacOSX
 backend : GTKAgg
 #backend : ps
 #backend : pdf
 
 
 
 --
 Xperia(TM) PLAY
 It's a major breakthrough. An authentic gaming
 smartphone on the nation's most reliable network.
 And it wants your games.
 http://p.sf.net/sfu/verizon-sfdev
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users
 
 
 
 --
 Xperia(TM) PLAY
 It's a major breakthrough. An authentic gaming
 smartphone on the nation's most reliable network.
 And it wants your games.
 http://p.sf.net/sfu/verizon-sfdev
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users


--
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


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 odysseus9...@gmail.com 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.  That is correct.


Andre

--
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


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 I 
create a bin

 bin = 
 np.histogram(binData,range=(ymin,ymax),weights=binQ,bins=np.arange(ymin,ymax,dm0/4))


where 

 ind = np.argsort(my_data) # list to order the data from low to high

 binDat = my_data[ind]

 binQ = weights[ind] / np.sum(weights) #ordered list of weight factors 
 for the data  (for a weighted distribution.  example, if you have data with 
 uncertainties, the weights are given by the inverse uncertainties)

and ymin, ymax and dm0 are params I have specified (based on the data) to set 
the bin size and range of bins

The pdf, in this case, is given by pdf[i] = binQ[i].

I can then access this with

 bin[0][i]  #this is the i'th weight (the pdf at i)

also, the data (the x values) can be accessed by

 bin[1][i]


At the very least, this gives a poor-working man's solution.  I couldn't figure 
out how to get it from np.hist.


Andre






On Mar 24, 2011, at 8:47 PM, Chris Edwards wrote:

 Hi,
 
 I would like to access values in the bins of a matplotlib histogram. The 
 following example script is an attempt to do this. Clearly pdf contains 
 floating point numbers, but I am unable to access them.
 
 Help with this problem would be much appreciated.
 
 Chris
 
 --
 import numpy as np
 import matplotlib.pyplot as plt
 fig = plt.figure()
 ax = fig.add_subplot(111)
 
 mu, sigma = 100, 15
 x = mu + sigma * np.random.randn(20)
 
 #Generate the histogram of the data. Example from Matplotlib documentation
 
 n, bins, patches = plt.hist(x, 50, normed=True, facecolor='g', alpha=0.75)
 plt.xlabel('Smarts')
 plt.ylabel('Probability')
 plt.title('Histogram of IQ')
 plt.text(60, .025, r'$\mu=100,\ \sigma=15$')
 plt.axis([40, 160, 0, 0.03])
 plt.grid(True)
 
 #From Matplotlib documentation.
 #normed: If True, the first element of the return tuple will be the counts 
 normalized
 #to form a probability density, i.e., n/(len(x)*dbin). In a probability 
 density,
 #the integral of the histogram should be 1; you can verify that with a 
 trapezoidal
 #integration of the probability density function.
 
 pdf, bins, patches = ax.hist(x, 50, normed=True, facecolor='g', alpha=0.75)
 
 #print pdf shows pdf contains the value in each bin of the normed histogram
 
 print pdf = , pdf
 
 print  Integration of PDF = , np.sum(pdf * np.diff(bins))
 
 #How to access values in pdf? Various tries made but none successful. Example 
 attempt shown
 
 count=0
 for line in open(pdf,'r+'):
x=pdf.readline()
z=('%.10f' % float(x))
count=count+1
print count = , count
 
 
 --
 Enable your software for Intel(R) Active Management Technology to meet the
 growing manageability and security demands of your customers. Businesses
 are taking advantage of Intel(R) vPro (TM) technology - will your software 
 be a part of the solution? Download the Intel(R) Manageability Checker 
 today! http://p.sf.net/sfu/intel-dev2devmar
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users


--
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[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 currently am using (matplotlibrc file)

backend  : macosx   (I find the same issues with WXAgg and TkAgg as well)
...
text.usetex : true #use latex for all text handling


Both problems began with my Enthought distribution (but for reasons I will 
spare you, I don't want to switch to a different installation if possible, 
except upgrade Enthought).


Problem 1:
With all my old installations, which existed on previous Mac OSX version 
(10.5), I did not need to set

text.usetex : true #use latex for all text handling

My text rendering worked fine.  But with the Enthought version, for some 
reason, I got fatal errors.  So I switched to having latex render all text.  
This wasn't a big deal, and it has been a while, so I don't have the error logs 
anymore.  Just wondering if anyone else experienced this, and understands why?


Problem 2: (I believe unrelated to 1)

I use the annotate command to add text to my figures, displaying analysis 
results.

Frequently, when I save the figure as a PDF, these annotated texts do not 
appear in the saved PDF.  I find that if I fiddle with the matplotlib gui 
figure-window, adjusting the size on my screen, then I can eventually get the 
saved PDF to contain this text.  But this gets very annoying quickly, as almost 
never is the default size the one needed to properly capture the text in the 
saved figure, and it requires lots of fine-tuning with trial and error.

If I instead save as PNG, I almost never have this problem (maybe never).


Infrequently, the text doesn't even display in the gui window, until I fiddle 
with the size of the window.

In both cases, NO errors are produced.  My script which does the analysis and 
produces the figures uses

from pylab import *

but otherwise no * imports.


My old Fink installation doesn't have this problem - but it was moved from my 
old Mac OSX 10.5 system, and there are some issues with the upgrade to Mac OSX 
10.6, which lead me to need to just re-install everything fresh on the 10.6 OS.


I am not sure if this problem is specific to Enthought's distribution (the 
latex tex rendering problem made me suspect this) or is just some bizarre Mac 
problem or ???


So, does anyone out there have the same or similar problem?  And better yet, 
understand why and how to fix?


Thanks,

Andre







--
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] matplotlib figures missing text

2011-03-24 Thread Andre' Walker-Loud
Hi Michael,

In both cases, I was first hoping someone else has experienced this problem, to 
know I am not alone in the universe.

But since you asked, I am using the macosx backend - but find the same problem 
also with WXAgg and TkAgg.

When you mention included examples, I do not find any in 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' Walker-Loud wrote:
 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 currently am using (matplotlibrc file)
 
 backend  : macosx   (I find the same issues with WXAgg and TkAgg as well)
 ...
 text.usetex : true #use latex for all text handling
 
 
 Both problems began with my Enthought distribution (but for reasons I will 
 spare you, I don't want to switch to a different installation if possible, 
 except upgrade Enthought).
 
 
 Problem 1:
 With all my old installations, which existed on previous Mac OSX version 
 (10.5), I did not need to set
 
 text.usetex : true #use latex for all text handling
 
 My text rendering worked fine.  But with the Enthought version, for some 
 reason, I got fatal errors.  So I switched to having latex render all text.  
 This wasn't a big deal, and it has been a while, so I don't have the error 
 logs anymore.  Just wondering if anyone else experienced this, and 
 understands why?
 Without seeing the content of the error, it's very hard to say why it might 
 be failing.  Can you set text.usetex back to False and send us the error 
 output?
 
 
 Problem 2: (I believe unrelated to 1)
 
 I use the annotate command to add text to my figures, displaying analysis 
 results.
 
 Frequently, when I save the figure as a PDF, these annotated texts do not 
 appear in the saved PDF.  I find that if I fiddle with the matplotlib gui 
 figure-window, adjusting the size on my screen, then I can eventually get 
 the saved PDF to contain this text.  But this gets very annoying quickly, as 
 almost never is the default size the one needed to properly capture the text 
 in the saved figure, and it requires lots of fine-tuning with trial and 
 error.
 
 If I instead save as PNG, I almost never have this problem (maybe never).
 
 
 Infrequently, the text doesn't even display in the gui window, until I 
 fiddle with the size of the window.
 
 In both cases, NO errors are produced.  My script which does the analysis 
 and produces the figures uses
 
 from pylab import *
 
 but otherwise no * imports.
 
 
 My old Fink installation doesn't have this problem - but it was moved from 
 my old Mac OSX 10.5 system, and there are some issues with the upgrade to 
 Mac OSX 10.6, which lead me to need to just re-install everything fresh on 
 the 10.6 OS.
 
 
 I am not sure if this problem is specific to Enthought's distribution (the 
 latex tex rendering problem made me suspect this) or is just some bizarre 
 Mac problem or ???
 
 
 So, does anyone out there have the same or similar problem?  And better yet, 
 understand why and how to fix?
 Which backend are you using?  Can you provide a standalone plot that produces 
 the error?  Do any of the included examples (particularly those related to 
 annotate) fail for you?
 
 Mike
 
 From: Andre' Walker-Loud [walksl...@gmail.com]
 Sent: Thursday, March 24, 2011 12:35 PM
 To: Matplotlib Users
 Subject: [Matplotlib-users] matplotlib figures missing text
 
 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 currently am using (matplotlibrc file)
 
 backend  : macosx   (I find the same issues with WXAgg and TkAgg as well)
 ...
 text.usetex : true #use latex for all text handling
 
 
 Both problems began with my Enthought distribution (but for reasons I will 
 spare you, I don't want to switch to a different installation if possible, 
 except upgrade Enthought).
 
 
 Problem 1:
 With all my old installations, which existed on previous Mac OSX version 
 (10.5), I did not need to set
 
 text.usetex : true #use latex for all text handling
 
 My text rendering worked fine.  But with the Enthought version, for some 
 reason, I got fatal errors.  So I switched to having latex render all text.  
 This wasn't a big deal, and it has been a while, so I don't have the error 
 logs anymore.  Just wondering if anyone else experienced

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 alter/remove to fix his trouble.

I can't remember any more details, but thought I would share in case  
this helps.


Andre



On Sep 8, 2010, at 8:56 AM, Jeremy Conlin wrote:

 I have trouble getting any symbols or any super/sub scripts to work
 since I upgraded to 1.0 a few months ago.  I always get a message
 saying that some font isn't found.  This occurs whenever I try to put
 symbols, superscripts, or subscripts in a label, or when I use a log
 scale (because then it MPL has to use superscripts).  I have tried
 changing my matplotlibrc file but haven't found any combination of
 settings that help.

 To illustrate the problem, I have included three files, one python
 file and the other the error as captured from the output as well as my
 matplotlibrc file.  The python file is trivial:

 # -
 import matplotlib.pyplot as pyplot

 pyplot.plot([1,2,3], label='$\alpha  \beta$')

 pyplot.legend()
 pyplot.show()
 # -

 Can someone please help me figure out what is wrong?  I'm on a Mac
 running 10.6, python 2.6, matplotlib 1.0, and I have TeX installed.

 Thanks,
 Jeremy
  
 mathfonterror 
 .txt 
  
  
 mathfont 
 .py 
  
  
 matplotlibrc 
  
 --
 This SF.net Dev2Dev email is sponsored by:

 Show off your parallel programming skills.
 Enter the Intel(R) Threading Challenge 2010.
 http://p.sf.net/sfu/intel-thread-sfd___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users


--
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing
http://p.sf.net/sfu/novell-sfdev2dev
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


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/remove to fix his trouble.

I can't remember any more details, but thought I would share in case this
helps.


Andre

On Wed, Sep 8, 2010 at 8:56 AM, Jeremy Conlin jlcon...@gmail.com wrote:

 I have trouble getting any symbols or any super/sub scripts to work
 since I upgraded to 1.0 a few months ago.  I always get a message
 saying that some font isn't found.  This occurs whenever I try to put
 symbols, superscripts, or subscripts in a label, or when I use a log
 scale (because then it MPL has to use superscripts).  I have tried
 changing my matplotlibrc file but haven't found any combination of
 settings that help.

 To illustrate the problem, I have included three files, one python
 file and the other the error as captured from the output as well as my
 matplotlibrc file.  The python file is trivial:

 # -
 import matplotlib.pyplot as pyplot

 pyplot.plot([1,2,3], label='$\alpha  \beta$')

 pyplot.legend()
 pyplot.show()
 # -

 Can someone please help me figure out what is wrong?  I'm on a Mac
 running 10.6, python 2.6, matplotlib 1.0, and I have TeX installed.

 Thanks,
 Jeremy


 --
 This SF.net Dev2Dev email is sponsored by:

 Show off your parallel programming skills.
 Enter the Intel(R) Threading Challenge 2010.
 http://p.sf.net/sfu/intel-thread-sfd
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users


--
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


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'

for scientific format.


Cheers,

Andre





is this like Fortran?

On Mon, May 31, 2010 at 5:41 PM, Benjamin Root ben.r...@ou.edu  
wrote:

Oz,

Some plotting functions like pcolor and imshow have keyword args for  
vmin/vmax where you can explicitly set the min and maximum values  
for the colorscale.  There are some more complicated things you can  
do with the colormap that are more generic to all plotting functions  
as well, but I would see if using vmin and vmax does the trick for  
you.


Ben Root

On Mon, May 31, 2010 at 7:25 PM, Oz Nahum nahu...@gmail.com wrote:
found a solution after 2 hours ...

colorbar(ax=ax1,  orientation='horizontal',format='%.3f')

now, I need to know how to set up limits for all the images which are
exactly the same limits.
So far I'm failing with the use of boundaries



Would be happy to know

--
Oz Nahum
Graduate Student
Zentrum für Angewandte Geologie
Universität Tübingen

---

Imagine there's no countries
it isn't hard to do
Nothing to kill or die for
And no religion too
Imagine all the people
Living life in peace

--

___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users




--
Oz Nahum
Graduate Student
Zentrum für Angewandte Geologie
Universität Tübingen

---

Imagine there's no countries
it isn't hard to do
Nothing to kill or die for
And no religion too
Imagine all the people
Living life in peace


--

___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


--

___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


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

2010-05-31 Thread Andre Walker-Loud

Hi Oz,

Sorry, I am not familiar with what you are trying to do with your  
plots.  Everything I have learned is from trial and error, the gallery  
page


http://matplotlib.sourceforge.net/gallery.html

and the user manual

http://matplotlib.sourceforge.net/contents.html


Good luck,

Andre





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 walksl...@gmail.com 
 wrote:

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'

for scientific format.


Cheers,

Andre





is this like Fortran?

On Mon, May 31, 2010 at 5:41 PM, Benjamin Root ben.r...@ou.edu  
wrote:

Oz,

Some plotting functions like pcolor and imshow have keyword args  
for vmin/vmax where you can explicitly set the min and maximum  
values for the colorscale.  There are some more complicated things  
you can do with the colormap that are more generic to all plotting  
functions as well, but I would see if using vmin and vmax does the  
trick for you.


Ben Root

On Mon, May 31, 2010 at 7:25 PM, Oz Nahum nahu...@gmail.com wrote:
found a solution after 2 hours ...

colorbar(ax=ax1,  orientation='horizontal',format='%.3f')

now, I need to know how to set up limits for all the images which are
exactly the same limits.
So far I'm failing with the use of boundaries



Would be happy to know

--
Oz Nahum
Graduate Student
Zentrum für Angewandte Geologie
Universität Tübingen

---

Imagine there's no countries
it isn't hard to do
Nothing to kill or die for
And no religion too
Imagine all the people
Living life in peace

--

___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users




--
Oz Nahum
Graduate Student
Zentrum für Angewandte Geologie
Universität Tübingen

---

Imagine there's no countries
it isn't hard to do
Nothing to kill or die for
And no religion too
Imagine all the people
Living life in peace


--

___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users





--
Oz Nahum
Graduate Student
Zentrum für Angewandte Geologie
Universität Tübingen

---

Imagine there's no countries
it isn't hard to do
Nothing to kill or die for
And no religion too
Imagine all the people
Living life in peace




--

___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


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
 (apologies for the ascii art), the smaller box represents the plot I
 want to add. The thing I know it doesnt want to be a subplot and I
 can't find an example of this plot in the gallery. It is possible in R
 with some hackingand I'm hoping its possible in matplotlib.

 |   _
 |   ||
 |   ||
 |   ||
 |
 |
 |
 |
 --

 Any ideas on how to do this? I m guessing/hoping someone must have
 done it before?

 Many thanks in advance

 Nathan

 --
 Download Intel#174; Parallel Studio Eval
 Try the new software tools for yourself. Speed compiling, find bugs
 proactively, and fine-tune applications for parallel performance.
 See why Intel Parallel Studio got high marks during beta.
 http://p.sf.net/sfu/intel-sw-dev
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] figure save problem

2010-03-12 Thread Andre Walker-Loud
Hi All,

An update:

I have likely figured out the problem.  When I did a fresh install of  
Python-2.6 on my mac, I simply used

./configure

and reading more about installing on the mac, I believe I should have  
used

./configure --enable-framework

to support all the GUI stuff.  Well, I tried this, but got the warning,

Failed to find the necessary bits to build these modules:
_bsddb gdbm   linuxaudiodev
ossaudiodevreadline   spwd
sunaudiodev


so, instead of trying to track down the solution to this problem (I am  
still new at learning how to properly install software from binaries)  
I just grabbed the latest python-2.6 .dmg file for mac, and installed  
with that.

Now, everything seems to work fine.   :)


Cheers,

Andre



On Mar 11, 2010, at 4:56 PM, James Boyle wrote:

 I have the same problem with nearly identical setup:
 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
 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 Save the figure dialogue box,
 the Save As: window does not recognize any keyboard entries.  If I
 copy and paste, that works (at first).  But I remembered reading  
 about
 this problem people were having with Snow Leopard.

 Originally, copy/pasting worked to workaround this problem, but I
 find that after trying a few other things, I can no longer even paste
 anything into the Save As: Box.  Further, when I click the Save  
 or
 Cancel buttons, they flash like normal, however the dialogue box
 does not go away, the file is not saved, and I can't escape!
 Ahh!  I can still navigate through my folders with the mouse in
 the dialogue box, but clearly something is not right.


 Last week, I had Python 2.5, matplotlib 0.98.6 and everything worked
 just fine.

 I have the problem whether running through python or ipython.asdfasdf


 Any ideas how to fix this?


 Thanks,

 Andre

 --
 Download Intel#174; Parallel Studio Eval
 Try the new software tools for yourself. Speed compiling, find bugs
 proactively, and fine-tune applications for parallel performance.
 See why Intel Parallel Studio got high marks during beta.
 http://*p.sf.net/sfu/intel-sw-dev
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 https://*lists.sourceforge.net/lists/listinfo/matplotlib-users



 --
 Download Intel#174; Parallel Studio Eval
 Try the new software tools for yourself. Speed compiling, find bugs
 proactively, and fine-tune applications for parallel performance.
 See why Intel Parallel Studio got high marks during beta.
 http://p.sf.net/sfu/intel-sw-dev
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[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 Save the figure dialogue box,  
the Save As: window does not recognize any keyboard entries.  If I  
copy and paste, that works (at first).  But I remembered reading about  
this problem people were having with Snow Leopard.

Originally, copy/pasting worked to workaround this problem, but I  
find that after trying a few other things, I can no longer even paste  
anything into the Save As: Box.  Further, when I click the Save or  
Cancel buttons, they flash like normal, however the dialogue box  
does not go away, the file is not saved, and I can't escape!   
Ahh!  I can still navigate through my folders with the mouse in  
the dialogue box, but clearly something is not right.


Last week, I had Python 2.5, matplotlib 0.98.6 and everything worked  
just fine.

I have the problem whether running through python or ipython.asdfasdf


Any ideas how to fix this?


Thanks,

Andre

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[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, there has been an import  
numpy as np from the -pylab option.

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

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


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 walksl...@gmail.com 
 wrote:

IPython can remedy all your wonderings :)

http://matplotlib.sourceforge.net/users/shell.html

--
Gökhan


Hi Gökhan,

I am not very familiar with iPython (I am not opposed to learning  
either).


What I have in mind is writing code that I can call from a terminal,  
as opposed to interactively as with iPython.  However, in iPython,  
can you have a module/script running, and asking me as the user for  
input?  I have assumed iPython is similar to an interactive Python  
interpreter.  With the knowledge I have, I can not, while in  
interactive mode, launch a sub routine that will ask me for input.   
Is this possible to do (in either Python or iPython)?



Thanks,

Andre

Just give it a try (http://ipython.scipy.org/moin/)

I don't think you will ever look back the regular Python  
interpreter. (When I first start with Python, I only use it for  
about less than a day :)


This page is very explanatory of what IPython is capable of
http://ipython.scipy.org/doc/stable/html/overview.html

This is a great audio-visual tutorial about IPython by Jeff Rush
A Demonstration of the 'IPython' Interactive Shell

and finally I recommend you to watch some of the SciPy09 videos to  
see how other people using IPython interactively. Since we are  
corresponding under matplotlib roof, wouldn't be fair it don't  
suggest you to watch John Hunter's Advanced topics in matplotlib  
tutorial.




--
Come build with us! The BlackBerryreg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
http://p.sf.net/sfu/devconf___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[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 in my routine

  #!/usr/bin/python (I am not running in interactive mode, rather I  
made an executable script)
  import matplotlib.pyplot as plt

some analysis stuff

  plt.show()


after the plt.show() command, the terminal I run the script from  
becomes unresponsive until I close plot I made.  However, I would like  
instead to be able to continue interacting with the program.  For  
example, choosing a fitting window based upon the first plot.  But I  
don't want to have to close down the plot to do this.  So my  
question(s):

1 - how do I continue to interact with the terminal (and my program  
asking for more imput) after the plt.show() command has been issued?

2 - is there an alternative command I can use instead of plt.show()  
which does not lock up the terminal?

3 - is it possible to launch more than one matplotlib plotting window  
with the same interactive python session (executable python script)?


I thought perhaps the answer to my question would be to have a sub- 
script executed by my main one which generates the various plots I  
want, where each successive plot requires user input after viewing the  
previous ones.

Any thoughts/advice are appreciated.


Thanks,

Andre

--
Come build with us! The BlackBerryreg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
http://p.sf.net/sfu/devconf
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users