New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rasterized points not rendering when markeredgecolor is none #3711
Comments
FYI: I also tried setting My current workaround for hiding the border of a rasterized point is to just set |
cc @jkseppan |
Even odder: if I save to a png file, it only has the green dot. Svg works the same as pdf. If this code used to work right with matplotlib 1.3, we could try git bisect to find the cause of the problem. |
Similar observation when saving rasterized points to PNG with markeredgewidth=0. The points are visible in figure window, but absent in the PNG; the axes render fine. This issue is new to 1.4.1, I don't see it with 1.4.0 |
Glad it's not just me experiencing this! @F0a, thanks for confirming the version dependence. |
I'm trying to test my example in branch 1.4.x to see if the issue is fixed with #3699, but I'm having trouble installing it. In a new conda environment, I've done
Maybe someone who already has a working installation of the 1.4.x branch can do a quick test of the example? In the meantime, I'll continue to work on getting branch 1.4.x. |
I've tested the original example with the 1.4.x branch (I got it working using the QT backend) and I get the same result: no blue point in the pdf. Also, only the green point is visible in the interactive QT window, so whatever is causing this also affects certain interactive backends. |
@jesaerys If the bug is in the Agg backend, then it will also affect all of the interactive backends that use Agg for rendering. |
Points can be rasterized by setting their
zorder
attribute to a value less than therasterization_zorder
value of the current axes. However, I cannot get this to work if I setmarkeredgecolor
to'none'
. Here is an example:Everything works as expected in an interactive window, but the blue point is invisible in the pdf. The only difference between the red point and the blue point is
zorder
, and the only difference between the green point and the blue point ismarkeredgecolor
. The invisibility of the blue point in the pdf therefore seems to be caused by a combination of rasterization and not having an edge.I discovered this while running some old plotting scripts I wrote when I was using matplotlib 1.3 installed via pip for homebrew python on Mac OS 10.6.8. I'm now using anaconda python for Mac OS 10.9, which comes with matplotlib 1.4.1. I feel like there must be some connection with either the updated matplotlib or the anaconda python distribution (after all, my old scripts used to produce the correct output), but I cannot test this without reverting my entire python installation.
Does anyone know what could be going on here?
The text was updated successfully, but these errors were encountered: