Patch for texmanager.py

Hi all,

The file texmanager.py up until matplotlib 0.83.2 throws an exception when the current directory is on a different filesystem from the .matplotlib/tex.cache directory:

OSError: [Errno 18] Invalid cross-device link

This patch helps:

124c124
< os.rename(dvibase, dvifile)

···

---
> shutil.move(dvibase, dvifile)

The shutil.move() is somewhat more robust than os.rename(). For more information see http://mail.python.org/pipermail/python-list/2005-February/266553.html and /266632.html.

Hi,

I haven't managed to get savefig to give correct results on the following (I
am using ps.papersize="A4")

subplot(211)
subplot(222)
#resize the window by mouse
savefig("t.ps",orientation="landscape")

If viewed in a e.g. "gv" the drawings extend past the "A4" page.

This behaviour seems only be present after resizing the figure window.

Cheers,
Malte.

I am not able to reproduce this behavior, unless I resize the window to make
the figure larger than A4 paper. That's not what you are talking about, is
it?

···

On Thursday 08 September 2005 1:55 am, Malte Marquarding wrote:

Hi,

I haven't managed to get savefig to give correct results on the following
(I am using ps.papersize="A4")

subplot(211)
subplot(222)
#resize the window by mouse
savefig("t.ps",orientation="landscape")

If viewed in a e.g. "gv" the drawings extend past the "A4" page.

This behaviour seems only be present after resizing the figure window.

--
Darren S. Dale

Bard Hall
Department of Materials Science and Engineering
Cornell University
Ithaca, NY. 14850

dd55@...143...
http://people.ccmr.cornell.edu/~dd55/

Yes, I’ve also seen the same problem and have been meaning to fix
it. I’ve not got time right now, but will look into it when I do.

– Paul

···

On 9/8/05, Malte Marquarding <Malte.Marquarding@…83…> wrote:

Hi,

I haven’t managed to get savefig to give correct results on the following (I
am using ps.papersize=“A4”)

subplot(211)
subplot(222)
#resize the window by mouse
savefig("
t.ps
",orientation=“landscape”)

If viewed in a e.g. “gv” the drawings extend past the “A4” page.

This behaviour seems only be present after resizing the figure window.

Cheers,
Malte.


SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices

Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf


Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel