Screenshot instructions:
Windows
Mac
Red Hat Linux
Ubuntu
Click URL instructions:
Rightclick on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)
From: Andrew Dawson <ajdatm@gm...>  20121031 16:20:33

From: Nicolas Rougier <Nicolas.Rougier@in...>  20121031 16:29:28

I confirm on 1.2.x. on OSX 10.7.5. Nicolas On Oct 31, 2012, at 17:20 , Andrew Dawson wrote: > Hi all, > > I just noticed that colorbar edges are drawn in white when output in PDF and black when output in PNG. A small test script is attached along with the output to show the difference. > > I'd be interested in knowing if others can reproduce this? I'm using mpl1.3.x (updated 5 minutes ago) on 64bit Ubuntu 12.04. > > Cheers, > Andrew > <bug.py><test.png><test.pdf> > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_sfd2d_oct_______________________________________________ > Matplotlibdevel mailing list > Matplotlibdevel@... > https://lists.sourceforge.net/lists/listinfo/matplotlibdevel 
From: Andrew Dawson <ajdatm@gm...>  20121101 09:54:28
Attachments:
Message as HTML

I used git bisect to work out where this first happens and it says https://github.com/matplotlib/matplotlib/commit/4dd3de1b580ac0d7dc53bcca396ba1bf25a8eea9is the first bad commit. This commit does make changes to the PDF backend so it seems feasible. Unfortunately I don't know the backend code so this is currently out of my depth... Perhaps Michael could weigh in on this? Or others familiar with backend workings? Andrew On 31 October 2012 16:29, Nicolas Rougier <Nicolas.Rougier@...> wrote: > > I confirm on 1.2.x. on OSX 10.7.5. > > Nicolas > > > On Oct 31, 2012, at 17:20 , Andrew Dawson wrote: > > > Hi all, > > > > I just noticed that colorbar edges are drawn in white when output in PDF > and black when output in PNG. A small test script is attached along with > the output to show the difference. > > > > I'd be interested in knowing if others can reproduce this? I'm using > mpl1.3.x (updated 5 minutes ago) on 64bit Ubuntu 12.04. > > > > Cheers, > > Andrew > > > <bug.py><test.png><test.pdf> > > Everyone hates slow websites. So do we. > > Make your web apps faster with AppDynamics > > Download AppDynamics Lite for free today: > > > http://p.sf.net/sfu/appdyn_sfd2d_oct_______________________________________________ > > Matplotlibdevel mailing list > > Matplotlibdevel@... > > https://lists.sourceforge.net/lists/listinfo/matplotlibdevel > > 
From: Michael Droettboom <mdroe@st...>  20121101 13:06:36
Attachments:
Message as HTML

I've filed an issue for this here: https://github.com/matplotlib/matplotlib/issues/1444 Mike On 10/31/2012 12:20 PM, Andrew Dawson wrote: > Hi all, > > I just noticed that colorbar edges are drawn in white when output in > PDF and black when output in PNG. A small test script is attached > along with the output to show the difference. > > I'd be interested in knowing if others can reproduce this? I'm using > mpl1.3.x (updated 5 minutes ago) on 64bit Ubuntu 12.04. > > Cheers, > Andrew > > bug.py > > > import matplotlib.pyplot as plt > import numpy as np > > # dummy data > x = y = np.linspace(np.pi, np.pi, 50) > X, Y = np.meshgrid(x, y) > Z = np.sin(X) * np.cos(2.*Y) > > # draw a filled contour plot and add a colorbar with drawedges turned on > contours = plt.contourf(x, y, Z) > cb = plt.colorbar(orientation='horizontal', drawedges=True) > > # turn off tick marks so the edges can be seen > for tick in cb.ax.get_xticklines() + cb.ax.get_yticklines(): > tick.set_visible(False) > > # save as a PDF and a PNG > plt.savefig('test.pdf') > plt.savefig('test.png') > 
From: Michael Droettboom <mdroe@st...>  20121101 15:30:36
Attachments:
Message as HTML

I now have a fix attached to that issue. Andrew: can you confirm it works for you? Mike On 11/01/2012 09:06 AM, Michael Droettboom wrote: > I've filed an issue for this here: > > https://github.com/matplotlib/matplotlib/issues/1444 > > Mike > > On 10/31/2012 12:20 PM, Andrew Dawson wrote: >> Hi all, >> >> I just noticed that colorbar edges are drawn in white when output in >> PDF and black when output in PNG. A small test script is attached >> along with the output to show the difference. >> >> I'd be interested in knowing if others can reproduce this? I'm using >> mpl1.3.x (updated 5 minutes ago) on 64bit Ubuntu 12.04. >> >> Cheers, >> Andrew >> >> bug.py >> >> >> import matplotlib.pyplot as plt >> import numpy as np >> >> # dummy data >> x = y = np.linspace(np.pi, np.pi, 50) >> X, Y = np.meshgrid(x, y) >> Z = np.sin(X) * np.cos(2.*Y) >> >> # draw a filled contour plot and add a colorbar with drawedges turned on >> contours = plt.contourf(x, y, Z) >> cb = plt.colorbar(orientation='horizontal', drawedges=True) >> >> # turn off tick marks so the edges can be seen >> for tick in cb.ax.get_xticklines() + cb.ax.get_yticklines(): >> tick.set_visible(False) >> >> # save as a PDF and a PNG >> plt.savefig('test.pdf') >> plt.savefig('test.png') >> > > > >  > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_sfd2d_oct > > > _______________________________________________ > Matplotlibdevel mailing list > Matplotlibdevel@... > https://lists.sourceforge.net/lists/listinfo/matplotlibdevel 
From: Andrew Dawson <ajdatm@gm...>  20121101 17:59:52
Attachments:
Message as HTML

It is possible I have spoken too soon. It certainly fixes the specific issue I was having, however I am now getting serious issues with a plot that uses the basemap toolkit. The contours and coastlines extend way beyond the plot boundaries. I've put links to before and after plots from something I'm working on, I don't have time to do a clean test script tonight though. I don't know if this is a matplotlib issue or something to do with basemap... some thought is probably required on this one. http://dl.dropbox.com/u/4496818/bad.pdf http://dl.dropbox.com/u/4496818/good.pdf Andrew On 1 November 2012 16:02, Andrew Dawson <dawson@...> wrote: > Yes this seems to work for me. > > > On 1 November 2012 15:25, Michael Droettboom <mdroe@...> wrote: > >> I now have a fix attached to that issue. Andrew: can you confirm it >> works for you? >> >> Mike >> >> >> On 11/01/2012 09:06 AM, Michael Droettboom wrote: >> >> I've filed an issue for this here: >> >> https://github.com/matplotlib/matplotlib/issues/1444 >> >> Mike >> >> On 10/31/2012 12:20 PM, Andrew Dawson wrote: >> >> Hi all, >> >> I just noticed that colorbar edges are drawn in white when output in >> PDF and black when output in PNG. A small test script is attached along >> with the output to show the difference. >> >> I'd be interested in knowing if others can reproduce this? I'm using >> mpl1.3.x (updated 5 minutes ago) on 64bit Ubuntu 12.04. >> >> Cheers, >> Andrew >> >> bug.py >> >> import matplotlib.pyplot as plt >> import numpy as np >> >> # dummy data >> x = y = np.linspace(np.pi, np.pi, 50) >> X, Y = np.meshgrid(x, y) >> Z = np.sin(X) * np.cos(2.*Y) >> >> # draw a filled contour plot and add a colorbar with drawedges turned on >> contours = plt.contourf(x, y, Z) >> cb = plt.colorbar(orientation='horizontal', drawedges=True) >> >> # turn off tick marks so the edges can be seen >> for tick in cb.ax.get_xticklines() + cb.ax.get_yticklines(): >> tick.set_visible(False) >> >> # save as a PDF and a PNG >> plt.savefig('test.pdf') >> plt.savefig('test.png') >> >> >> >> >> >>  >> Everyone hates slow websites. So do we. >> Make your web apps faster with AppDynamics >> Download AppDynamics Lite for free today:http://p.sf.net/sfu/appdyn_sfd2d_oct >> >> >> >> _______________________________________________ >> Matplotlibdevel mailing listMatplotlibdevel@...nethttps://lists.sourceforge.net/lists/listinfo/matplotlibdevel >> >> >> >> >>  >> Everyone hates slow websites. So do we. >> Make your web apps faster with AppDynamics >> Download AppDynamics Lite for free today: >> http://p.sf.net/sfu/appdyn_sfd2d_oct >> _______________________________________________ >> Matplotlibdevel mailing list >> Matplotlibdevel@... >> https://lists.sourceforge.net/lists/listinfo/matplotlibdevel >> >> > > >  > Dr Andrew Dawson > Atmospheric, Oceanic & Planetary Physics > Clarendon Laboratory > Parks Road > Oxford OX1 3PU, UK > Tel: +44 (0)1865 282438 > Email: dawson@... > Web Site: http://www2.physics.ox.ac.uk/contacts/people/dawson > > 
From: Michael Droettboom <mdroe@st...>  20121101 20:00:36
Attachments:
Message as HTML

Thanks. I think the clipping is getting thrown away by what I just did. It should be an easy fix. Mike On 11/01/2012 01:59 PM, Andrew Dawson wrote: > It is possible I have spoken too soon. It certainly fixes the specific > issue I was having, however I am now getting serious issues with a > plot that uses the basemap toolkit. The contours and coastlines extend > way beyond the plot boundaries. I've put links to before and after > plots from something I'm working on, I don't have time to do a clean > test script tonight though. > > I don't know if this is a matplotlib issue or something to do with > basemap... some thought is probably required on this one. > > http://dl.dropbox.com/u/4496818/bad.pdf > http://dl.dropbox.com/u/4496818/good.pdf > > Andrew > > > On 1 November 2012 16:02, Andrew Dawson <dawson@... > <mailto:dawson@...>> wrote: > > Yes this seems to work for me. > > > On 1 November 2012 15:25, Michael Droettboom <mdroe@... > <mailto:mdroe@...>> wrote: > > I now have a fix attached to that issue. Andrew: can you > confirm it works for you? > > Mike > > > On 11/01/2012 09:06 AM, Michael Droettboom wrote: >> I've filed an issue for this here: >> >> https://github.com/matplotlib/matplotlib/issues/1444 >> >> Mike >> >> On 10/31/2012 12:20 PM, Andrew Dawson wrote: >>> Hi all, >>> >>> I just noticed that colorbar edges are drawn in white when >>> output in PDF and black when output in PNG. A small test >>> script is attached along with the output to show the difference. >>> >>> I'd be interested in knowing if others can reproduce this? >>> I'm using mpl1.3.x (updated 5 minutes ago) on 64bit Ubuntu >>> 12.04. >>> >>> Cheers, >>> Andrew >>> >>> bug.py >>> >>> >>> import matplotlib.pyplot as plt >>> import numpy as np >>> >>> # dummy data >>> x = y = np.linspace(np.pi, np.pi, 50) >>> X, Y = np.meshgrid(x, y) >>> Z = np.sin(X) * np.cos(2.*Y) >>> >>> # draw a filled contour plot and add a colorbar with drawedges turned on >>> contours = plt.contourf(x, y, Z) >>> cb = plt.colorbar(orientation='horizontal', drawedges=True) >>> >>> # turn off tick marks so the edges can be seen >>> for tick in cb.ax.get_xticklines() + cb.ax.get_yticklines(): >>> tick.set_visible(False) >>> >>> # save as a PDF and a PNG >>> plt.savefig('test.pdf') >>> plt.savefig('test.png') >>> >> >> >> >>  >> Everyone hates slow websites. So do we. >> Make your web apps faster with AppDynamics >> Download AppDynamics Lite for free today: >> http://p.sf.net/sfu/appdyn_sfd2d_oct >> >> >> _______________________________________________ >> Matplotlibdevel mailing list >> Matplotlibdevel@... <mailto:Matplotlibdevel@...> >> https://lists.sourceforge.net/lists/listinfo/matplotlibdevel > > >  > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_sfd2d_oct > _______________________________________________ > Matplotlibdevel mailing list > Matplotlibdevel@... > <mailto:Matplotlibdevel@...> > https://lists.sourceforge.net/lists/listinfo/matplotlibdevel > > > > >  > Dr Andrew Dawson > Atmospheric, Oceanic & Planetary Physics > Clarendon Laboratory > Parks Road > Oxford OX1 3PU, UK > Tel: +44 (0)1865 282438 <tel:%2B44%20%280%291865%20282438> > Email: dawson@... <mailto:dawson@...> > Web Site: http://www2.physics.ox.ac.uk/contacts/people/dawson > > 
From: Michael Droettboom <mdroe@st...>  20121101 20:04:54
Attachments:
Message as HTML

Can you try https://github.com/matplotlib/matplotlib/pull/1446? Mike On 11/01/2012 01:59 PM, Andrew Dawson wrote: > It is possible I have spoken too soon. It certainly fixes the specific > issue I was having, however I am now getting serious issues with a > plot that uses the basemap toolkit. The contours and coastlines extend > way beyond the plot boundaries. I've put links to before and after > plots from something I'm working on, I don't have time to do a clean > test script tonight though. > > I don't know if this is a matplotlib issue or something to do with > basemap... some thought is probably required on this one. > > http://dl.dropbox.com/u/4496818/bad.pdf > http://dl.dropbox.com/u/4496818/good.pdf > > Andrew > > > On 1 November 2012 16:02, Andrew Dawson <dawson@... > <mailto:dawson@...>> wrote: > > Yes this seems to work for me. > > > On 1 November 2012 15:25, Michael Droettboom <mdroe@... > <mailto:mdroe@...>> wrote: > > I now have a fix attached to that issue. Andrew: can you > confirm it works for you? > > Mike > > > On 11/01/2012 09:06 AM, Michael Droettboom wrote: >> I've filed an issue for this here: >> >> https://github.com/matplotlib/matplotlib/issues/1444 >> >> Mike >> >> On 10/31/2012 12:20 PM, Andrew Dawson wrote: >>> Hi all, >>> >>> I just noticed that colorbar edges are drawn in white when >>> output in PDF and black when output in PNG. A small test >>> script is attached along with the output to show the difference. >>> >>> I'd be interested in knowing if others can reproduce this? >>> I'm using mpl1.3.x (updated 5 minutes ago) on 64bit Ubuntu >>> 12.04. >>> >>> Cheers, >>> Andrew >>> >>> bug.py >>> >>> >>> import matplotlib.pyplot as plt >>> import numpy as np >>> >>> # dummy data >>> x = y = np.linspace(np.pi, np.pi, 50) >>> X, Y = np.meshgrid(x, y) >>> Z = np.sin(X) * np.cos(2.*Y) >>> >>> # draw a filled contour plot and add a colorbar with drawedges turned on >>> contours = plt.contourf(x, y, Z) >>> cb = plt.colorbar(orientation='horizontal', drawedges=True) >>> >>> # turn off tick marks so the edges can be seen >>> for tick in cb.ax.get_xticklines() + cb.ax.get_yticklines(): >>> tick.set_visible(False) >>> >>> # save as a PDF and a PNG >>> plt.savefig('test.pdf') >>> plt.savefig('test.png') >>> >> >> >> >>  >> Everyone hates slow websites. So do we. >> Make your web apps faster with AppDynamics >> Download AppDynamics Lite for free today: >> http://p.sf.net/sfu/appdyn_sfd2d_oct >> >> >> _______________________________________________ >> Matplotlibdevel mailing list >> Matplotlibdevel@... <mailto:Matplotlibdevel@...> >> https://lists.sourceforge.net/lists/listinfo/matplotlibdevel > > >  > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_sfd2d_oct > _______________________________________________ > Matplotlibdevel mailing list > Matplotlibdevel@... > <mailto:Matplotlibdevel@...> > https://lists.sourceforge.net/lists/listinfo/matplotlibdevel > > > > >  > Dr Andrew Dawson > Atmospheric, Oceanic & Planetary Physics > Clarendon Laboratory > Parks Road > Oxford OX1 3PU, UK > Tel: +44 (0)1865 282438 <tel:%2B44%20%280%291865%20282438> > Email: dawson@... <mailto:dawson@...> > Web Site: http://www2.physics.ox.ac.uk/contacts/people/dawson > > 