Re: [Matplotlib-users] Basic matshow question

2014-08-10 Thread JBB
Exec. summary - I was having strange behavior with matshow in a loop and also with discrepancies between how iPython Notebook and Python via IDE displayed plots. Solutions: 1) Using pause instead of show fixed matshow in a loop 2) Explicitly invoking %matplotblib qt or generally %matplotlib {b

Re: [Matplotlib-users] Basic matshow question

2014-07-30 Thread JBB
I've followed up on several suggestions and here is what I've done/found. (I know I don't use mlab or pylab but I pulled the import lines from another source and am leaving them in for the heck of it) Code A: import numpy as np import matplotlib import time from matplotlib import pylab, mlab, py

Re: [Matplotlib-users] Basic matshow question

2014-07-30 Thread Fernando Perez
On Wed, Jul 30, 2014 at 6:11 PM, Matthew Brett wrote: > But - for exploring plotting, I would say it was a good choice. Yup, I'm obviously as biased as they come, but I think that the immediate feedback and the ability to keep plots together with their source code, makes learning and experiment

Re: [Matplotlib-users] Basic matshow question

2014-07-30 Thread Matthew Brett
Hi, On Wed, Jul 30, 2014 at 5:14 PM, JBB wrote: > Thanks for all the responses. I'll try pure Python via the Spyder IDE > vs. Ipython/Ipython Notebook for this and report back. The 'No Pylab > Thanks' was enlightening. > > I am confused about the role of the Notebook interface. I've been using

Re: [Matplotlib-users] Basic matshow question

2014-07-30 Thread JBB
Thanks for all the responses. I'll try pure Python via the Spyder IDE vs. Ipython/Ipython Notebook for this and report back. The 'No Pylab Thanks' was enlightening. I am confused about the role of the Notebook interface. I've been using it to learn the language, do experiments, and preserve

Re: [Matplotlib-users] Basic matshow question

2014-07-30 Thread Brendan Barnwell
On 2014-07-30 14:51, Eric Firing wrote: > On 2014/07/30, 7:26 AM, Benjamin Root wrote: >> There is no --pylab for that. > > I don't know what development version you are using, but for 2.1.0, it > is still there--and it does what needs to be done. He was talking about the normal Python int

Re: [Matplotlib-users] Basic matshow question

2014-07-30 Thread Eric Firing
On 2014/07/30, 7:26 AM, Benjamin Root wrote: > There is no --pylab for that. I don't know what development version you are using, but for 2.1.0, it is still there--and it does what needs to be done. -- Infragistics Profe

Re: [Matplotlib-users] Basic matshow question

2014-07-30 Thread Fernando Perez
On Wed, Jul 30, 2014 at 10:26 AM, Nathan Goldbaum wrote: > Pylab is going to be removed in IPython 3.0 (in fact it's already gone in > master) since it has several bad interactions with the rest of the > numpy/scipy universe and leads to un-reproducible code. Quick clarifications: - `--pylab`

Re: [Matplotlib-users] Basic matshow question

2014-07-30 Thread Matthew Brett
Hi, On Wed, Jul 30, 2014 at 10:26 AM, Nathan Goldbaum wrote: > You would use "%matplotlib inline" if you want the plots to show up inline > in the notebook. If you want to use one of the gui backends, it would be > "%matplotlib ". More detail here: > > http://ipython.org/ipython-doc/2/api/gener

Re: [Matplotlib-users] Basic matshow question

2014-07-30 Thread Benjamin Root
right, thank you, it is "inline", not "interactive". I really need a memory upgrade... Cheers! Ben Root On Wed, Jul 30, 2014 at 1:26 PM, Nathan Goldbaum wrote: > You would use "%matplotlib inline" if you want the plots to show up inline > in the notebook. If you want to use one of the gui bac

Re: [Matplotlib-users] Basic matshow question

2014-07-30 Thread Benjamin Root
There is no change to the recommendations for interactive plots from the console, if by console you mean the normal python REPL. There is no --pylab for that. If you mean from the IPython console, then it is the cell magic I mentioned previously. On Wed, Jul 30, 2014 at 1:19 PM, Matthew Brett wr

Re: [Matplotlib-users] Basic matshow question

2014-07-30 Thread Nathan Goldbaum
You would use "%matplotlib inline" if you want the plots to show up inline in the notebook. If you want to use one of the gui backends, it would be "%matplotlib ". More detail here: http://ipython.org/ipython-doc/2/api/generated/IPython.core.magics.pylab.html#IPython.core.magics.pylab.PylabMagic

Re: [Matplotlib-users] Basic matshow question

2014-07-30 Thread Matthew Brett
Hi, On Wed, Jul 30, 2014 at 9:30 AM, Benjamin Root wrote: > I think it is mostly an issue with how IPython interfaces with matplotlib. > If you were running from a pure python prompt, then I would suspect it to > work (haven't tried myself, though). Note that the --pylab option to ipython > is no

Re: [Matplotlib-users] Basic matshow question

2014-07-30 Thread Benjamin Root
I think it is mostly an issue with how IPython interfaces with matplotlib. If you were running from a pure python prompt, then I would suspect it to work (haven't tried myself, though). Note that the --pylab option to ipython is now highly discouraged. Instead, I would try the "%matplotlib interact

Re: [Matplotlib-users] Basic matshow question

2014-07-29 Thread JBB
On 7/29/14, 10:49 PM, Eric Firing wrote: > On 2014/07/29, 7:04 PM, JBB wrote: >> Hello, >> >> I am relatively new to Python, numpy, matplotlib, etc., with a >> reasonable amount of Matlab experience. ...[ Problem and test code trimmed ] > > First, at least initially for this sort of thing,

Re: [Matplotlib-users] Basic matshow question

2014-07-29 Thread Eric Firing
On 2014/07/29, 7:04 PM, JBB wrote: > Hello, > > I am relatively new to Python, numpy, matplotlib, etc., with a > reasonable amount of Matlab experience. > > I am trying to do some simple array visualizations before moving on to > specific work. > > e.g. I have a 5x5x10 array and I'd like to see eac

[Matplotlib-users] Basic matshow question

2014-07-29 Thread JBB
Hello, I am relatively new to Python, numpy, matplotlib, etc., with a reasonable amount of Matlab experience. I am trying to do some simple array visualizations before moving on to specific work. e.g. I have a 5x5x10 array and I'd like to see each 5x5 piece as a "frame" with a short pause in