Re: [Matplotlib-users] modifying a plot from an imported module

2014-06-16 Thread Mike Kaufman
Hi. The short answer is yes. orion:~ % cat A.py from matplotlib.pyplot import * print "A" plot([0,1],[0,1]) draw() orion:~ % cat B.py from matplotlib.pyplot import * import A print "B" plot([0.5,0.75],[0,1]) draw() show() Using ipython: In [2]: run -i B.py A B and the figure shows both pl

Re: [Matplotlib-users] Altering Basemap Colobar and Label positioning

2014-06-16 Thread ChaoYue
Hi Andruska, The Basemap.colorbar has a "size" keyword to allow you have the shrink-like function to adjust the size of the colorbar. Otherwise you can creat an axes on the exact position you want to hold the colorbar, like below I have prepared an example for you: arr = np.arange(100).reshape(10

[Matplotlib-users] modifying a plot from an imported module

2014-06-16 Thread felix_werner
Hello, I am plotting something in a file A.py In another file (B.py), I wish to do import A and then add a curve to that same plot (and replot it). Is that possible? Thanks! -- View this message in context: http://matplotlib.1069221.n5.nabble.com/modifying-a-plot-from-an-imported-module-t

[Matplotlib-users] Pick a particular data from array

2014-06-16 Thread dydy2014
Hello all, I have contour plot like this and I have problem to pick a particular data along red line and save it. How do I make it with python program? Thank you in advance. Dydy -- View this message in context: http://matplo