[Matplotlib-users] IPython's matplotlib inline magic is really magic? Actually it might resets axes bounds...

2015-03-13 Thread Ryan Nelson
I'm constructing a multi-plot figure using an IPython notebook (v3) and matplotlib (v1.4.3) inline magic. I was manually setting the axes bounds, and I ended up with something like the following: import matplotlib.pyplot as plt %matplotlib inline bottom = 0.12 top = 0.9 left = 0.12

Re: [Matplotlib-users] Corr plot in subplot

2015-03-13 Thread Adam Hughes
All the pandas plots that I've used take an axes keyword so try: c = corrplot.Corrplot(df, ax=ax1) or c = corrplot.Corrplot(df, axes=ax1) Do either of those work? On Fri, Mar 13, 2015 at 2:04 PM, Paul Hobson pmhob...@gmail.com wrote: What's the function signature of corrplot.CorrPlot?

Re: [Matplotlib-users] IPython's matplotlib inline magic is really magic? Actually it might resets axes bounds...

2015-03-13 Thread Thomas Caswell
This is due to the fact that by default the inline backend saves the pngs using `boundingbox_inches='tight'`. The design goal on the mpl side of this kwargs was to trim off extra whitespace, but the way it is implemented works just as effectively to expand to fit artists that fall outside of the

[Matplotlib-users] Less tedious way to change the x-axis scale intervals with time series data?

2015-03-13 Thread pybokeh
Hello, I'm trying to learn if there is a better or less tedious way of changing the x-axis time scale interval size when plotting time series data using MATPLOTLIB. To account for all the different x-axis intervals that I may end up using, I usually do the following imports: from matplotlib.dates

Re: [Matplotlib-users] [IPython-dev] IPython's matplotlib inline magic is really magic? Actually it might resets axes bounds...

2015-03-13 Thread Ryan Nelson
Okay. I figured out the problem. You need to pass a dictionary to the config magic. Here is the relevant code: %config InlineBackend.print_figure_kwargs = {'bbox_inches':None} I created a PR with IPython (https://github.com/ipython/ipython/pull/8051) to add this information to the %matplotlib

Re: [Matplotlib-users] IPython's matplotlib inline magic is really magic? Actually it might resets axes bounds...

2015-03-13 Thread Ryan Nelson
Thanks Tom. Your hint led me to the following page: https://github.com/ipython/ipython/blob/aab20bf85126f5b1da857193c446aebe6346acec/docs/source/whatsnew/version2.0.rst#other-changes So it seems that this change is quite old, and I never noticed it before... The suggestion on that page requires

Re: [Matplotlib-users] Plotting style

2015-03-13 Thread Marin GILLES
Le 05/03/2015 17:35, Eric Firing a écrit : On 2015/03/05 6:11 AM, Marin GILLES wrote: Hello everyone, After working a bit on the styles, I noticed that some parameters could not be modified using an rc or style file (for example, turning off the right, left, up or down axis). I kind of saw how

Re: [Matplotlib-users] svg format graph: lines out of box

2015-03-13 Thread liu lily
OK, it seems that this is due to my picture browser application. I take a snapshot, as in the attachment. On Fri, Mar 13, 2015 at 11:51 AM, liu lily politoeso...@gmail.com wrote: strange, it seems the pic above is normal? so I send it again On Fri, Mar 13, 2015 at 11:43 AM, liu lily

Re: [Matplotlib-users] svg format graph: lines out of box

2015-03-13 Thread Jens Nielsen
Which program is that screenshot from? It is likely due to a bug in that render. Since is displays normally in the browser. The plot lines are clipped behind the background but that obviously doesn't work correctly in that case. Not sure what can be done with in from the matplotlib side best Jens

Re: [Matplotlib-users] svg format graph: lines out of box

2015-03-13 Thread Fabrice Silva
Le vendredi 13 mars 2015 à 13:41 +0100, Fabrice Silva a écrit : Le vendredi 13 mars 2015 à 10:59 +, Jens Nielsen a écrit : Which program is that screenshot from? It is likely due to a bug in that render. Since is displays normally in the browser. The plot lines are clipped behind the

Re: [Matplotlib-users] svg format graph: lines out of box

2015-03-13 Thread Fabrice Silva
Le vendredi 13 mars 2015 à 10:59 +, Jens Nielsen a écrit : Which program is that screenshot from? It is likely due to a bug in that render. Since is displays normally in the browser. The plot lines are clipped behind the background but that obviously doesn't work correctly in that case.

[Matplotlib-users] Corr plot in subplot

2015-03-13 Thread Sudheer Joseph
Dear Matplotlib exprets, I am trying to place the corrplot in subplot environment. But not able to figure out how to do it properly. Can any one advice please? from biokit.viz import corrplot df = pd.DataFrame(dict(( (k, np.random.random(10)+ord(k)-65) for k in letters))) df = df.corr() c =