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

[Bug]: Backgroundcolor of text is set in a too wide range #29874

Open
@siegbert7

Description

@siegbert7

Bug summary

Backgroundcolor of text is set in a too wide range when setting it for the first time.
Problem: Border of first color remains when backgroundcolor is set again.

Image

Code for reproduction

''' Backgroundcolor of text is set in a too wide range when setting it for the first time.    Problem: Border of first color remains when backgroundcolor is set again.'''# windows 11# Python version 3.13.2# Matplotlib version 3.10.1importmatplotlib.pyplotaspltfig,ax=plt.subplots(1,1)fig.set_dpi(100)txt=ax.text(0.1,0.8,'There should not be a red border around this text !')##txt.set(backgroundcolor='none')     # Uncomment this line as workaround to avoid red bordertxt.set(backgroundcolor='red')# Set backgroundcolor for the first timetxt.set(backgroundcolor='none')# Cannot reset backgroundcolor of text completely, red border remainsplt.show()

Actual outcome

Text with red border, see picture above.

Expected outcome

Text without red border.

Additional information

There is a workaround for the first, but not a fix, see Python program above.

Operating system

Windows

Matplotlib Version

3.10.1

Matplotlib Backend

tkagg

Python version

3.13.2

Jupyter version

Installation

pip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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