[Matplotlib-users] Output to any vector format openoffice can use

2009-12-01 Thread marcusantonius
I am searching a way, so that I can insert my matplotlib graphs as vector data in openoffice. I make colormaps using pcolorfast. If I save the figure as emf, the colormap inside the axes vanishes, because the normal emf backend cannot include rasterized data. Is there any way (e.g. using a

[Matplotlib-users] Computing Simple Statistics from a Histogram

2009-12-01 Thread Wayne Watson
Is there some statistics function that computes the mean, std. dev., min/max, etc. from a frequency distribution? -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz Site: 39° 15' 7 N, 121°

Re: [Matplotlib-users] font rendering quality

2009-12-01 Thread Darren Dale
On Tue, Dec 1, 2009 at 6:37 AM, Ernest Adrogué eadro...@gmx.net wrote: 30/11/09 @ 22:28 (-0600), thus spake John Hunter: The two examples in the page you link to have different font sizes and possibly different font weights, which makes it difficult to do side-by-side comparisons.  Could you

Re: [Matplotlib-users] Computing Simple Statistics from a Histogram

2009-12-01 Thread John Hunter
On Tue, Dec 1, 2009 at 6:32 AM, Wayne Watson sierra_mtnv...@sbcglobal.net wrote: Is there some statistics function that computes the mean, std. dev., min/max, etc. from a frequency distribution? numpy has many functions for basic descriptive statistics. If data is an array of your data, you

Re: [Matplotlib-users] font rendering quality

2009-12-01 Thread Michael Droettboom
Subpixel rendering is almost never what you want when producing a PNG file, since it is likely to be shared on a different machine requiring different subpixel settings. But it looks like your mozilla example is not using subpixel rendering either, though it appears to have very strong

[Matplotlib-users] Draggable and resizeable rectangle example

2009-12-01 Thread Jorge Scandaliaris
Hi, I just had to label a sequence of images with the position and scale of a moving object. To do this I took the nice example from http://matplotlib.sourceforge.net/users/event_handling.html (the one using blitting) and extended to be resizeable. The extension is trivial, but it might be useful

[Matplotlib-users] Extending patches.Rectangle class

2009-12-01 Thread Jorge Scandaliaris
Hi, How difficult would be to extend the Rectangle class so besides its permimeter it draws lines showing halfs or thirds of the width and height? I use rectangle to mark the locations of moving objects in sequences of images, and such lines would make the job easier. Thanks, Jorge

Re: [Matplotlib-users] Bliting speed improvment patch (QT4Agg backend) + example of sliding demo

2009-12-01 Thread Darren Dale
On Mon, Nov 30, 2009 at 7:01 PM, Laurent Dufrechou laurent.dufrec...@gmail.com wrote: Hi there, Finally with lot of try I've finally managed to make blitting of a cmap working. I've also patched QT4agg backend, to make a redraw immediately. (replaced self.draw by self.repaint) In my current

[Matplotlib-users] metadata of png-files

2009-12-01 Thread Marius Jan Klein
Thanks for your help concerning the pdf files! It was exactly what I was looking for. Is there anything similar for png-files? Marius Jan Klein mjk...@ny... writes: I want to edit the metadata of pdf- or png-files when creating one of these files. I do not want to use for example Pypdf

Re: [Matplotlib-users] Color in 3d plots

2009-12-01 Thread Michael (Mike) Alger
Sorry i was getting a bit frustrated by checking every day and seeing other problems getting solved relativly fast, again i understand its a big project, and i do appreciate your time, i hope i didn`t come off as a complete jerk. I figured since my suggested change would affect how others

Re: [Matplotlib-users] metadata of png-files

2009-12-01 Thread Michael Droettboom
The PNG writer in matplotlib doesn't support writing of extended metadata. However, it may be less useful anyway, as while you can put arbitrary key/value pairs in a PNG file, I don't believe there's any standards for what the keys should be, so there aren't many tools that use it. (If I'm

Re: [Matplotlib-users] Computing Simple Statistics from a Histogram

2009-12-01 Thread Wayne Watson
I do not believe that any of those calculations are based on the pdf, frequency of occurrence-histogram. This, (1, 2,2, 4, 2,5,4) and not this (1,3, 0,2,1). The latter are the frequencies of occurrence for 1,2,3,4,5. John Hunter wrote: On Tue, Dec 1, 2009 at 6:32 AM, Wayne Watson

Re: [Matplotlib-users] font rendering quality

2009-12-01 Thread Ernest Adrogué
1/12/09 @ 09:16 (-0500), thus spake Michael Droettboom: Subpixel rendering is almost never what you want when producing a PNG file, since it is likely to be shared on a different machine requiring different subpixel settings. But it looks like your mozilla example is not using subpixel