Make clear figure used in the powerpoint slides?

Make sure to save into a vector graphic format so it can be resized. Try pdf or
svg (don't know if M$ supports svg though)

Paul Hobson wrote:

···

Sorry hit send by accident?

What parameters are you passing to `savefig`?

For a presentation, I would save as a .png file, a higher resolution and a
transparent background. e.g.:

fig.savefig('myfig.png', dpi=600, bbox_inches='ticht', transparent=True)

On Sun, Apr 20, 2014 at 10:24 PM, Paul Hobson > <pmhobson@...287...> wrote:

What parameters are you passing to `savefig`?

On Sat, Apr 19, 2014 at 1:13 PM, Chao YUE >> <chaoyuejoy@...287...> wrote:

Dear all,

Did anyone try to make plots using matplotlib, and then put the figure in
the powerpoint for presentation? Currently I am using the ipython notebook
--pylab mode to make the plots, and then save them to *jpg format. But when
I put it into the powerpoint, it does not look nice as I see on the screen
(a little bit blurred). You can really not notice it if you don't examine
carefully. But I really want to make high quality slides. So does anyone
have the same problem? could it be related with the figure format or
backend (GTKAgg) currently I am uisng? thanks a lot in advance.

Cheers,

Chao

--
please visit:
http://www.globalcarbonatlas.org/

***********************************************************************************

Chao YUE
Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL)
UMR 1572 CEA-CNRS-UVSQ
Batiment 712 - Pe 119
91191 GIF Sur YVETTE Cedex
Tel: (33) 01 69 08 29 02; Fax:01.69.08.77.16

************************************************************************************

------------------------------------------------------------------------------

Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

No Powerpoint version I know supports SVG (or any vector graphics format useful in this case) and Matplotlib does not
export WMF graphics anymore. So the easiest way is to use PNGs, if you can live with raster graphics.

Alternatively, if you need vector graphics, you can export the Matplotlib plot as SVG and convert it to WMF or EMF using
Inkscape. This can be done in the command line like this:

"c:\Program Files\Inkscape-0.48\inkscape.exe" --without-gui --export-emf="output.emf" "input.svg"

  Juergen

···

Am 21.04.2014 13:06, schrieb Neal Becker:

Make sure to save into a vector graphic format so it can be resized. Try pdf or
svg (don't know if M$ supports svg though)

Paul Hobson wrote:

Sorry hit send by accident?

What parameters are you passing to `savefig`?

For a presentation, I would save as a .png file, a higher resolution and a
transparent background. e.g.:

fig.savefig('myfig.png', dpi=600, bbox_inches='ticht', transparent=True)

On Sun, Apr 20, 2014 at 10:24 PM, Paul Hobson >> <pmhobson@...287...> wrote:

What parameters are you passing to `savefig`?

On Sat, Apr 19, 2014 at 1:13 PM, Chao YUE >>> <chaoyuejoy@...287...> wrote:

Dear all,

Did anyone try to make plots using matplotlib, and then put the figure in
the powerpoint for presentation? Currently I am using the ipython notebook
--pylab mode to make the plots, and then save them to *jpg format. But when
I put it into the powerpoint, it does not look nice as I see on the screen
(a little bit blurred). You can really not notice it if you don't examine
carefully. But I really want to make high quality slides. So does anyone
have the same problem? could it be related with the figure format or
backend (GTKAgg) currently I am uisng? thanks a lot in advance.

Cheers,

Chao

--
please visit:
http://www.globalcarbonatlas.org/

***********************************************************************************

Chao YUE
Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL)
UMR 1572 CEA-CNRS-UVSQ
Batiment 712 - Pe 119
91191 GIF Sur YVETTE Cedex
Tel: (33) 01 69 08 29 02; Fax:01.69.08.77.16

************************************************************************************

------------------------------------------------------------------------------

Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

------------------------------------------------------------------------------
Start Your Social Network Today - Download eXo Platform
Build your Enterprise Intranet with eXo Platform Software
Java Based Open Source Intranet - Social, Extensible, Cloud Ready
Get Started Now And Turn Your Intranet Into A Collaboration Platform
http://p.sf.net/sfu/ExoPlatform
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

While SVG isn’t supported, EPS is… sort of. Be very careful going between windows and mac versions of Powerpoint. While they both support EPS, they seem to do it differently and I have had to make emergency fixes to presentations while at conferences because they were using Windows and I only had access to Linux and Macs at home.

