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

Re: [Matplotlib-users] Basic matshow question

2014-07-30 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, run in

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

Re: [Matplotlib-users] Basic matshow question

2014-07-30 Thread Matthew Brett
Hi, On Wed, Jul 30, 2014 at 9:30 AM, Benjamin Root ben.r...@ou.edu 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

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 backend. More detail here:

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

Re: [Matplotlib-users] Basic matshow question

2014-07-30 Thread Matthew Brett
Hi, On Wed, Jul 30, 2014 at 10:26 AM, Nathan Goldbaum nathan12...@gmail.com 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 backend. More detail here:

Re: [Matplotlib-users] Basic matshow question

2014-07-30 Thread Fernando Perez
On Wed, Jul 30, 2014 at 10:26 AM, Nathan Goldbaum nathan12...@gmail.com 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

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

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

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 Matthew Brett
Hi, On Wed, Jul 30, 2014 at 5:14 PM, JBB jeanbigbo...@gmail.com 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

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,

[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

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 each 5x5