Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Doc]: ncols parameter hard-coded #26560

Closed
@fostermaier

Description

@fostermaier

Documentation Link

https://matplotlib.org/stable/gallery/color/named_colors.html

Problem

I just copied the example code and changed the number of columns ncols.
It seems there are some hard coded 4s in the code.

Suggested improvement

change 4 s in

width = cell_width * 4 + 2 * margin

and
ax.set_xlim(0, cell_width * 4)

to ncols

Metadata

Metadata

Assignees

No one assigned

    Labels

    DocumentationGood first issueOpen a pull request against these issues if there are no active ones!

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions