-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Setting lines.markeredgecolor in rcParams affects the ticks' mark color too #14546
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
Comments
`lines.markeredgecolor` in the rcParams is for *any* line created in the
figure, so that includes the axis spines. The tickmarkers are implemented
as markers of the axis spine. The property cycler applies only to the
things produced by the plotting calls.
…On Thu, Jun 13, 2019 at 1:31 PM marccheneau ***@***.***> wrote:
Bug report
*Bug summary*
Setting "lines.markeredgecolor" in rcParams affects the ticks' mark color
too. This is unexpected I guess.
Using "axes.prop_cycle" and the cycler label "markeredgecolor" produces
the expected result, that is, it only changes the marker edge color and not
the ticks' mark color.
*Code for reproduction*
import numpy as npimport matplotlibimport matplotlib.pyplot as plt
matplotlib.rcParams["lines.markeredgecolor"] = "red"
x = np.linspace(0, 10)
plt.plot(x, x**2, marker="o")
plt.show()
*Actual outcome*
The ticks' mark color has turned red, together with the marker edge color.
*Expected outcome*
The ticks' mark color should ramin to its default value.
*Matplotlib version*
- Operating system: Archlinux
- Matplotlib version: 3.1.0 (installed using the Archlinux's package
manager)
- Matplotlib backend: Qt5Agg
- Python version: 3.7.3
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#14546?email_source=notifications&email_token=AACHF6HMDFD4NPKXOAYP7PLP2J75VA5CNFSM4HX4HWLKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GZL6F2A>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AACHF6HTGRHUQ3RES7TYT6DP2J75VANCNFSM4HX4HWLA>
.
|
At the moment, I am inclined to close this as "not a bug", but I could be convinced otherwise. |
I disagree. Though technically, the ticks may be implemented as markers, conceptually, they are quite different from markers for data points (and should probably almost always have different properties). I could otherwise argue that ticks are lines and should follow all the Ticks are an independent entity and should be treated as such. They also already follow |
I tried to globally (meaning in the rcParams) and independently set the color of the "data markers" and of the ticks' marks using It does remain possible to set the data marker's color alone when calling the plot function, but I keep thinking that the possibility for a global setting would be desirable too. It's not a bug, right, but maybe a missing feature. |
This was fixed by #16847. |
Bug report
Bug summary
Setting "lines.markeredgecolor" in rcParams affects the ticks' mark color too. This is unexpected I guess.
Using "axes.prop_cycle" and the cycler label "markeredgecolor" produces the expected result, that is, it only changes the marker edge color and not the ticks' mark color.
Code for reproduction
Actual outcome
The ticks' mark color has turned red, together with the marker edge color.
Expected outcome
The ticks' mark color should ramin to its default value.
Matplotlib version
The text was updated successfully, but these errors were encountered: