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
Bug in pyplot.plot() with zorder/solid_capstyle kwarg combinations #4262
Comments
well, that is a fun bug.... I can't reproduce this on master and the With 1.4.3 + py3k I still get exceptions for I also simplified the code a bit: import matplotlib.pyplot as plt
fig, axs = plt.subplots(3, 2)
dicts = [[dict(c="black", ls="-", lw=20),
dict(c="black", ls="-", lw=20, solid_capstyle="round")],
[dict(c="black", ls="-", lw=20, zorder=10),
dict(c="black", ls="-", lw=20, zorder=10, solid_capstyle="round")],
[dict(c="black", ls="-", lw=20),
dict(c="black", ls="-", lw=20, solid_capstyle="round")]
]
for row, kwargs in zip(axs, dicts):
for ax, style in zip(row, kwargs):
ax.plot([0, 1], [0, 1], **style)
ax.set_title('{!r}'.format(style))
plt.tight_layout()
plt.show() Just to be sure there was no funny state-machine related shenanigans going on. |
And on 2.7 I get almost the same result as @megies. This is probably related to the use of |
Changing |
This was fixed in master with #4198. |
Sorry for not checking against master before reporting. I was on the road and in a bit of a hurry. Thanks for clarifying. |
It reminded us that this should be back ported so not a waste. |
The c argument is sometimes overridden depending on dictionary iteration order; color can be used without issue.
There is a strange bug that changes the color used in the plot, happening to me for certain combinations of
zorder
andsolid_capstyle
kwargs. Happens to me on matplotlib 1.4.3 installed through anaconda/conda package (tried it withTKAGG
andQT4AGG
).The text was updated successfully, but these errors were encountered: