From 24fb5c68ffab3b30f8db47646c55ee0fdd910e7f Mon Sep 17 00:00:00 2001 From: Antony Lee Date: Wed, 3 Aug 2016 12:31:19 -0700 Subject: [PATCH] Prevent forced alpha in figureoptions. Forcing the alpha value sets it not only for the line color but also the marker faces and edges (i.e., editing the alpha value of the markers in the options editor had no effect). Instead, just remove any forced alpha and use the alpha values that have been set in the editor. A later idea may be to make alpha not override alpha values passed in together with the color as quadruplets. --- lib/matplotlib/backends/qt_editor/figureoptions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/matplotlib/backends/qt_editor/figureoptions.py b/lib/matplotlib/backends/qt_editor/figureoptions.py index 669f9de6ce59..879b1cf63189 100644 --- a/lib/matplotlib/backends/qt_editor/figureoptions.py +++ b/lib/matplotlib/backends/qt_editor/figureoptions.py @@ -209,8 +209,8 @@ def apply_callback(data): line.set_drawstyle(drawstyle) line.set_linewidth(linewidth) rgba = mcolors.to_rgba(color) - line.set_color(rgba[:3]) - line.set_alpha(rgba[-1]) + line.set_alpha(None) + line.set_color(rgba) if marker is not 'none': line.set_marker(marker) line.set_markersize(markersize) pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy