[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 Date: Wed, Sep 2, 2009 at 11:02 PM Subject: Re: [Matplotlib-users] best format for MS word? To: Stan West On Wed, Sep 2, 2009 at 8:59 PM, Stan West wrote: >> -Ori

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

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

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(

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 ver

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 tran

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

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

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 Rhode 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 be > interactivly dir

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

2009-09-02 Thread Stan West
> On Wed, Sep 2, 2009 at 11:43 AM, Christopher Barker 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 as PNG at about

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 Ruben wrote: > I haven't tried it myself, but this converter may do the trick. If it works, > can

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

2009-09-02 Thread Shixin Zeng
On Wed, Sep 2, 2009 at 11:43 AM, Christopher Barker 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 converts svg to e

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 i

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

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 Webber wrote: > If Word has problems scaling down the png image for viewing maybe you could > try writing the i

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 visi

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] 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: Gary R. Shixin Zeng wrote: > Hi, > > Could someone tell me what's the best format that matplotlib c

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 va

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

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

Re: [Matplotlib-users] Histogram example doesn't run

2009-09-02 Thread Eric O LEBIGOT (EOL)
monoped wrote: > > Hi, > > being a complete newbie, I tried to run the simple_plot example from the > website with matplotlib-0.99.0. However, I get the error message: > > > Traceback (most recent call last): >File "simp

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

[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 "pl.rc('te

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

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 : > OK, > > I'm attaching a file that converts svg to emf, which