SourceForge logo
SourceForge logo
Menu

matplotlib-users — Discussion related to using matplotlib

You can subscribe to this list here.

2003 Jan
Feb
Mar
Apr
May
(3)
Jun
Jul
Aug
(12)
Sep
(12)
Oct
(56)
Nov
(65)
Dec
(37)
2004 Jan
(59)
Feb
(78)
Mar
(153)
Apr
(205)
May
(184)
Jun
(123)
Jul
(171)
Aug
(156)
Sep
(190)
Oct
(120)
Nov
(154)
Dec
(223)
2005 Jan
(184)
Feb
(267)
Mar
(214)
Apr
(286)
May
(320)
Jun
(299)
Jul
(348)
Aug
(283)
Sep
(355)
Oct
(293)
Nov
(232)
Dec
(203)
2006 Jan
(352)
Feb
(358)
Mar
(403)
Apr
(313)
May
(165)
Jun
(281)
Jul
(316)
Aug
(228)
Sep
(279)
Oct
(243)
Nov
(315)
Dec
(345)
2007 Jan
(260)
Feb
(323)
Mar
(340)
Apr
(319)
May
(290)
Jun
(296)
Jul
(221)
Aug
(292)
Sep
(242)
Oct
(248)
Nov
(242)
Dec
(332)
2008 Jan
(312)
Feb
(359)
Mar
(454)
Apr
(287)
May
(340)
Jun
(450)
Jul
(403)
Aug
(324)
Sep
(349)
Oct
(385)
Nov
(363)
Dec
(437)
2009 Jan
(500)
Feb
(301)
Mar
(409)
Apr
(486)
May
(545)
Jun
(391)
Jul
(518)
Aug
(497)
Sep
(492)
Oct
(429)
Nov
(357)
Dec
(310)
2010 Jan
(371)
Feb
(657)
Mar
(519)
Apr
(432)
May
(312)
Jun
(416)
Jul
(477)
Aug
(386)
Sep
(419)
Oct
(435)
Nov
(320)
Dec
(202)
2011 Jan
(321)
Feb
(413)
Mar
(299)
Apr
(215)
May
(284)
Jun
(203)
Jul
(207)
Aug
(314)
Sep
(321)
Oct
(259)
Nov
(347)
Dec
(209)
2012 Jan
(322)
Feb
(414)
Mar
(377)
Apr
(179)
May
(173)
Jun
(234)
Jul
(295)
Aug
(239)
Sep
(276)
Oct
(355)
Nov
(144)
Dec
(108)
2013 Jan
(170)
Feb
(89)
Mar
(204)
Apr
(133)
May
(142)
Jun
(89)
Jul
(160)
Aug
(180)
Sep
(69)
Oct
(136)
Nov
(83)
Dec
(32)
2014 Jan
(71)
Feb
(90)
Mar
(161)
Apr
(117)
May
(78)
Jun
(94)
Jul
(60)
Aug
(83)
Sep
(102)
Oct
(132)
Nov
(154)
Dec
(96)
2015 Jan
(45)
Feb
(138)
Mar
(176)
Apr
(132)
May
(119)
Jun
(124)
Jul
(77)
Aug
(31)
Sep
(34)
Oct
(22)
Nov
(23)
Dec
(9)
2016 Jan
(26)
Feb
(17)
Mar
(10)
Apr
(8)
May
(4)
Jun
(8)
Jul
(6)
Aug
(5)
Sep
(9)
Oct
(4)
Nov
Dec
2017 Jan
(5)
Feb
(7)
Mar
(1)
Apr
(5)
May
Jun
(3)
Jul
(6)
Aug
(1)
Sep
Oct
(2)
Nov
(1)
Dec
2018 Jan
Feb
Mar
Apr
(1)
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
2020 Jan
Feb
Mar
Apr
May
(1)
Jun
Jul
Aug
Sep
Oct
Nov
Dec
2025 Jan
(1)
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
S M T W T F S


1
(3)
2
3
(4)
4
(2)
5
6
(1)
7
(3)
8
(3)
9
(4)
10
(2)
11
(5)
12
(3)
13
14
(7)
15
(1)
16
(4)
17
(2)
18
(3)
19
(3)
20
(1)
21
(16)
22
(7)
23
(15)
24
25
(11)
26
27
28
(8)
29
(3)
30
(6)



Showing 16 results of 16

From: Michael M. <mic...@gm...> - 2014年04月21日 23:17:52
Note: I'm looking at the Picker examples now and one problem I see is that
I'm not asking the user to click on data points, but anywhere on the axes.
On Mon, Apr 21, 2014 at 3:49 PM, Michael Mossey <mic...@gm...>wrote:
> For my application which is a simple sound file editor written with
> matplotlib and PyQt4, I want to detect left and right clicks on the canvas.
> I need to know the data coordinates of the click (i.e., not where on the
> screen the click occurred, but what data point as defined by the axes it
> represents). How do I do this?
>
> Mike
>
>
From: Michael M. <mic...@gm...> - 2014年04月21日 22:49:08
For my application which is a simple sound file editor written with
matplotlib and PyQt4, I want to detect left and right clicks on the canvas.
I need to know the data coordinates of the click (i.e., not where on the
screen the click occurred, but what data point as defined by the axes it
represents). How do I do this?
Mike
From: Chao Y. <cha...@gm...> - 2014年04月21日 21:08:51
In fact I guess it could also be related with the display card of the PC I
am using. I find I have different quality on my two different laptops (one
with fedora and one with ubuntu). But it's getting too complicated ... I
don't want to got this far and so let us forget about this.
Cheers,
Chao
On Mon, Apr 21, 2014 at 11:03 PM, Chao YUE <cha...@gm...> wrote:
> Yes, in fact I set dpi as 1000, which is already very high. In fact I have
> another question, will there be any difference if I use the save button on
> the interactive plotting toolbar and use the command line
> figure.savefig('xx.png',dpi=1000)?
>
> Chao
>
>
> On Mon, Apr 21, 2014 at 10:59 PM, Jody Klymak <jk...@uv...> wrote:
>
>> Did you set the dpi of the png?
>>
>> Cheers, Jody
>>
>>
>> On Apr 21, 2014, at 13:50 PM, ChaoYue <cha...@gm...> wrote:
>>
>> OK, I tried but I don't really see the difference between jpg and png by
>> my eyes in the attached case, maybe for other more complicated plots there
>> will be real difference. Anyway, thanks to all for your nice discussions.
>> And, BTW, I tried >2 hours trying to find a way to convert svg to emf, but
>> now I konw :p
>>
>> Cheers,
>>
>> Chao
>>
>>
>> On Mon, Apr 21, 2014 at 9:49 PM, Benjamin Root-2 [via matplotlib] <[hidden
>> email]> wrote:
>>
>>> JPGs will *always* have "bit blur" as it is a lossy image format. PNGs
>>> would be a better bet.
>>>
>>> Ben Root
>>>
>>>
>>> On Mon, Apr 21, 2014 at 3:33 PM, ChaoYue <[hidden email]<http://user/SendEmail.jtp?type=node&node=43265&i=0>
>>> > wrote:
>>>
>>>> Hi all,
>>>>
>>>> Thank you all for your kind response. I am sorry, but none of these
>>>> solutions significantly improved the visual quality on microsoft powerpiont
>>>> 2007. Thought I didn't try eps. So probably l have to go with the current
>>>> quality.
>>>> here is a best case I have now:
>>>> https://www.dropbox.com/s/0uhjogalz92hssm/different_figure_example.pptx
>>>> You can still see the "a bit blur" everywhere (currently with jpg being
>>>> inserted directly). I didn't have better quality than this one by trying
>>>> the method as suggested by you. Let me know if I am raising too much high
>>>> demand for this.
>>>>
>>>> Cheers,
>>>>
>>>> Chao
>>>>
>>>>
>>>> On Mon, Apr 21, 2014 at 4:41 PM, Jonathan Slavin [via matplotlib] <[hidden
>>>> email] <http://user/SendEmail.jtp?type=node&node=43264&i=0>> wrote:
>>>>
>>>>> ​Another alternative, if a vector graphics format doesn't work, is to
>>>>> make your png figure large. Then when you shrink it down to fit in your
>>>>> slide, it should still have good resolution.
>>>>>
>>>>> Jon​
>>>>>
>>>>> On Mon, Apr 21, 2014 at 10:13 AM, <[hidden email]<http://user/SendEmail.jtp?type=node&node=43262&i=0>
>>>>> > 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
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> ________________________________________________________
>>>>> Jonathan D. Slavin Harvard-Smithsonian CfA
>>>>> [hidden email] <http://user/SendEmail.jtp?type=node&node=43262&i=1>
>>>>> 60 Garden Street, MS 83
>>>>> phone: <a href="tel:%28617%29%20496-7981" value="<a
>>>>> href="tel:%2B16174967981" value="+16174967981" target="_blank">
>>>>> +16174967981" target="_blank">(617) 496-7981 Cambridge, MA
>>>>> 02138-1516
>>>>> fax: <a href="tel:%28617%29%20496-7577" value="<a
>>>>> href="tel:%2B16174967577" value="+16174967577" target="_blank">
>>>>> +16174967577" target="_blank">(617) 496-7577 USA
>>>>> ________________________________________________________
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>>
>>>>> 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
>>>>> [hidden email] <http://user/SendEmail.jtp?type=node&node=43262&i=2>
>>>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>>>>
>>>>>
>>>>> ------------------------------
>>>>> If you reply to this email, your message will be added to the
>>>>> discussion below:
>>>>>
>>>>> http://matplotlib.1069221.n5.nabble.com/Make-clear-figure-used-in-the-powerpoint-slides-tp43252p43262.html
>>>>> To start a new topic under matplotlib - users, email [hidden email]<http://user/SendEmail.jtp?type=node&node=43264&i=1>
>>>>> To unsubscribe from matplotlib, click here.
>>>>> NAML<http://matplotlib.1069221.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> 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
>>>>
>>>> ************************************************************************************
>>>>
>>>> ------------------------------
>>>> View this message in context: Re: Make clear figure used in the
>>>> powerpoint slides?<http://matplotlib.1069221.n5.nabble.com/Make-clear-figure-used-in-the-powerpoint-slides-tp43252p43264.html>
>>>> Sent from the matplotlib - users mailing list archive<http://matplotlib.1069221.n5.nabble.com/matplotlib-users-f3.html>at
>>>> Nabble.com.
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> 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
>>>> [hidden email] <http://user/SendEmail.jtp?type=node&node=43265&i=1>
>>>> 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
>>> [hidden email] <http://user/SendEmail.jtp?type=node&node=43265&i=2>
>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>>
>>>
>>> ------------------------------
>>> If you reply to this email, your message will be added to the
>>> discussion below:
>>>
>>> http://matplotlib.1069221.n5.nabble.com/Make-clear-figure-used-in-the-powerpoint-slides-tp43252p43265.html
>>> To start a new topic under matplotlib - users, email [hidden email]
>>> To unsubscribe from matplotlib, click here.
>>> NAML<http://matplotlib.1069221.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>>>
>>
>>
>>
>> --
>> 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
>>
>> ************************************************************************************
>>
>> ------------------------------
>> View this message in context: Re: Make clear figure used in the
>> powerpoint slides?<http://matplotlib.1069221.n5.nabble.com/Make-clear-figure-used-in-the-powerpoint-slides-tp43252p43266.html>
>> Sent from the matplotlib - users mailing list archive<http://matplotlib.1069221.n5.nabble.com/matplotlib-users-f3.html>at
>> Nabble.com.
>>
>> ------------------------------------------------------------------------------
>> 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
>> Mat...@li...
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>
>>
>>
>
>
> --
> 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
>
> ************************************************************************************
>
-- 
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
************************************************************************************
From: Chao Y. <cha...@gm...> - 2014年04月21日 21:03:20
Yes, in fact I set dpi as 1000, which is already very high. In fact I have
another question, will there be any difference if I use the save button on
the interactive plotting toolbar and use the command line
figure.savefig('xx.png',dpi=1000)?
Chao
On Mon, Apr 21, 2014 at 10:59 PM, Jody Klymak <jk...@uv...> wrote:
> Did you set the dpi of the png?
>
> Cheers, Jody
>
>
> On Apr 21, 2014, at 13:50 PM, ChaoYue <cha...@gm...> wrote:
>
> OK, I tried but I don't really see the difference between jpg and png by
> my eyes in the attached case, maybe for other more complicated plots there
> will be real difference. Anyway, thanks to all for your nice discussions.
> And, BTW, I tried >2 hours trying to find a way to convert svg to emf, but
> now I konw :p
>
> Cheers,
>
> Chao
>
>
> On Mon, Apr 21, 2014 at 9:49 PM, Benjamin Root-2 [via matplotlib] <[hidden
> email]> wrote:
>
>> JPGs will *always* have "bit blur" as it is a lossy image format. PNGs
>> would be a better bet.
>>
>> Ben Root
>>
>>
>> On Mon, Apr 21, 2014 at 3:33 PM, ChaoYue <[hidden email]<http://user/SendEmail.jtp?type=node&node=43265&i=0>
>> > wrote:
>>
>>> Hi all,
>>>
>>> Thank you all for your kind response. I am sorry, but none of these
>>> solutions significantly improved the visual quality on microsoft powerpiont
>>> 2007. Thought I didn't try eps. So probably l have to go with the current
>>> quality.
>>> here is a best case I have now:
>>> https://www.dropbox.com/s/0uhjogalz92hssm/different_figure_example.pptx
>>> You can still see the "a bit blur" everywhere (currently with jpg being
>>> inserted directly). I didn't have better quality than this one by trying
>>> the method as suggested by you. Let me know if I am raising too much high
>>> demand for this.
>>>
>>> Cheers,
>>>
>>> Chao
>>>
>>>
>>> On Mon, Apr 21, 2014 at 4:41 PM, Jonathan Slavin [via matplotlib] <[hidden
>>> email] <http://user/SendEmail.jtp?type=node&node=43264&i=0>> wrote:
>>>
>>>> ​Another alternative, if a vector graphics format doesn't work, is to
>>>> make your png figure large. Then when you shrink it down to fit in your
>>>> slide, it should still have good resolution.
>>>>
>>>> Jon​
>>>>
>>>> On Mon, Apr 21, 2014 at 10:13 AM, <[hidden email]<http://user/SendEmail.jtp?type=node&node=43262&i=0>
>>>> > 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
>>>>>
>>>>
>>>>
>>>> --
>>>> ________________________________________________________
>>>> Jonathan D. Slavin Harvard-Smithsonian CfA
>>>> [hidden email] <http://user/SendEmail.jtp?type=node&node=43262&i=1>
>>>> 60 Garden Street, MS 83
>>>> phone: <a href="tel:%28617%29%20496-7981" value="<a
>>>> href="tel:%2B16174967981" value="+16174967981" target="_blank">
>>>> +16174967981" target="_blank">(617) 496-7981 Cambridge, MA
>>>> 02138-1516
>>>> fax: <a href="tel:%28617%29%20496-7577" value="<a
>>>> href="tel:%2B16174967577" value="+16174967577" target="_blank">
>>>> +16174967577" target="_blank">(617) 496-7577 USA
>>>> ________________________________________________________
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>>
>>>> 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
>>>> [hidden email] <http://user/SendEmail.jtp?type=node&node=43262&i=2>
>>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>>>
>>>>
>>>> ------------------------------
>>>> If you reply to this email, your message will be added to the
>>>> discussion below:
>>>>
>>>> http://matplotlib.1069221.n5.nabble.com/Make-clear-figure-used-in-the-powerpoint-slides-tp43252p43262.html
>>>> To start a new topic under matplotlib - users, email [hidden email]<http://user/SendEmail.jtp?type=node&node=43264&i=1>
>>>> To unsubscribe from matplotlib, click here.
>>>> NAML<http://matplotlib.1069221.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>>>>
>>>
>>>
>>>
>>> --
>>> 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
>>>
>>> ************************************************************************************
>>>
>>> ------------------------------
>>> View this message in context: Re: Make clear figure used in the
>>> powerpoint slides?<http://matplotlib.1069221.n5.nabble.com/Make-clear-figure-used-in-the-powerpoint-slides-tp43252p43264.html>
>>> Sent from the matplotlib - users mailing list archive<http://matplotlib.1069221.n5.nabble.com/matplotlib-users-f3.html>at
>>> Nabble.com.
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> 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
>>> [hidden email] <http://user/SendEmail.jtp?type=node&node=43265&i=1>
>>> 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
>> [hidden email] <http://user/SendEmail.jtp?type=node&node=43265&i=2>
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>
>>
>> ------------------------------
>> If you reply to this email, your message will be added to the
>> discussion below:
>>
>> http://matplotlib.1069221.n5.nabble.com/Make-clear-figure-used-in-the-powerpoint-slides-tp43252p43265.html
>> To start a new topic under matplotlib - users, email [hidden email]
>> To unsubscribe from matplotlib, click here.
>> NAML<http://matplotlib.1069221.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>>
>
>
>
> --
> 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
>
> ************************************************************************************
>
> ------------------------------
> View this message in context: Re: Make clear figure used in the
> powerpoint slides?<http://matplotlib.1069221.n5.nabble.com/Make-clear-figure-used-in-the-powerpoint-slides-tp43252p43266.html>
> Sent from the matplotlib - users mailing list archive<http://matplotlib.1069221.n5.nabble.com/matplotlib-users-f3.html>at
> Nabble.com.
>
> ------------------------------------------------------------------------------
> 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
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
>
-- 
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
************************************************************************************
From: Jody K. <jk...@uv...> - 2014年04月21日 20:59:39
Did you set the dpi of the png?
Cheers, Jody
On Apr 21, 2014, at 13:50 PM, ChaoYue <cha...@gm...> wrote:
> OK, I tried but I don't really see the difference between jpg and png by my eyes in the attached case, maybe for other more complicated plots there will be real difference. Anyway, thanks to all for your nice discussions. And, BTW, I tried >2 hours trying to find a way to convert svg to emf, but now I konw :p
> 
> Cheers,
> 
> Chao
> 
> 
> On Mon, Apr 21, 2014 at 9:49 PM, Benjamin Root-2 [via matplotlib] <[hidden email]> wrote:
> JPGs will *always* have "bit blur" as it is a lossy image format. PNGs would be a better bet.
> 
> Ben Root
> 
> 
> On Mon, Apr 21, 2014 at 3:33 PM, ChaoYue <[hidden email]> wrote:
> Hi all,
> 
> Thank you all for your kind response. I am sorry, but none of these solutions significantly improved the visual quality on microsoft powerpiont 2007. Thought I didn't try eps. So probably l have to go with the current quality. 
> here is a best case I have now: 
> https://www.dropbox.com/s/0uhjogalz92hssm/different_figure_example.pptx
> You can still see the "a bit blur" everywhere (currently with jpg being inserted directly). I didn't have better quality than this one by trying the method as suggested by you. Let me know if I am raising too much high demand for this.
> 
> Cheers,
> 
> Chao
> 
> 
> On Mon, Apr 21, 2014 at 4:41 PM, Jonathan Slavin [via matplotlib] <[hidden email]> wrote:
> ​Another alternative, if a vector graphics format doesn't work, is to make your png figure large. Then when you shrink it down to fit in your slide, it should still have good resolution.
> 
> Jon​
> 
> On Mon, Apr 21, 2014 at 10:13 AM, <[hidden email]> 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
> 
> 
> -- 
> ________________________________________________________
> Jonathan D. Slavin Harvard-Smithsonian CfA
> [hidden email] 60 Garden Street, MS 83
> phone: <a href="tel:%28617%29%20496-7981" value="<a href="tel:%2B16174967981" value="+16174967981" target="_blank">+16174967981" target="_blank">(617) 496-7981 Cambridge, MA 02138-1516
> fax: <a href="tel:%28617%29%20496-7577" value="<a href="tel:%2B16174967577" value="+16174967577" target="_blank">+16174967577" target="_blank">(617) 496-7577 USA
> ________________________________________________________
> 
> 
> ------------------------------------------------------------------------------ 
> 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 
> [hidden email] 
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> 
> 
> If you reply to this email, your message will be added to the discussion below:
> http://matplotlib.1069221.n5.nabble.com/Make-clear-figure-used-in-the-powerpoint-slides-tp43252p43262.html
> To start a new topic under matplotlib - users, email [hidden email] 
> To unsubscribe from matplotlib, click here.
> NAML
> 
> 
> 
> -- 
> 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
> ************************************************************************************
> 
> View this message in context: Re: Make clear figure used in the powerpoint slides?
> Sent from the matplotlib - users mailing list archive at Nabble.com.
> 
> ------------------------------------------------------------------------------
> 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
> [hidden email]
> 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 
> [hidden email] 
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> 
> 
> If you reply to this email, your message will be added to the discussion below:
> http://matplotlib.1069221.n5.nabble.com/Make-clear-figure-used-in-the-powerpoint-slides-tp43252p43265.html
> To start a new topic under matplotlib - users, email [hidden email] 
> To unsubscribe from matplotlib, click here.
> NAML
> 
> 
> 
> -- 
> 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
> ************************************************************************************
> 
> View this message in context: Re: Make clear figure used in the powerpoint slides?
> Sent from the matplotlib - users mailing list archive at Nabble.com.
> ------------------------------------------------------------------------------
> 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
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
From: ChaoYue <cha...@gm...> - 2014年04月21日 20:50:45
OK, I tried but I don't really see the difference between jpg and png by my
eyes in the attached case, maybe for other more complicated plots there
will be real difference. Anyway, thanks to all for your nice discussions.
And, BTW, I tried >2 hours trying to find a way to convert svg to emf, but
now I konw :p
Cheers,
Chao
On Mon, Apr 21, 2014 at 9:49 PM, Benjamin Root-2 [via matplotlib] <
ml-...@n5...> wrote:
> JPGs will *always* have "bit blur" as it is a lossy image format. PNGs
> would be a better bet.
>
> Ben Root
>
>
> On Mon, Apr 21, 2014 at 3:33 PM, ChaoYue <[hidden email]<http://user/SendEmail.jtp?type=node&node=43265&i=0>
> > wrote:
>
>> Hi all,
>>
>> Thank you all for your kind response. I am sorry, but none of these
>> solutions significantly improved the visual quality on microsoft powerpiont
>> 2007. Thought I didn't try eps. So probably l have to go with the current
>> quality.
>> here is a best case I have now:
>> https://www.dropbox.com/s/0uhjogalz92hssm/different_figure_example.pptx
>> You can still see the "a bit blur" everywhere (currently with jpg being
>> inserted directly). I didn't have better quality than this one by trying
>> the method as suggested by you. Let me know if I am raising too much high
>> demand for this.
>>
>> Cheers,
>>
>> Chao
>>
>>
>> On Mon, Apr 21, 2014 at 4:41 PM, Jonathan Slavin [via matplotlib] <[hidden
>> email] <http://user/SendEmail.jtp?type=node&node=43264&i=0>> wrote:
>>
>>> ​Another alternative, if a vector graphics format doesn't work, is to
>>> make your png figure large. Then when you shrink it down to fit in your
>>> slide, it should still have good resolution.
>>>
>>> Jon​
>>>
>>> On Mon, Apr 21, 2014 at 10:13 AM, <[hidden email]<http://user/SendEmail.jtp?type=node&node=43262&i=0>
>>> > 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
>>>>
>>>
>>>
>>> --
>>> ________________________________________________________
>>> Jonathan D. Slavin Harvard-Smithsonian CfA
>>> [hidden email] <http://user/SendEmail.jtp?type=node&node=43262&i=1>
>>> 60 Garden Street, MS 83
>>> phone: <a href="tel:%28617%29%20496-7981" value="+16174967981"
>>> target="_blank">(617) 496-7981 Cambridge, MA 02138-1516
>>> fax: <a href="tel:%28617%29%20496-7577" value="+16174967577"
>>> target="_blank">(617) 496-7577 USA
>>> ________________________________________________________
>>>
>>>
>>> ------------------------------------------------------------------------------
>>>
>>> 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
>>> [hidden email] <http://user/SendEmail.jtp?type=node&node=43262&i=2>
>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>>
>>>
>>> ------------------------------
>>> If you reply to this email, your message will be added to the
>>> discussion below:
>>>
>>> http://matplotlib.1069221.n5.nabble.com/Make-clear-figure-used-in-the-powerpoint-slides-tp43252p43262.html
>>> To start a new topic under matplotlib - users, email [hidden email]<http://user/SendEmail.jtp?type=node&node=43264&i=1>
>>> To unsubscribe from matplotlib, click here.
>>> NAML<http://matplotlib.1069221.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>>>
>>
>>
>>
>> --
>> 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
>>
>> ************************************************************************************
>>
>> ------------------------------
>> View this message in context: Re: Make clear figure used in the
>> powerpoint slides?<http://matplotlib.1069221.n5.nabble.com/Make-clear-figure-used-in-the-powerpoint-slides-tp43252p43264.html>
>> Sent from the matplotlib - users mailing list archive<http://matplotlib.1069221.n5.nabble.com/matplotlib-users-f3.html>at Nabble.com.
>>
>>
>> ------------------------------------------------------------------------------
>> 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
>> [hidden email] <http://user/SendEmail.jtp?type=node&node=43265&i=1>
>> 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
> [hidden email] <http://user/SendEmail.jtp?type=node&node=43265&i=2>
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://matplotlib.1069221.n5.nabble.com/Make-clear-figure-used-in-the-powerpoint-slides-tp43252p43265.html
> To start a new topic under matplotlib - users, email
> ml-...@n5...
> To unsubscribe from matplotlib, click here<http://matplotlib.1069221.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=2&code=Y2hhb3l1ZWpveUBnbWFpbC5jb218MnwxMzg1NzAzMzQx>
> .
> NAML<http://matplotlib.1069221.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
-- 
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
************************************************************************************
--
View this message in context: http://matplotlib.1069221.n5.nabble.com/Make-clear-figure-used-in-the-powerpoint-slides-tp43252p43266.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
From: Benjamin R. <ben...@ou...> - 2014年04月21日 19:48:44
JPGs will *always* have "bit blur" as it is a lossy image format. PNGs
would be a better bet.
Ben Root
On Mon, Apr 21, 2014 at 3:33 PM, ChaoYue <cha...@gm...> wrote:
> Hi all,
>
> Thank you all for your kind response. I am sorry, but none of these
> solutions significantly improved the visual quality on microsoft powerpiont
> 2007. Thought I didn't try eps. So probably l have to go with the current
> quality.
> here is a best case I have now:
> https://www.dropbox.com/s/0uhjogalz92hssm/different_figure_example.pptx
> You can still see the "a bit blur" everywhere (currently with jpg being
> inserted directly). I didn't have better quality than this one by trying
> the method as suggested by you. Let me know if I am raising too much high
> demand for this.
>
> Cheers,
>
> Chao
>
>
> On Mon, Apr 21, 2014 at 4:41 PM, Jonathan Slavin [via matplotlib] <[hidden
> email] <http://user/SendEmail.jtp?type=node&node=43264&i=0>> wrote:
>
>> ​Another alternative, if a vector graphics format doesn't work, is to
>> make your png figure large. Then when you shrink it down to fit in your
>> slide, it should still have good resolution.
>>
>> Jon​
>>
>> On Mon, Apr 21, 2014 at 10:13 AM, <[hidden email]<http://user/SendEmail.jtp?type=node&node=43262&i=0>
>> > 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
>>>
>>
>>
>> --
>> ________________________________________________________
>> Jonathan D. Slavin Harvard-Smithsonian CfA
>> [hidden email] <http://user/SendEmail.jtp?type=node&node=43262&i=1>
>> 60 Garden Street, MS 83
>> phone: (617) 496-7981 Cambridge, MA 02138-1516
>> fax: (617) 496-7577 USA
>> ________________________________________________________
>>
>>
>> ------------------------------------------------------------------------------
>>
>> 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
>> [hidden email] <http://user/SendEmail.jtp?type=node&node=43262&i=2>
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>
>>
>> ------------------------------
>> If you reply to this email, your message will be added to the
>> discussion below:
>>
>> http://matplotlib.1069221.n5.nabble.com/Make-clear-figure-used-in-the-powerpoint-slides-tp43252p43262.html
>> To start a new topic under matplotlib - users, email [hidden email]<http://user/SendEmail.jtp?type=node&node=43264&i=1>
>> To unsubscribe from matplotlib, click here.
>> NAML<http://matplotlib.1069221.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>>
>
>
>
> --
> 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
>
> ************************************************************************************
>
> ------------------------------
> View this message in context: Re: Make clear figure used in the
> powerpoint slides?<http://matplotlib.1069221.n5.nabble.com/Make-clear-figure-used-in-the-powerpoint-slides-tp43252p43264.html>
> Sent from the matplotlib - users mailing list archive<http://matplotlib.1069221.n5.nabble.com/matplotlib-users-f3.html>at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> 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
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
From: ChaoYue <cha...@gm...> - 2014年04月21日 19:33:34
Hi all,
Thank you all for your kind response. I am sorry, but none of these
solutions significantly improved the visual quality on microsoft powerpiont
2007. Thought I didn't try eps. So probably l have to go with the current
quality.
here is a best case I have now:
https://www.dropbox.com/s/0uhjogalz92hssm/different_figure_example.pptx
You can still see the "a bit blur" everywhere (currently with jpg being
inserted directly). I didn't have better quality than this one by trying
the method as suggested by you. Let me know if I am raising too much high
demand for this.
Cheers,
Chao
On Mon, Apr 21, 2014 at 4:41 PM, Jonathan Slavin [via matplotlib] <
ml-...@n5...> wrote:
> ​Another alternative, if a vector graphics format doesn't work, is to make
> your png figure large. Then when you shrink it down to fit in your slide,
> it should still have good resolution.
>
> Jon​
>
> On Mon, Apr 21, 2014 at 10:13 AM, <[hidden email]<http://user/SendEmail.jtp?type=node&node=43262&i=0>
> > 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
>>
>
>
> --
> ________________________________________________________
> Jonathan D. Slavin Harvard-Smithsonian CfA
> [hidden email] <http://user/SendEmail.jtp?type=node&node=43262&i=1>
> 60 Garden Street, MS 83
> phone: (617) 496-7981 Cambridge, MA 02138-1516
> fax: (617) 496-7577 USA
> ________________________________________________________
>
>
> ------------------------------------------------------------------------------
>
> 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
> [hidden email] <http://user/SendEmail.jtp?type=node&node=43262&i=2>
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://matplotlib.1069221.n5.nabble.com/Make-clear-figure-used-in-the-powerpoint-slides-tp43252p43262.html
> To start a new topic under matplotlib - users, email
> ml-...@n5...
> To unsubscribe from matplotlib, click here<http://matplotlib.1069221.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=2&code=Y2hhb3l1ZWpveUBnbWFpbC5jb218MnwxMzg1NzAzMzQx>
> .
> NAML<http://matplotlib.1069221.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
-- 
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
************************************************************************************
--
View this message in context: http://matplotlib.1069221.n5.nabble.com/Make-clear-figure-used-in-the-powerpoint-slides-tp43252p43264.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
From: Slavin, J. <js...@cf...> - 2014年04月21日 14:40:24
​Another alternative, if a vector graphics format doesn't work, is to make
your png figure large. Then when you shrink it down to fit in your slide,
it should still have good resolution.
Jon​
On Mon, Apr 21, 2014 at 10:13 AM, <
mat...@li...> 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
>
-- 
________________________________________________________
Jonathan D. Slavin Harvard-Smithsonian CfA
js...@cf... 60 Garden Street, MS 83
phone: (617) 496-7981 Cambridge, MA 02138-1516
fax: (617) 496-7577 USA
________________________________________________________
From: Juergen H. <py...@el...> - 2014年04月21日 14:13:31
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 <py...@el... <mailto:py...@el...>> 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
> >> <pmh...@gm... <mailto:pmh...@gm...>> wrote:
> >>
> >>> What parameters are you passing to `savefig`?
> >>>
> >>>
> >>> On Sat, Apr 19, 2014 at 1:13 PM, Chao YUE
> >>> <cha...@gm... <mailto:cha...@gm...>> 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
> >>>> Mat...@li... <mailto:Mat...@li...>
> >>>> 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
> > Mat...@li... <mailto:Mat...@li...>
> > 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
> Mat...@li... <mailto:Mat...@li...>
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> 
> 
From: Benjamin R. <ben...@ou...> - 2014年04月21日 13:39:14
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 <py...@el...> 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
> >> <pmh...@gm...> wrote:
> >>
> >>> What parameters are you passing to `savefig`?
> >>>
> >>>
> >>> On Sat, Apr 19, 2014 at 1:13 PM, Chao YUE
> >>> <cha...@gm...> 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
> >>>> Mat...@li...
> >>>> 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
> > Mat...@li...
> > 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
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
From: Juergen H. <py...@el...> - 2014年04月21日 11:47:36
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
>> <pmh...@gm...> wrote:
>>
>>> What parameters are you passing to `savefig`?
>>>
>>>
>>> On Sat, Apr 19, 2014 at 1:13 PM, Chao YUE
>>> <cha...@gm...> 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
>>>> Mat...@li...
>>>> 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
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> 
From: Neal B. <ndb...@gm...> - 2014年04月21日 11:07:13
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
> <pmh...@gm...> wrote:
> 
>> What parameters are you passing to `savefig`?
>>
>>
>> On Sat, Apr 19, 2014 at 1:13 PM, Chao YUE
>> <cha...@gm...> 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
>>> Mat...@li...
>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>>
>>>
>>
From: Paul H. <pmh...@gm...> - 2014年04月21日 05:26:40
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 <pmh...@gm...> wrote:
> What parameters are you passing to `savefig`?
>
>
> On Sat, Apr 19, 2014 at 1:13 PM, Chao YUE <cha...@gm...> 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
>> Mat...@li...
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>
>>
>
From: Paul H. <pmh...@gm...> - 2014年04月21日 05:24:57
What parameters are you passing to `savefig`?
On Sat, Apr 19, 2014 at 1:13 PM, Chao YUE <cha...@gm...> 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
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
From: Eric F. <ef...@ha...> - 2014年04月21日 01:25:23
On 2014年04月17日 11:07 AM, Elden Crom wrote:
>
> matplotlib is impressive in its capabilities, I didn't realize how much so
> until I download from the git, and made a little script to run all of the
> examples.
>
Thank you.
It's hidden away, but a script to do this type of thing exists. For a 
long time it was effectively our testing mechanism--run all the examples 
and scan the results to see if they looked right. It is 
examples/tests/backend_driver.py.
Eric
> I'm way too much of a newbie here to check anything in, but I thought
> someone may find this trinket useful. As written, it should be in the
> 'matplotlib/examples' directory named 'runAll.py', if someone is so inclined
> to check it in. Feel free to edit or eviscerate it or whatever.
>
> --------------------------------------------------
> #!/usr/bin/python
> ###############################################################################
> ##
> ## REVISION HISTORY
> ## Date Name SCR# Description
> ## -------- ------------ ------
> --------------------------------------------
> ## 2014年04月17日 Elden Crom N#A Initial Release
> ###############################################################################
>
> import subprocess, os
>
> ###To make the demos work that needed sample data I had to
> ### 'cp /etc/matplotlibrc ~/.matplotlib/' and edit the examples.directory
> ### entry to not have the extra tick marks ie
> ### """examples.directory : /usr/share/matplotlib/sampledata"""
> ### but I think this was because of a version issue....
>
> dirs = [root for root, dir, files in os.walk(".")]
> #dirs = ['./showcase', './widgets'] #to only run a directory or two
>
> excluded = ['./runAll.py','./tests/backend_driver.py']
> def myfilter(d,f):
> fpth = os.path.join(d,f)
> return (os.path.isfile(fpth) and
> f.endswith('.py') and
> not fpth in excluded)
> pyfiles =[]
> for d in dirs:
> pyfiles.extend([ (d,f) for f in os.listdir(d) if myfilter(d,f) ])
>
> #there are over 400 examples in the git repository
> #[git clone git://github.com/matplotlib/matplotlib.git]/matplotlib/examples
> #so you might not want to see them all in one setting!
> #pyfiles=pyfiles[100+100:]
>
> for i,(d,f) in enumerate(pyfiles):
> print "--------------------Executing 'python %s'------------------(%d of
> %d)--"%(os.path.join(d,f),i,len(pyfiles))
> subprocess.Popen(["python", f],cwd=d).wait()
>
>
>
>
>
>
>
> ------------------------------------------------------------------------------
> 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
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>

Showing 16 results of 16

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /