From: Jochen V. <vo...@se...> - 2004-11-11 13:15:08
|
Hello, I am very sorry about this, but I messed up the PS backend shortly before the release :-( While trying to move a block of code I duplicated it instead. The consequence is, that PostScript files generated with matplotlib 0.64 draw every bit of the figure twice. The output is still ok, but it is generated in an inefficient way. Luckily at least the huge PostScript fonts are only included once. The problem can be fixed with the following patch =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D diff -u -r1.10 backend_ps.py --- backend_ps.py 5 Nov 2004 11:05:14 -0000 1.10 +++ backend_ps.py 11 Nov 2004 13:08:43 -0000 @@ -585,16 +585,6 @@ =20 # write the figure print >>fh, renderer.get_ps() - origfacecolor =3D self.figure.get_facecolor() - origedgecolor =3D self.figure.get_edgecolor() - self.figure.set_facecolor(facecolor) - self.figure.set_edgecolor(edgecolor) - - renderer =3D RendererPS(width, height, fh) - self.figure.draw(renderer) - - self.figure.set_facecolor(origfacecolor) - self.figure.set_edgecolor(origedgecolor) =20 # write the trailer print >>fh, "grestore" =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Again, I am very sorry about this, Jochen --=20 http://seehuhn.de/ |
From: John H. <jdh...@ac...> - 2004-11-11 14:21:49
|
>>>>> "Jochen" == Jochen Voss <vo...@se...> writes: Jochen> Hello, I am very sorry about this, but I messed up the PS Jochen> backend shortly before the release :-( While trying to Jochen> move a block of code I duplicated it instead. The Jochen> consequence is, that PostScript files generated with Jochen> matplotlib 0.64 draw every bit of the figure twice. The Jochen> output is still ok, but it is generated in an inefficient Jochen> way. Jochen> Luckily at least the huge PostScript fonts are only Jochen> included once. Jochen> Again, I am very sorry about this, Jochen -- No worries, we're used to doing bug fix releases around here. Better that you caught it than some irate gnuplot user who comes around here complaining about matplotlib's PS file sizes :-) Just commit the patch and in a few days as we iron out any remaining bugs that are discovered I'll post a bug fix release. JDH |
From: Fernando P. <Fer...@co...> - 2004-11-11 16:53:56
|
John Hunter wrote: >>>>>>"Jochen" == Jochen Voss <vo...@se...> writes: > > > Jochen> Hello, I am very sorry about this, but I messed up the PS > Jochen> backend shortly before the release :-( While trying to [...] > No worries, we're used to doing bug fix releases around here. Better > that you caught it than some irate gnuplot user who comes around here > complaining about matplotlib's PS file sizes :-) hey! I was nice when I asked! ;) Best, f |
From: Jochen V. <vo...@se...> - 2004-11-11 15:34:05
|
Hello John, On Thu, Nov 11, 2004 at 08:12:00AM -0600, John Hunter wrote: > No worries, we're used to doing bug fix releases around here. Better > that you caught it than some irate gnuplot user who comes around here > complaining about matplotlib's PS file sizes :-) Well, everything is of course still dominated by the huge included fonts, so they will probably not notice ;-) Maybe I can start doing something about this during the week-end. Let's see ... > Just commit the patch and in a few days as we iron out any remaining > bugs that are discovered I'll post a bug fix release. The patch is already in CVS. I have another (more intrusive) patch ready, which strips down the PostScript file size even more by removing about 20 million gsave/grestore pairs per figure. I tried the backend_driver script and the patch seems to work. Can I also check this in, or should I be stabilising the PostScript backend at the moment? All the best, Jochen --=20 http://seehuhn.de/ |
From: John H. <jdh...@ac...> - 2004-11-11 15:40:23
|
>>>>> "Jochen" == Jochen Voss <vo...@se...> writes: Jochen> I have another (more intrusive) patch ready, which strips Jochen> down the PostScript file size even more by removing about Jochen> 20 million gsave/grestore pairs per figure. I tried the Jochen> backend_driver script and the patch seems to work. Can I Jochen> also check this in, or should I be stabilising the Jochen> PostScript backend at the moment? If it passes backend driver and appears logically correct to you, check it in. I added those 20 million pairs to be on the safe side when I wrote the PS backend, but was never very happy about them. JDH |
From: Jochen V. <vo...@se...> - 2004-11-12 15:44:55
|
Hello, On Thu, Nov 11, 2004 at 09:30:31AM -0600, John Hunter wrote: > >>>>> "Jochen" =3D=3D Jochen Voss <vo...@se...> writes: >=20 > Jochen> I have another (more intrusive) patch ready, which strips > Jochen> down the PostScript file size even more by removing about > Jochen> 20 million gsave/grestore pairs per figure. I tried the > Jochen> backend_driver script and the patch seems to work. Can I > Jochen> also check this in, or should I be stabilising the > Jochen> PostScript backend at the moment? >=20 > If it passes backend driver and appears logically correct to you, > check it in. I added those 20 million pairs to be on the safe side > when I wrote the PS backend, but was never very happy about them. I checked in the patch yesterday evening. The patch decreased the total size of the PostScript files generated by backend_driver.py from 37MB to 31MB. All the best, Jochen --=20 http://seehuhn.de/ |