Bug when saving in PNG?

Hi,

I have a problem when saving my plot as a png. The horizontal lines, which I
inserted via
axhline(y=0.136, xmin=0., xmax=1, color='black',ls=':')
axhline(y=0.094, xmin=0., xmax=1, color='black',ls=':')
are not displayed right in the png file. Saving in pdf works perfectly. I
enclosed the two files in this email.
http://www.nabble.com/file/p22738740/p25.pdf p25.pdf
http://www.nabble.com/file/p22738740/p25.png p25.png

Is there a way to fix this problem?

Thank you for your help,
Markus

···


View this message in context: http://www.nabble.com/Bug-when-saving-in-PNG--tp22738740p22738740.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

Hi,

I have a problem when saving my plot as a png. The horizontal lines, which I

inserted via

axhline(y=0.136, xmin=0., xmax=1, color=‘black’,ls=‘:’)

axhline(y=0.094, xmin=0., xmax=1, color=‘black’,ls=‘:’)

are not displayed right in the png file. Saving in pdf works perfectly. I

enclosed the two files in this email.

http://www.nabble.com/file/p22738740/p25.pdf p25.pdf

http://www.nabble.com/file/p22738740/p25.png p25.png

Is there a way to fix this problem?

This appears to be working fine for me with svn matplotlib – what version are you using? See also: http://matplotlib.sourceforge.net/faq/troubleshooting_faq.html#report-a-problem for information about how to obtain version and other configuration information.

···

On Fri, Mar 27, 2009 at 5:00 AM, marcusantonius <markus.haider@…2356…> wrote:

Thank you for your help,

Markus

View this message in context: http://www.nabble.com/Bug-when-saving-in-PNG–tp22738740p22738740.html

Sent from the matplotlib - users mailing list archive at Nabble.com.



Matplotlib-users mailing list

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users

I am using 0.98.3-3, which is in the Ubuntu packages.

Cheers,
Markus

···

Am Freitag, den 27.03.2009, 07:58 -0500 schrieb John Hunter:

On Fri, Mar 27, 2009 at 5:00 AM, marcusantonius > <markus.haider@...2356...> wrote:
        
        Hi,
        
        I have a problem when saving my plot as a png. The horizontal
        lines, which I
        inserted via
        axhline(y=0.136, xmin=0., xmax=1, color='black',ls=':')
        axhline(y=0.094, xmin=0., xmax=1, color='black',ls=':')
        are not displayed right in the png file. Saving in pdf works
        perfectly. I
        enclosed the two files in this email.
        http://www.nabble.com/file/p22738740/p25.pdf p25.pdf
        http://www.nabble.com/file/p22738740/p25.png p25.png
        
        Is there a way to fix this problem?

This appears to be working fine for me with svn matplotlib -- what
version are you using? See also:
http://matplotlib.sourceforge.net/faq/troubleshooting_faq.html#report-a-problem for information about how to obtain version and other configuration information.

Hi,

I’m using the code copied straight from the simple tkagg animation example at:

http://matplotlib.sourceforge.net/examples/animation/simple_anim_tkagg.html

It starts up fine and I can see the moving sine wave, however, after about 15 to 20 seconds the plotting window freezes showing “Figure 1 (Not Responding)” and that’s that. Adding an additional line, “print i” just before “line.set_ydata(…)” shows that even once the window has frozen the code is still being executed. Has anyone had this problem and solved it?

I’m on Windows Vista running:
Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit (Intel)] on win32
Matplotlib
v0.98.3

numpy v1.2.0
Tkinter $Revision: 50704 $

Thanks

I am not able to reproduce this with 0.98.3 either, with the two example lines you've shown. Perhaps it's an interaction with some other part of your script? Can you provide a complete example that duplicates this problem? Or are those two lines enough for you?

Mike

Markus Haider wrote:

···

Am Freitag, den 27.03.2009, 07:58 -0500 schrieb John Hunter:
  

On Fri, Mar 27, 2009 at 5:00 AM, marcusantonius >> <markus.haider@...2356...> wrote:
                Hi,
                I have a problem when saving my plot as a png. The horizontal
        lines, which I
        inserted via
        axhline(y=0.136, xmin=0., xmax=1, color='black',ls=':')
        axhline(y=0.094, xmin=0., xmax=1, color='black',ls=':')
        are not displayed right in the png file. Saving in pdf works
        perfectly. I
        enclosed the two files in this email.
        http://www.nabble.com/file/p22738740/p25.pdf p25.pdf
        http://www.nabble.com/file/p22738740/p25.png p25.png
                Is there a way to fix this problem?

This appears to be working fine for me with svn matplotlib -- what
version are you using? See also:
http://matplotlib.sourceforge.net/faq/troubleshooting_faq.html#report-a-problem for information about how to obtain version and other configuration information.

I am using 0.98.3-3, which is in the Ubuntu packages.

Cheers,
Markus

------------------------------------------------------------------------------
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options
  
--
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA