Re: [matplotlib-devel] Ticklabels in scientific notation comes out wrong in the pdf backend

2007-02-11 Thread Jouni K . Seppänen
Jörgen Stenarson <[EMAIL PROTECTED]> writes:

> Saving a semilogy plot using the [pdf] backend the exponents come
> out wrong.

This seems to have something to do with the caching in
Text._get_layout_super(). The first script below works right, the
second has the exponents all wrong.


#!/usr/bin/env python

import matplotlib
matplotlib.use('pdf')
from matplotlib import pylab

pylab.plot([0.001, 1, 10, 100, 1000])
pylab.gca().set_yscale('log')
pylab.savefig('foo1.pdf')

#!/usr/bin/env python

import matplotlib
matplotlib.use('agg')
from matplotlib import pylab

pylab.plot([0.001, 1, 10, 100, 1000])
pylab.gca().set_yscale('log')
pylab.savefig('foo2.pdf')


For some reason this doesn't happen with the eps backend, even though
it has flipy() == False, like pdf and unlike agg. Is there something
the pdf backend should do to reset the state of other objects when
switching to pdf from another backend?

> Looking at the source for the pdf-backend I also saw that it contains
> a mix of space and tabs for indentation.

Fixed in svn.

-- 
Jouni K. Seppänen
http://www.iki.fi/jks


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


[matplotlib-devel] Do you use python setup.py build_ext --inplace ?

2007-02-11 Thread Nicolas Grilly
Hello all,

When you are working on matplotlib, after a checkout from the SVN
repository, which method do you use to compile extensions without
re-building and re-installing everything each time?

For now, I use this method:
- I checkout matplotlib in directory c:\projects\matplotlib.
- I add c:\projects\matplotlib\lib to my PYTHONPATH.
- I use the command "python setup.py build_ext --inplace" each time I
modify a C/C++ file.
- Without anything else, I can use matplotlib in my scripts.

The problem:
This method builds smoothly my extensions (.pyd files) alongside my
Python files (.py files). But I have no directory
c:\projects\matplotlib\lib\matplotlib\mpl-data, like in a standard
installation. As a workaround, I've created it manually by copying
files from directory fonts and images.

My question:
Matplotlib's developers, how do you proceed on your own computer?

Thanks a lot for your answers,

Nicolas Grilly

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel