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

svg backend does not respect alpha channel of text *when passed as rgba* #10419

Closed
@anntzer

Description

@anntzer

Bug report

Bug summary

plt.text(.5, .5, "foo", color=(0, 0, 0, 0)); plt.savefig("/tmp/test.svg") results in text being visible in the produced svg. Compare withplt.text(.5, .5, "foo", alpha=0); plt.savefig("/tmp/test.svg"), which correctly yields no visible text.

(The ps backend is also broken here as it yields visible text in both cases, but this is arguably less an issue because transparency support in PS can only be "faked" anyways.)

Code for reproduction

# Paste your code here##

Actual outcome

# If applicable, paste the console output here##

Expected outcome

Matplotlib version

  • Operating system: arch linux
  • Matplotlib version: 2.1.2
  • Matplotlib backend (print(matplotlib.get_backend())): svg
  • Python version: 3.6
  • Jupyter version (if applicable): n/a
  • Other libraries:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp