[Matplotlib-users] Alter PNG bit depth in backend-agg

2007-10-29 Thread Peter Butler
I'm using the AGG backend to output graphs as PNG files, but I have had users complain that the resulting files are too large (the images are being served via a web server). The graphs are simple line graphs with less than 8 colours, so I'm trying to change src/_backend_agg.cpp to output a 4

Re: [Matplotlib-users] bug or problem in my configuration

2007-10-29 Thread Michael Droettboom
Forgot to attach the program. Michael Droettboom wrote: Nicolas, Darren, I have created a minimal program that hopefully will exercise the problem. If it breaks for either of you, I'll take this to the freetype mailing list for further clarification... If it doesn't break for you, my

Re: [Matplotlib-users] bug or problem in my configuration

2007-10-29 Thread Michael Droettboom
I should also mention -- please let me know if setting BROKEN to 0 fixes any rendering problems. Cheers, Mike Michael Droettboom wrote: Forgot to attach the program. Michael Droettboom wrote: Nicolas, Darren, I have created a minimal program that hopefully will exercise the problem.

Re: [Matplotlib-users] bug or problem in my configuration

2007-10-29 Thread Michael Droettboom
Thanks for that. You really downplayed the problems when BROKEN is 1. It seems to me that most of the glyphs are very bad -- the 'e', for instance, is filled in the middle. Darren Dale wrote: I think the problem is related to autohinting. When I compile freetype, the patented bytecode and

Re: [Matplotlib-users] bug or problem in my configuration

2007-10-29 Thread Michael Droettboom
Michael Droettboom wrote: Darren Dale wrote: I think the problem is related to autohinting. When I compile freetype, the patented bytecode and subpixel hinting support is disabled, I am using freetype's autohinting instead. I recompiled freetype with the support for the patented hinting

Re: [Matplotlib-users] bug or problem in my configuration

2007-10-29 Thread Darren Dale
On Monday 29 October 2007 10:09:21 am Michael Droettboom wrote: Michael Droettboom wrote: Darren Dale wrote: I think the problem is related to autohinting. When I compile freetype, the patented bytecode and subpixel hinting support is disabled, I am using freetype's autohinting instead. I

Re: [Matplotlib-users] bug or problem in my configuration

2007-10-29 Thread Darren Dale
On Monday 29 October 2007 10:45:22 am Michael Droettboom wrote: Darren Dale wrote: On Monday 29 October 2007 10:09:21 am Michael Droettboom wrote: Michael Droettboom wrote: Darren Dale wrote: I think the problem is related to autohinting. When I compile freetype, the patented bytecode

[Matplotlib-users] sub-plotting 10 into the window

2007-10-29 Thread nitriles
Hey, Ive got 10 strings of data that i plot into 1 big window, but somehow matplotlib gives me a very strange set-up. I am rather new to matplotlib and python so im kinda stuck now! heres an image of what i get and part of my code: http://www.nabble.com/file/p13290670/Bildschirmphoto1.png

[Matplotlib-users] (no subject)

2007-10-29 Thread Giorgio . Luciano
Dear all, is there the possiblity in matplolib to buind dendograms ? I've searched a bit bout found no examples of it it seems not implemented is there a plan for doing it ? Thanks in advance for all reply Giorgio- This

Re: [Matplotlib-users] sub-plotting 10 into the window

2007-10-29 Thread John Hunter
On 10/21/07, nitriles [EMAIL PROTECTED] wrote: Hey, Ive got 10 strings of data that i plot into 1 big window, but somehow matplotlib gives me a very strange set-up. I am rather new to matplotlib and python so im kinda stuck now! heres an image of what i get and part of my code:

Re: [Matplotlib-users] bug or problem in my configuration

2007-10-29 Thread humufr
Le Monday 29 October 2007 10:57:52 Darren Dale, vous avez écrit : On Monday 29 October 2007 10:45:22 am Michael Droettboom wrote: Darren Dale wrote: On Monday 29 October 2007 10:09:21 am Michael Droettboom wrote: Michael Droettboom wrote: Darren Dale wrote: I think the problem is

Re: [Matplotlib-users] 2 newbie questions: redraw plot and access to raw image buffer

2007-10-29 Thread Michael Droettboom
And the harder question. I need access to the address of the raw image buffer. (I assume this is a contiguous block of c-allocated memory?) Presently, I copy into a ctypes buffer but this slows things down significantly. Is there an alternative approach? I'm assuming you're using the Agg

Re: [Matplotlib-users] 2 newbie questions: redraw plot and access to raw image buffer

2007-10-29 Thread Antonino Ingargiola
Hi, 2007/10/29, Darran Edmundson [EMAIL PROTECTED]: I'm trying to generate plots as textures for use within a real-time graphics application (written using the pythonOgre graphics engine). I'm brand new to matplotlib so please bear with me. Two questions, one easy, one possibly hard. In

Re: [Matplotlib-users] 2 newbie questions: redraw plot and access to raw image buffer

2007-10-29 Thread Darran Edmundson
Michael Droettboom wrote: I'm assuming you're using the Agg backend. If so, you can get the raw memory wrapped in a Python buffer object as follows: figureCanvas.get_renderer().buffer_rgba(x, y) (where x, y is the upper left corner in the plot of the area you want to get.) It should be

[Matplotlib-users] Fwd: dendrograms

2007-10-29 Thread Angus McMorland
Sorry for the double sending, Giorgio. I got bitten by the Reply-To bug for this list. -- Forwarded message -- From: Angus McMorland [EMAIL PROTECTED] Date: 30 Oct 2007 09:27 Subject: Re: [Matplotlib-users] (no subject) To: [EMAIL PROTECTED] [EMAIL PROTECTED] On 23/10/2007,

[Matplotlib-users] setting manual axis range?

2007-10-29 Thread Darran Edmundson
Two simple questions: 1) How does one create a simple xy plot with a user-specified y-axis range? Combination of setting kwargs ylim and autoscale_on doesn't seem to do it ... 2) If I want to regenerate this plot with revised y data (but same axes), what is the quickest option? At the