Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[ENH]: text with custom width #29570

Open
@chaffra

Description

@chaffra

Problem

I would like to be able to do

import matplotlib.pyplot as pltfig, ax = plt.subplots()text = ax.text(0.5, 0.5, "Hello World!",                 ha="center", va="center",                 bbox=dict(boxstyle="round",                           ec="black",                           fc="lightblue",                           width=150)) # Set custom width hereplt.show()

but this results in a bug in creatingFancyBboxPatch. I think width and height should be implemented as keywords when creating a text for cases where the user would like to make to text box larger for example.

Proposed solution

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp