Skip to content

Set_color method for line2d object in latest document not work  #23296

Closed
@skywateryang

Description

@skywateryang

Documentation Link

https://matplotlib.org/stable/gallery/pyplots/fig_axes_customize_simple.html#sphx-glr-gallery-pyplots-fig-axes-customize-simple-py

Problem

In this link I provide, I found some part of the code in latest matplotlib version not work(3.5.x). This part works for 3.2.1, but not work now, while the latest document hasn't been changed.

Code as below, as you see, here set_color method for Line2D object not work actually, with the ticklines still being black rather green
for line in ax1.yaxis.get_ticklines: line.set_color('tab:green')

Suggested improvement

Change this line from line.set_color('tab:green') to line.set_markeredgecolor("tab:green")

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions