[Matplotlib-users] checking if an artist is in the list of artists for an axes

2014-04-21 Thread Michael Mossey
How do I check if an artist is in the list of artists attached to an axes?

Mike
--
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


Re: [Matplotlib-users] detect mouse clicks

2014-04-21 Thread Michael Mossey
Further update: I think I know how to do this. I can register a mouse event
handler, and its xdata and ydata properties will tell me the data
coordinates.


On Mon, Apr 21, 2014 at 4:17 PM, Michael Mossey wrote:

> 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 
> 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
>>
>>
>
--
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


Re: [Matplotlib-users] Make clear figure used in the powerpoint slides?

2014-04-21 Thread Mike Kaufman
Why not save to PDF? Drops straight into Powerpoint...

M

On 4/21/14, 4:50 PM, ChaoYue 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
>
>


--
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


Re: [Matplotlib-users] detect mouse clicks

2014-04-21 Thread Michael Mossey
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 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
>
>
--
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


[Matplotlib-users] detect mouse clicks

2014-04-21 Thread Michael Mossey
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
--
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


Re: [Matplotlib-users] Make clear figure used in the powerpoint slides?

2014-04-21 Thread Chao YUE
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  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  wrote:
>
>> Did you set the dpi of the png?
>>
>> Cheers,  Jody
>>
>>
>> On Apr 21, 2014, at  13:50 PM, ChaoYue  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: 
> +16174967981" target="_blank">(617) 496-7981   Cambridge, MA
> 02138-1516
> fax: 
> +16174967577" target="_blank">(617) 496-7577USA
> 
>
>
> --
>
> 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

Re: [Matplotlib-users] Make clear figure used in the powerpoint slides?

2014-04-21 Thread Chao YUE
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  wrote:

> Did you set the dpi of the png?
>
> Cheers,  Jody
>
>
> On Apr 21, 2014, at  13:50 PM, ChaoYue  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: 
 +16174967981" target="_blank">(617) 496-7981   Cambridge, MA
 02138-1516
 fax: 
 +16174967577" target="_blank">(617) 496-7577USA
 


 --

 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

Re: [Matplotlib-users] Make clear figure used in the powerpoint slides?

2014-04-21 Thread Jody Klymak
Did you set the dpi of the png?

Cheers,  Jody


On Apr 21, 2014, at  13:50 PM, ChaoYue  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:  value="+16174967981" target="_blank">+16174967981" target="_blank">(617) 
> 496-7981   Cambridge, MA 02138-1516
> fax:  value="+16174967577" target="_blank">+16174967577" target="_blank">(617) 
> 496-7577USA
> 
> 
> 
> --
>  
> 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

Re: [Matplotlib-users] Make clear figure used in the powerpoint slides?

2014-04-21 Thread ChaoYue
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-node+s1069221n43265...@n5.nabble.com> 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: >> target="_blank">(617) 496-7981   Cambridge, MA 02138-1516
>>> fax: >> target="_blank">(617) 496-7577USA
>>> 
>>>
>>>
>>> --
>>>
>>> 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 m

Re: [Matplotlib-users] Make clear figure used in the powerpoint slides?

2014-04-21 Thread Benjamin Root
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  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: (617) 496-7981   Cambridge, MA 02138-1516
>> fax: (617) 496-7577USA
>> 
>>
>>
>> --
>>
>> 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 
> archiveat 
> 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
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/m

Re: [Matplotlib-users] Make clear figure used in the powerpoint slides?

2014-04-21 Thread ChaoYue
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-node+s1069221n43262...@n5.nabble.com> 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: (617) 496-7981   Cambridge, MA 02138-1516
> fax: (617) 496-7577USA
> 
>
>
> --
>
> 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
> ml-node+s1069221n...@n5.nabble.com
> 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: 
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.--
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


Re: [Matplotlib-users] Make clear figure used in the powerpoint slides?

2014-04-21 Thread Slavin, Jonathan
​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, <
matplotlib-users-requ...@lists.sourceforge.net> 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
jsla...@cfa.harvard.edu   60 Garden Street, MS 83
phone: (617) 496-7981   Cambridge, MA 02138-1516
fax: (617) 496-7577USA

--
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


Re: [Matplotlib-users] Make clear figure used in the powerpoint slides?

2014-04-21 Thread Juergen Hasch

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  > 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
> >> mailto:pmhob...@gmail.com>> wrote:
> >>
> >>> What parameters are you passing to `savefig`?
> >>>
> >>>
> >>> On Sat, Apr 19, 2014 at 1:13 PM, Chao YUE
> >>> mailto:chaoyue...@gmail.com>> 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 
> 

Re: [Matplotlib-users] Make clear figure used in the powerpoint slides?

2014-04-21 Thread 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  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
> >>  wrote:
> >>
> >>> What parameters are you passing to `savefig`?
> >>>
> >>>
> >>> On Sat, Apr 19, 2014 at 1:13 PM, Chao YUE
> >>>  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
>
--
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 

Re: [Matplotlib-users] Make clear figure used in the powerpoint slides?

2014-04-21 Thread Juergen Hasch

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
>>  wrote:
>>
>>> What parameters are you passing to `savefig`?
>>>
>>>
>>> On Sat, Apr 19, 2014 at 1:13 PM, Chao YUE
>>>  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


Re: [Matplotlib-users] Make clear figure used in the powerpoint slides?

2014-04-21 Thread 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
>  wrote:
> 
>> What parameters are you passing to `savefig`?
>>
>>
>> On Sat, Apr 19, 2014 at 1:13 PM, Chao YUE
>>  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