[IPython-User] How to configure plot resolution in ipython notebook?

Matthias BUSSONNIER bussonniermatthias@gmail....
Tue Oct 2 13:42:36 CDT 2012


Le 2 oct. 2012 à 19:42, Michael Hadmack a écrit :

> Desmond,
> 
> You can use the commands:
> 
> figure(figsize=(4,3))
> plot(...)
> savefig('temp.pdf')
> 
> to set the size (4" x 3") and format.  This will save to temp.pdf in
> your notebook directory.  Dragging from the notebook will always give
> you a png.

Also everything that is default value for figures sizes, color.... could be set with matplotlib rc parameters.
But this is matplotlib configuration, not IPython configuration.

> 
> -Mike
> 
> 
> On Tue, Oct 2, 2012 at 6:55 AM, Des.P <des.p@dsouzaville.com> wrote:
>> The iPython notebook is awesome!
>> 
>> I generate plots in the notebook (using iPython version included in EPD 7.3) in Safari (OSX), then drag them into my Pages document.
>> 
>> Are there API calls or params I can set before plot() to configure the plot image
>> - sizes
>> - resolution
>> - format (e.g. Safari displays PDF inline, would be great to drop those into my doc)
>> 
>> Thanks!
>> 
>> Desmond
>> 
>> _______________________________________________
>> IPython-User mailing list
>> IPython-User@scipy.org
>> http://mail.scipy.org/mailman/listinfo/ipython-user
> _______________________________________________
> IPython-User mailing list
> IPython-User@scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-user



More information about the IPython-User mailing list