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

Skip to content

subplot mosaic 1 element list #19631

Closed
@story645

Description

@story645

Bug summary
Passing in a one element list splits it up as if it was string input, when it should treat it as 1 axes.

Code for reproduction

fig, axd = plt.subplot_mosaic(['triangle'])

Actual outcome
image

Expected outcome
image

Matplotlib version

  • Operating system:
  • Matplotlib version (import matplotlib; print(matplotlib.__version__)):
  • Matplotlib backend (print(matplotlib.get_backend())):
  • Python version:
  • Jupyter version (if applicable):
  • Other libraries:

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