Skip to content

[Doc]: ncols parameter hard-coded #26560

@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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy