Re: [Matplotlib-users] fiitting data

2007-05-17 Thread Christian K
darkside wrote: > > > Hello everyone: > My question is not only about matplotlib, but I wonder if I can do what > I want with some matplotlib subroutine, instead of the one for scipy. > I'm new using scipy, so I'm sorry if any of my questions are silly. > > I'm trying to find the maxima, absolut

[Matplotlib-users] Patch rotation and placement in normalised coords

2007-05-17 Thread Paul Smith
Hi List, I've been looking around for any info how one might go about rotating patches, such as Rectangles, by a user supplied angle. The transform module/affine class mention this but I'm struggling with how to actually use them this way (LazyValues?) and haven't found an example to illustrate it

[Matplotlib-users] Drawing lots of lines or polygons

2007-05-17 Thread Bill Baxter
I frequently find myself wanting to draw a bunch of disconnected line segments or polygons. Is there anything in matplotlib to facilitate that? I usually just end up writing a loop. Like: for s,e in izip(starts,ends): plot([s[0],e[0]], [s[1],e[1]], 'b-') Or if the starts and ends are

Re: [Matplotlib-users] Fwd: regarding changing line properties while plotting in python using matpolib libraries

2007-05-17 Thread Muhammad Ali
> what is the syntax for this line in matlab, h=line([x1,x2],[y1,y2]) in > python?. plot([x1, x2], [y1, y2]) Ali. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and ta

[Matplotlib-users] Fwd: regarding changing line properties while plotting in python using matpolib libraries

2007-05-17 Thread nitin ravinder
what is the syntax for this line in matlab, h=line([x1,x2],[y1,y2]) in python?. Note: forwarded message attached. - Pinpoint customers who are looking for what you sell. --- Begin Message --- Hello all, I have a problem in changing the line property of

Re: [Matplotlib-users] matplotlib import pylab problem (/usr/lib/libgdk-x11-2.0.so.0: undefined symbol: cairo_xlib_surface_create_for_bitmap)

2007-05-17 Thread Muhammad Ali
Ok, the problem is solved now. It seems that the problem was indeed that I had different versions of python's dependencies (libcairo and libpango) in the /usr/local/lib directory. Deleting those files from there solves the problem. Thanks, Ali. On 5/17/07, Muhammad Ali <[EMAIL PROTECTED]> wrote:

[Matplotlib-users] matplotlib import pylab problem (/usr/lib/libgdk-x11-2.0.so.0: undefined symbol: cairo_xlib_surface_create_for_bitmap)

2007-05-17 Thread Muhammad Ali
Hi, I have matplotlib installed and it runs properly. However, I also want to use pysqlite, and it seems that the only way to use pysqlite on my system is to first set LD_LIBRARY_PATH to /usr/loca/lib. But if I do this, then I am no longer able to make matplotlib work. Here is the traceback: $ ex

Re: [Matplotlib-users] using different font families with?LaTeX-generated text

2007-05-17 Thread Alexander Schmolck
Darren Dale <[EMAIL PROTECTED]> writes: > On Thursday 17 May 2007 10:08:06 am Alexander Schmolck wrote: >> "George Nurser" <[EMAIL PROTECTED]> writes: >> > I didn't realize that! >> > Apologies for being ignorant here. >> >> No worries, here's a concrete example for selecting Helvetica (and >> com

[Matplotlib-users] regarding changing line properties while plotting in python using matpolib libraries

2007-05-17 Thread nitin ravinder
Hello all, I have a problem in changing the line property of a line plot. I have to change the following script in MAtlab to one compatible with python. I am reading some csv file . clear all info=load('3.csv'); dup = 0; x = info(:,1); c = info(:,4); y_start = in

Re: [Matplotlib-users] using different font families with?LaTeX-generated text

2007-05-17 Thread Darren Dale
On Wednesday 16 May 2007 01:29:56 pm Alexander Schmolck wrote: > Darren Dale <[EMAIL PROTECTED]> writes: > > On Monday 14 May 2007 1:29:05 pm Alexander Schmolck wrote: > >> Darren Dale <[EMAIL PROTECTED]> writes: > >> I'd *really* like the ability to ``usepackage`` for various reasons and > >> it w

Re: [Matplotlib-users] using different font families with?LaTeX-generated text

2007-05-17 Thread Darren Dale
On Thursday 17 May 2007 10:08:06 am Alexander Schmolck wrote: > "George Nurser" <[EMAIL PROTECTED]> writes: > > I didn't realize that! > > Apologies for being ignorant here. > > No worries, here's a concrete example for selecting Helvetica (and > commented out, Palatino) as default fonts: > > f

Re: [Matplotlib-users] using different font families with?LaTeX-generated text

2007-05-17 Thread Alexander Schmolck
"George Nurser" <[EMAIL PROTECTED]> writes: > I didn't realize that! > Apologies for being ignorant here. > No worries, here's a concrete example for selecting Helvetica (and commented out, Palatino) as default fonts: from matplotlib.pylab import * from numpy import * #rc('font',**d

Re: [Matplotlib-users] using different font families with?LaTeX-generated text

2007-05-17 Thread George Nurser
I didn't realize that! Apologies for being ignorant here. -- George Nurser. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Jus

Re: [Matplotlib-users] using different font families with?LaTeX-generated text

2007-05-17 Thread Alexander Schmolck
"George Nurser" <[EMAIL PROTECTED]> writes: > Published figures will generally be embedded in text that is Times/ > Palatino etc. > Computer Modern doesn't look right inside such text. > > If it were possible to allow use of the other font packages, it would > be very useful. It already is, see e

Re: [Matplotlib-users] using different font families with?LaTeX-generated text

2007-05-17 Thread George Nurser
Published figures will generally be embedded in text that is Times/ Palatino etc. Computer Modern doesn't look right inside such text. If it were possible to allow use of the other font packages, it would be very useful. George Nurser.