Cheers!

Ben Root

···

On Mon, Apr 21, 2014 at 7:34 AM, Juergen Hasch <python@…4224…> wrote:

No Powerpoint version I know supports SVG (or any vector graphics format useful in this case) and Matplotlib does not

export WMF graphics anymore. So the easiest way is to use PNGs, if you can live with raster graphics.

Alternatively, if you need vector graphics, you can export the Matplotlib plot as SVG and convert it to WMF or EMF using

Inkscape. This can be done in the command line like this:

“c:\Program Files\Inkscape-0.48\inkscape.exe” --without-gui --export-emf=“output.emf” “input.svg”

Juergen

Am 21.04.2014 13:06, schrieb Neal Becker:

Make sure to save into a vector graphic format so it can be resized. Try pdf or

svg (don’t know if M$ supports svg though)

Paul Hobson wrote:

Sorry hit send by accident?

What parameters are you passing to savefig?

For a presentation, I would save as a .png file, a higher resolution and a

transparent background. e.g.:

fig.savefig(‘myfig.png’, dpi=600, bbox_inches=‘ticht’, transparent=True)

On Sun, Apr 20, 2014 at 10:24 PM, Paul Hobson

<pmhobson@…287…> wrote:

What parameters are you passing to savefig?

On Sat, Apr 19, 2014 at 1:13 PM, Chao YUE

<chaoyuejoy@…985…> wrote:

Dear all,

Did anyone try to make plots using matplotlib, and then put the figure in

the powerpoint for presentation? Currently I am using the ipython notebook

–pylab mode to make the plots, and then save them to *jpg format. But when

I put it into the powerpoint, it does not look nice as I see on the screen

(a little bit blurred). You can really not notice it if you don’t examine

carefully. But I really want to make high quality slides. So does anyone

have the same problem? could it be related with the figure format or

backend (GTKAgg) currently I am uisng? thanks a lot in advance.

Cheers,

Chao

please visit:

http://www.globalcarbonatlas.org/


Chao YUE

Laboratoire des Sciences du Climat et de l’Environnement (LSCE-IPSL)

UMR 1572 CEA-CNRS-UVSQ

Batiment 712 - Pe 119

91191 GIF Sur YVETTE Cedex

Tel: (33) 01 69 08 29 02; Fax:01.69.08.77.16



Learn Graph Databases - Download FREE O’Reilly Book

“Graph Databases” is the definitive new guide to graph databases and their

applications. Written by three acclaimed leaders in the field,

this first edition is now available. Download your free book today!

http://p.sf.net/sfu/NeoTech


Matplotlib-users mailing list

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Start Your Social Network Today - Download eXo Platform

Build your Enterprise Intranet with eXo Platform Software

Java Based Open Source Intranet - Social, Extensible, Cloud Ready

Get Started Now And Turn Your Intranet Into A Collaboration Platform

http://p.sf.net/sfu/ExoPlatform


Matplotlib-users mailing list

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Start Your Social Network Today - Download eXo Platform

Build your Enterprise Intranet with eXo Platform Software

Java Based Open Source Intranet - Social, Extensible, Cloud Ready

Get Started Now And Turn Your Intranet Into A Collaboration Platform

http://p.sf.net/sfu/ExoPlatform


Matplotlib-users mailing list

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Mac is kind of my blind spot, thanks for pointing out that EPS is a viable format there.

Windows does not handle the PS part of EPS for screen display. You will only see a preview image, and only if it was
embedded into the EPS. Printing is be fine though, if you have a PS printer.

  Juergen

···

Am 21.04.2014 15:38, schrieb Benjamin Root:

While SVG isn't supported, EPS is... sort of. Be very careful going between windows and mac versions of Powerpoint.
While they both support EPS, they seem to do it differently and I have had to make emergency fixes to presentations
while at conferences because they were using Windows and I only had access to Linux and Macs at home.

Cheers!
Ben Root

On Mon, Apr 21, 2014 at 7:34 AM, Juergen Hasch <python@…4224… <mailto:python@…4224…>> wrote:

    No Powerpoint version I know supports SVG (or any vector graphics format useful in this case) and Matplotlib does not
    export WMF graphics anymore. So the easiest way is to use PNGs, if you can live with raster graphics.

    Alternatively, if you need vector graphics, you can export the Matplotlib plot as SVG and convert it to WMF or EMF using
    Inkscape. This can be done in the command line like this:

    "c:\Program Files\Inkscape-0.48\inkscape.exe" --without-gui --export-emf="output.emf" "input.svg"

      Juergen

    Am 21.04.2014 13 <tel:21.04.2014%2013>:06, schrieb Neal Becker:
    > Make sure to save into a vector graphic format so it can be resized. Try pdf or
    > svg (don't know if M$ supports svg though)
    >
    > Paul Hobson wrote:
    >
    >> Sorry hit send by accident?
    >>
    >> What parameters are you passing to `savefig`?
    >>
    >> For a presentation, I would save as a .png file, a higher resolution and a
    >> transparent background. e.g.:
    >>
    >> fig.savefig('myfig.png', dpi=600, bbox_inches='ticht', transparent=True)
    >>
    >>
    >> On Sun, Apr 20, 2014 at 10:24 PM, Paul Hobson > >> <pmhobson@…287… <mailto:pmhobson@…287…>> wrote:
    >>
    >>> What parameters are you passing to `savefig`?
    >>>
    >>>
    >>> On Sat, Apr 19, 2014 at 1:13 PM, Chao YUE > >>> <chaoyuejoy@…287… <mailto:chaoyuejoy@…287…>> wrote:
    >>>
    >>>> Dear all,
    >>>>
    >>>> Did anyone try to make plots using matplotlib, and then put the figure in
    >>>> the powerpoint for presentation? Currently I am using the ipython notebook
    >>>> --pylab mode to make the plots, and then save them to *jpg format. But when
    >>>> I put it into the powerpoint, it does not look nice as I see on the screen
    >>>> (a little bit blurred). You can really not notice it if you don't examine
    >>>> carefully. But I really want to make high quality slides. So does anyone
    >>>> have the same problem? could it be related with the figure format or
    >>>> backend (GTKAgg) currently I am uisng? thanks a lot in advance.
    >>>>
    >>>> Cheers,
    >>>>
    >>>> Chao
    >>>>
    >>>> –
    >>>> please visit:
    >>>> http://www.globalcarbonatlas.org/
    >>>>
    >>>>
    > ***********************************************************************************
    >>>> Chao YUE
    >>>> Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL)
    >>>> UMR 1572 CEA-CNRS-UVSQ
    >>>> Batiment 712 - Pe 119
    >>>> 91191 GIF Sur YVETTE Cedex
    >>>> Tel: (33) 01 69 08 29 02; Fax:01.69.08.77.16
    >>>>
    >>>>
    > ************************************************************************************
    >>>>
    >>>>
    >>>>
    > ------------------------------------------------------------------------------
    >>>> Learn Graph Databases - Download FREE O'Reilly Book
    >>>> "Graph Databases" is the definitive new guide to graph databases and their
    >>>> applications. Written by three acclaimed leaders in the field,
    >>>> this first edition is now available. Download your free book today!
    >>>> http://p.sf.net/sfu/NeoTech
    >>>> _______________________________________________
    >>>> Matplotlib-users mailing list
    >>>> Matplotlib-users@lists.sourceforge.net <mailto:Matplotlib-users@lists.sourceforge.net>
    >>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
    >>>>
    >>>>
    >>>
    >
    >
    >
    > ------------------------------------------------------------------------------
    > Start Your Social Network Today - Download eXo Platform
    > Build your Enterprise Intranet with eXo Platform Software
    > Java Based Open Source Intranet - Social, Extensible, Cloud Ready
    > Get Started Now And Turn Your Intranet Into A Collaboration Platform
    > http://p.sf.net/sfu/ExoPlatform
    > _______________________________________________
    > Matplotlib-users mailing list
    > Matplotlib-users@lists.sourceforge.net <mailto:Matplotlib-users@lists.sourceforge.net>
    > https://lists.sourceforge.net/lists/listinfo/matplotlib-users
    >

    ------------------------------------------------------------------------------
    Start Your Social Network Today - Download eXo Platform
    Build your Enterprise Intranet with eXo Platform Software
    Java Based Open Source Intranet - Social, Extensible, Cloud Ready
    Get Started Now And Turn Your Intranet Into A Collaboration Platform
    http://p.sf.net/sfu/ExoPlatform
    _______________________________________________
    Matplotlib-users mailing list
    Matplotlib-users@lists.sourceforge.net <mailto:Matplotlib-users@lists.sourceforge.net>
    https://lists.sourceforge.net/lists/listinfo/matplotlib-users