[Matplotlib-users] titles for legends

2008-02-04 Thread John Travers
Hello, I sometimes want to add titles to legends in matplotlib. I couldn't find an existing way to do this (but if there is one, then please tell me!). So I have hacked together a patch to add a title keyword to the legend class, which adds the title to the top of the legend. I'm not sure it confo

Re: [Matplotlib-users] STIX fonts outside of mathtext

2008-02-04 Thread John Travers
(or "Times New Roman"), so you could also use that > for titles/labels etc., but it doesn't really matter. > > Cheers, > Mike > > John Travers wrote: >> Hello, >> I'm very pleased with the STIX fonts support in mathtext. Thanks for >> getting t

[Matplotlib-users] STIX fonts outside of mathtext

2008-02-04 Thread John Travers
Hello, I'm very pleased with the STIX fonts support in mathtext. Thanks for getting this working! However, I would like to use the same font in labels which do not contain mathtext, for consistency. I cannot work out how to do this. Can anyone help with this? Thanks, John -

Re: [Matplotlib-users] problem with imshow and ps+xpdf backend

2007-10-16 Thread John Travers
On 16/10/2007, Darren Dale <[EMAIL PROTECTED]> wrote: > These reports almost always turn out to be a problem with one of the external > dependencies. I see no difference between the two results on my machine. > > pdftops-3.00 > GPL Ghostscript 8.60 > python-2.5.1 > svn mpl > Gentoo ~amd64 > You ar

[Matplotlib-users] problem with imshow and ps+xpdf backend

2007-10-16 Thread John Travers
Hi All, I have a problem with the output of the ps backend when I use the xpdf distiller rather than ghostscript and try to save a figure from imshow. When I run the script below I get a blue square with ghostscript (as expected), but grey dots and lines with xpdf. With non-image based plot command

Re: [Matplotlib-users] XPDF works but Ghostscript Doesn't for .eps

2007-08-20 Thread John Travers
On 20/08/07, Darren Dale <[EMAIL PROTECTED]> wrote: > On Monday 20 August 2007 12:11:30 pm Samuel M.Smith wrote: > > I can only generate .eps files that will successfully distill > > into .pdf files when I use > > > > ps.usedistiller : xpdf > > not > > ps.usedistiller : ghostscript > > nor > >

[Matplotlib-users] Error using ps2pdf on recent matplotlib svn

2007-07-16 Thread John Travers
-2.5.so b7f86000-b7f88000 rw-p 00019000 08:07 4 /lib/ld-2.5.so bf8b5000-bf8ca000 rw-p bf8b5000 00:00 0 [stack] e000-f000 r-xp 00:00 0 [vdso] Aborted (core dumped) My system has otherwise not changed. I am on ubuntu fiesty, python 2.5.1, gc

[Matplotlib-users] Problems with auto scaling with infinite values

2007-07-13 Thread John Travers
elf, but got quickly lost. If someone could point me at the files/functions I should look at I will have a go. Hope somebody can help! Best regards, John Travers - This SF.net email is sponsored by DB2 Express Download

[Matplotlib-users] Possible bug in annotate

2007-05-29 Thread John Travers
Hi all, I think there may be a bug in annotate. If I don't have any offset between the xcoord of xy and xytext I get a zero division error. Otherwise it is fine. For example: In [3]: plot([1,2,3],[1,2,3]) Out[3]: [] In [4]: annotate('hello', xy=(2.0,2.0), xytext=(2.0,1.5), arrowprops=dict(facecol

Re: [Matplotlib-users] matplotlib, math greek letters and latex

2007-03-13 Thread John Travers
On 13/03/07, Antonino Ingargiola <[EMAIL PROTECTED]> wrote: > On 3/13/07, John Travers <[EMAIL PROTECTED]> wrote: > > On 13/03/07, Antonino Ingargiola <[EMAIL PROTECTED]> wrote: > > > 1. This method works ok as far as I choose a unicode font with

Re: [Matplotlib-users] matplotlib, math greek letters and latex

2007-03-13 Thread John Travers
On 13/03/07, Antonino Ingargiola <[EMAIL PROTECTED]> wrote: > 1. This method works ok as far as I choose a unicode font with the > greek letters, for example: > > rcParams['font.serif'] = 'DejaVu Serif' > > However with unicode strings I'm not able to do exponent and deponent > text (i.e cm^-1)

[Matplotlib-users] plot 3D with filled curves

2007-02-13 Thread John Travers
Hi, I'm doing some simple 3d plots with matplotlib. So far I have used Axes3D.plot which works well. However, I would like to be able to either fill the curves, or at least hide lines which are 'behind' other curves. Can this be done? I don't think it should be hard to do given the other 3d routin

Re: [Matplotlib-users] Usability with matplotlib

2006-12-18 Thread John Travers
On 18/12/06, Simson Garfinkel <[EMAIL PROTECTED]> wrote: > It really depends on your audience as to whether or not 1,000,000 > through 9,000,000 is better displayed in scientific notation or not. > For audiences that I frequently present to, any scientific notation > is just unacceptable. You can a

Re: [Matplotlib-users] question about imshow

2006-12-12 Thread John Travers
On 12/12/06, Pierre GM <[EMAIL PROTECTED]> wrote: > On Tuesday 12 December 2006 06:57, John Travers wrote: > > Hi, I'm struggling to get an array plotted the way I want with imshow. > > I have an array A which i try to plot with > > > > e=(tdims[0], tdims[-1

[Matplotlib-users] question about imshow

2006-12-12 Thread John Travers
Hi, I'm struggling to get an array plotted the way I want with imshow. I have an array A which i try to plot with e=(tdims[0], tdims[-1], wldims[-1], wldims[0]) imshow(A,extent=e) The image displays fine in the x axis, with tdims marked correctly, but in the yaxis the dimensions are incorrect. An