.eps-file converted to .png-format using GIMP 2.10.30
Expected outcome
.png-file exported by matplotlib
.eps-file exported by matplotlib with linewidth > 0 converted to .png-format using GIMP 2.10.30
Additional information
It happens when linewidth is set to zero.
I don't know if it worked in earlier versions.
I had a look on the eps-commands in the file. (I don't know anything about eps-format.) It is most likely due to certain eps-commands being removed when linewidth is set to zero, including a command for the line color.
Thanks for the helpful bug summary and looking into the possible cause (which sounds reasonable). Not sure who will step up to fix this, but it does seem like somehow the colours are not getting set. Perhaps see if pdf works?
Activity
jklymak commented on Apr 6, 2022
Thanks for the helpful bug summary and looking into the possible cause (which sounds reasonable). Not sure who will step up to fix this, but it does seem like somehow the colours are not getting set. Perhaps see if pdf works?
topper91 commented on Apr 6, 2022
thx for the quick response. pdf-export works just fine.
oscargus commented on Apr 6, 2022
A quick diff between the mwe here and one with setting linewidth to 0.1.
I'd say that it is these lines that are not executing:
matplotlib/lib/matplotlib/backends/backend_ps.py
Lines 776 to 781 in 574580c
Moving the color-setting out of the if-clause seems to solve this problem, but I am not sure if it causes other issues.
Edit:
That code has been around for 14 years, so it is not a recent regression. Hence, this should probably go into 3.6.