Skip to content

Setting lines.markeredgecolor in rcParams affects the ticks' mark color too #14546

Closed
@marccheneau

Description

@marccheneau

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 np
import matplotlib
import 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions