[Matplotlib-users] Fwd: best format for MS word?

2009-09-02 Thread Scott Sinclair
Forgot to copy the list. -- Forwarded message -- From: Scott Sinclair scott.sinclair...@gmail.com Date: 2009/9/2 Subject: Re: [Matplotlib-users] best format for MS word? To: Shixin Zeng zeng.shi...@gmail.com 2009/9/2 Shixin Zeng zeng.shi...@gmail.com: Yes, the DPI i'm using

Re: [Matplotlib-users] best format for MS word?

2009-09-02 Thread Shixin Zeng
OK, I'm attaching a file that converts svg to emf, which is based on librsvg and cairo. I've spent the all night working on this, but the result is still not satisfying. The converted emf file is even worse than the png file produced from matplotlib. I'm not sure if it's because I did something

Re: [Matplotlib-users] best format for MS word?

2009-09-02 Thread Sebastian Pająk
I had similar problem try hi-res png images at 300dpi w/o transparency (ms cannot handle transp. png correctly). ms word shows png little blury, but after printing (to PDF for example) images are sharp as knife 2009/9/2 Shixin Zeng zeng.shi...@gmail.com: OK, I'm attaching a file that

[Matplotlib-users] User interface example malloc error and possible installation bug

2009-09-02 Thread Pim Schellart
Hi Everyone, I compiled the latest matplotlib against python 2.5.4 on OSX Leopard (Tcl/Tk 8.4 default installation from OSX). It complained about not finding the freetype headers but this was fixed by including /usr/local in the darwin list (which is by default empty?) in setupext.py. This might

Re: [Matplotlib-users] clipping and linewidth/circle radius

2009-09-02 Thread Michael Droettboom
jason-s...@creativetrax.com wrote: I'm trying to deal nicely with the clipping that happens when, for example, a line has data that is inside its clipping box, but the linewidth forces part of the line to be drawn outside of the clipping box. This is visible on the spine placement demo at

[Matplotlib-users] Segmentation fault with EPS output on matplotlib =0.98.5.2

2009-09-02 Thread Ewald Zietsman
Hi All, I'm trying to make a simple errorbar plot which gets saved to an EPS file. I paste the code below. For some weird reason, the savefig line causes a segmentation fault in ghostscript. when I use (in this case, on my computer) 206 points or more. It doesn't happen if I comment the

[Matplotlib-users] how to update plots fast

2009-09-02 Thread RazAlon
Hi, I wish to have several (about 3) plots which are updated about once per second, as part of some application that's monitoring an instrument. I set pyplot to interactive mode. I create as many figures as I need, and then I simply plot to them whenever I have new data coming in (each time I

[Matplotlib-users] Delete Line legend from graph using matplotlib wxPython

2009-09-02 Thread Sebastian Rhode
Hello, I wrote a little program to display the spectral data of varoius filters. Here is a part of the code: ... def openex(self, event): dlg = wx.FileDialog(self, Choose a Excitation Filter, os.getcwd(), , *.ex*, wx.OPEN) if dlg.ShowModal() == wx.ID_OK: pathex =

Re: [Matplotlib-users] how to update plots fast

2009-09-02 Thread Nicolas Bigaouette
Have you read these? http://www.scipy.org/Cookbook/Matplotlib/Animations http://matplotlib.sourceforge.net/examples/animation/index.html?highlight=animation What I normally do is plot everything (forget about interactive mode, its just too slow) and get handles to curves, then update the curves

Re: [Matplotlib-users] best format for MS word?

2009-09-02 Thread Gary Ruben
I haven't tried it myself, but this converter may do the trick. If it works, can you report back? I'd be interested to know: http://sk1project.org/modules.php?name=Productsproduct=uniconvertor Gary R. Shixin Zeng wrote: Hi, Could someone tell me what's the best format that matplotlib can

Re: [Matplotlib-users] best format for MS word?

2009-09-02 Thread Christopher Barker
MS simply doesn't lay well with open vector formats, I think PNG with the right DPI, etc is still probably your best bet. Shixin Zeng wrote: I'm attaching a file that converts svg to emf, which is based on librsvg and cairo. I've spent the all night working on this, but the result is still

Re: [Matplotlib-users] clipping and linewidth/circle radius

2009-09-02 Thread jason-sage
Michael Droettboom wrote: jason-s...@creativetrax.com wrote: I'm trying to deal nicely with the clipping that happens when, for example, a line has data that is inside its clipping box, but the linewidth forces part of the line to be drawn outside of the clipping box. This is visible on

Re: [Matplotlib-users] best format for MS word?

2009-09-02 Thread Shixin Zeng
No, I'm not scaling it down actually, I use the exact size matplotlib produces. So this is not a problem about scaling. Best Regards Shixin Zeng On Wed, Sep 2, 2009 at 11:35 AM, Chip Webberchipweb...@gmail.com wrote: If Word has problems scaling down the png image for viewing maybe you could

Re: [Matplotlib-users] Piecewise Cubic Hermite Interpolating Polynomial in python

2009-09-02 Thread Christopher Barker
Chris Michalski wrote: Thanks for the inputs... perhaps it will provide the impetus for future postings as well... I think this would be a great addition to scipy.interpolate. I encourage you to massage your code to fit the API and scipy standards and contribute it. -Chris --

Re: [Matplotlib-users] Delete Line legend from graph using matplotlib wxPython

2009-09-02 Thread Fabrice Silva
Le mercredi 02 septembre 2009 à 17:41 +0200, Sebastian Rhode a écrit : So I already figure out how to delete the last drawn line, but this is not a very good solution. What I actually would need, is a selection which line legend the users whats to remove from the graph (perfect would be

Re: [Matplotlib-users] best format for MS word?

2009-09-02 Thread Shixin Zeng
On Wed, Sep 2, 2009 at 11:43 AM, Christopher Barkerchris.bar...@noaa.gov wrote: MS simply doesn't lay well with open vector formats, I think PNG with the right DPI, etc is still probably your best bet. Yes, I think I have to stick to this option Shixin Zeng wrote: I'm attaching a file that

Re: [Matplotlib-users] best format for MS word?

2009-09-02 Thread Shixin Zeng
No, it doesn't work for me. Either it can't convert, or the quality is pretty low, there are some black blocks in the converted plot. Best Regards Shixin Zeng On Wed, Sep 2, 2009 at 8:30 AM, Gary Rubengru...@bigpond.net.au wrote: I haven't tried it myself, but this converter may do the

Re: [Matplotlib-users] best format for MS word?

2009-09-02 Thread Stan West
On Wed, Sep 2, 2009 at 11:43 AM, Christopher Barkerchris.bar...@noaa.gov wrote: MS simply doesn't lay well with open vector formats, I think PNG with the right DPI, etc is still probably your best bet. Yes, I think I have to stick to this option I agree; in my experience, a bitmap such

Re: [Matplotlib-users] Delete Line legend from graph using matplotlib wxPython

2009-09-02 Thread Jae-Joon Lee
On Wed, Sep 2, 2009 at 11:41 AM, Sebastian Rhodesebrh...@googlemail.com wrote: So I already figure out how to delete the last drawn line, but this is not a very good solution. What I actually would need, is a selection which line legend the users whats to remove from the graph (perfect would

[Matplotlib-users] Filling in missing samples by interpolating.

2009-09-02 Thread Ryan Neve
Hello, I've got many 1d arrays of data which contain occasional NaNs where there weren't any samples at that depth bin. Something like this... array([np.nan,1,2,3,np.nan,5,6,7,8,np.nan,np.nan,11,12,np.nan,np.nan,np.nan]) But much bigger, and I have hundreds of them. Most NaN's are isolated

Re: [Matplotlib-users] best format for MS word?

2009-09-02 Thread Marius 't Hart
Can't word handle eps files? In the WYSIWYG it will show the embedded preview as far as I recall, so the image will seem empty if their is no preview embedded or blurry if the preview is blurry. For printing however (including to pdf) it uses the vector version. Of course, eps can't handle

[Matplotlib-users] imshow and pcolor differences

2009-09-02 Thread Richard McMahon
Hello, I want to display some data as an image and also as a contour. I have been looking at imshow and pcolor and find that contour and imshow are behaving differently than pcolor. In the example below I have a 5x5 image. pshow displays the pixels but imshow and contour shows resampling

Re: [Matplotlib-users] best format for MS word?

2009-09-02 Thread Alan G Isaac
On 9/2/2009 4:11 PM Shixin Zeng apparently wrote: While for embeding eps files in word, I've just tried that. MS word 2007 seems to have some problem on this. See the attached eps file produced from matplotlib. In MS word 2007, the labels and titles of axes are gone, even on the printed

Re: [Matplotlib-users] imshow and pcolor differences

2009-09-02 Thread Ryan May
import numpy as np import matplotlib as mpl import matplotlib.pyplot as plt image = np.random.rand(5,5) plt.figure() plt.pcolor(image) plt.title('pcolor defaults') plt.figure() plt.imshow(image, origin='lower') plt.title('imshow defaults with origin=lower') plt.show() Is there a

Re: [Matplotlib-users] imshow and pcolor differences

2009-09-02 Thread Eric Firing
Richard McMahon wrote: Hello, I want to display some data as an image and also as a contour. I have been looking at imshow and pcolor and find that contour and imshow are behaving differently than pcolor. In the example below I have a 5x5 image. pshow displays the pixels but imshow and

Re: [Matplotlib-users] best format for MS word?

2009-09-02 Thread Stan West
-Original Message- From: Shixin Zeng [mailto:zeng.shi...@gmail.com] Sent: Wednesday, September 02, 2009 16:11 While for embeding eps files in word, I've just tried that. MS word 2007 seems to have some problem on this. See the attached eps file produced from matplotlib. In MS

[Matplotlib-users] Fwd: best format for MS word?

2009-09-02 Thread Shixin Zeng
Forgot CC list. Thanks for your helps. Best Regards Shixin Zeng -- Forwarded message -- From: Shixin Zeng zeng.shi...@gmail.com Date: Wed, Sep 2, 2009 at 11:02 PM Subject: Re: [Matplotlib-users] best format for MS word? To: Stan West stan.w...@nrl.navy.mil On Wed, Sep 2,