GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [ENH]: set facecolor and edgecolor alpha separately · Issue #24681 · matplotlib/matplotlib

[ENH]: set facecolor and edgecolor alpha separately #24681

New issue
Copy link
New issue
Copy link
Closed
#24691
Closed
[ENH]: set facecolor and edgecolor alpha separately#24681
#24691
Copy link
Labels
New featuretopic: color/alpha
Milestone
v3.8.0

Description

@story645
story645
opened on Dec 9, 2022
Issue body actions

Problem

I like making diagrams where my patch edge is solid but the fill is semi-transparent - in my case usually to fade out the color, but it's also useful to emphasize boundaries

image

Since alpha applies to the whole patch, the way I do this now is by converting my HTML colors into RGBs and appending an A

edgecolor=x_color, facecolor=(*mcolors.to_rgb(x_color), .10)

ETA: apparently I could also just do facecolor = mcolors.to_rgba(x_color, .10)

Proposed solution

Allow alpha to take a (facecolor, fillcolor) tuple for patch methods. As an example of prior art, we allow vectorized/separable alphas in imshow as of #14889

Activity

  1. story645
    added
    New feature
    topic: color/alpha
    status: needs comment/discussionneeds consensus on next stepneeds consensus on next step
    on Dec 9, 2022
  2. story645
    closed this as completedin #24691on Mar 19, 2023
  3. QuLogic
    added this to the v3.8.0 milestone on Mar 20, 2023
  4. QuLogic
    removed
    status: needs comment/discussionneeds consensus on next stepneeds consensus on next step
    on Mar 20, 2023
  5. ksunden
    changed the title [-][ENH]: set facecolor and edgecolor alpha seperately[/-] [+][ENH]: set facecolor and edgecolor alpha separately[/+] on Aug 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    New featuretopic: color/alpha

    Type

    No type

    Projects

    No projects

      Milestone

      • v3.8.0

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402520 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.