Re: [Matplotlib-users] savefig

2013-06-13 Thread Sudheer Joseph
Thank you, I don't see a way other than starting in normal mode as the moment I type plot command it get displayed and I don't need to do a show command. With best regards sudheer-- This SF.net email is sponsored by Windo

Re: [Matplotlib-users] savefig

2013-06-13 Thread Sudheer Joseph
Thank you Roban, Your that trick worked, if I keep ts.plot(), savefig('ts.pdf') both on same line it works! with best regards Sudheer  *** Sudheer Joseph Indian National Centre for Ocean Information Services Ministr

[Matplotlib-users] Single colorbar for two overlaid contourf plots

2013-06-13 Thread zetah
Hi, in this example: import numpy as np import matplotlib.pyplot as plt arr = np.random.random((10, 10)) plt.contourf(arr, 10) plt.contourf(arr, 10, cmap='coolwarm', levels=np.arange(0, 1, .2), alpha=.5) plt.colorbar() plt.show()

Re: [Matplotlib-users] full grid for 2nd y-axis wit twinx() ?

2013-06-13 Thread Daniel Mader
Hi Paul, I've modified your suggestion a little, since I don't want a grid for the primary axis at all -- unfortunately to no avail, i.e. no grid line at all: import numpy import matplotlib matplotlib.use('agg') import matplotlib.pyplot as plt datax = numpy.arange(50) data1 = numpy.sin(data

Re: [Matplotlib-users] full grid for 2nd y-axis wit twinx() ?

2013-06-13 Thread Paul Hobson
On Thu, Jun 13, 2013 at 4:47 AM, Daniel Mader < danielstefanma...@googlemail.com> wrote: > Hi, > > I need a twinx() plot with horizontal and vertical grid lines for the > second axis, just like the usual grid for the first axis. I don't need or > want to specify the ticks manually, though! > > My

Re: [Matplotlib-users] savefig

2013-06-13 Thread Matthias BUSSONNIER
close_figures, not close_all Haven't tried to switch it at run time using %config magic though. $ ipython [qtconsole|notebook|whatever] --help-all to get all option as examples in config files are **not** updated with IPython. InlineBackend options - --InlineBackend.close_

Re: [Matplotlib-users] savefig

2013-06-13 Thread Roban Kramer
savefig works for me when I put both the plotting commands and the savefig call in the *same* code cell. On Thu, Jun 13, 2013 at 10:31 AM, Sudheer Joseph wrote: > Thank you, > I don't see a way other than starting in normal mode as the moment I type > plot command it get displayed and I don't ne

Re: [Matplotlib-users] multiple overlaid contour plots

2013-06-13 Thread Francesco Montesano
Dear Lado, You should be able to do it simply by calling countourf multiple times changing the alpha value (or setting it to something like 0.5) plt.contourf(..., alpha=0.8, ...) plt.contourf(..., alpha=0.6, ...) plt.contourf(..., alpha=0.4, ...) The problem comes when you want to sa

Re: [Matplotlib-users] savefig

2013-06-13 Thread Sudheer Joseph
Thank you, I don't see a way other than starting in normal mode as the moment I type plot command it get displayed and I don't need to do a show command. With best regards sudheer-- This SF.net email is sponsored by Windo

[Matplotlib-users] multiple overlaid contour plots

2013-06-13 Thread Lado Samushia
How can I plot multiple overlaid transparent contour plots in matplotlib? The link below has a plot that shows I am trying to achieve. https://docs.google.com/file/d/0B4HYv5Dbtu1Zb1VtOG9PTkJCeVU/edit?usp=sharing -- This SF

Re: [Matplotlib-users] savefig

2013-06-13 Thread Paul Hobson
On Wed, Jun 12, 2013 at 10:28 PM, Sudheer Joseph wrote: > Dear experts, > I start ipython in ipython qtconsole --pylab=inline mode and make a plot. > But if I use savefig('fig.png') the figure do not get saved instead I get a > blank page. > > I also tried img.save('fig.png',png) but no use. Is t

[Matplotlib-users] full grid for 2nd y-axis wit twinx() ?

2013-06-13 Thread Daniel Mader
Hi, I need a twinx() plot with horizontal and vertical grid lines for the second axis, just like the usual grid for the first axis. I don't need or want to specify the ticks manually, though! My example code just produces horizontal lines: import pylab datax = pylab.arange(50) data1 = pylab.s