Hi matplotlib developers,

this is my first commit to matplotlib. I am using it heavily in a scientific context. I followed the How-to and send you an according patch for what I consider a bug. If it doesn't make sense, please be lenient with me for now, since it my first time. : )

As described in the subject line, I made the alpha keyword in the errorbar command act also on the error bars and not only on the markers. The previous behaviour seemed inconsistent.

Cheers,
Hans
>From 9dc835ea20f87208ae254df06eaf75e79eca8207 Mon Sep 17 00:00:00 2001
From: Hans Dembinski <hans.dembin...@kit.edu>
Date: Wed, 6 Jun 2012 17:48:13 +0200
Subject: [PATCH] BF: make alpha keyword apply to error lines and cap markers

---
 lib/matplotlib/axes.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/lib/matplotlib/axes.py b/lib/matplotlib/axes.py
index a909a23..2936034 100644
--- a/lib/matplotlib/axes.py
+++ b/lib/matplotlib/axes.py
@@ -5309,6 +5309,8 @@ class Axes(martist.Artist):
                 lines_kw['lw']=kwargs['lw']
         if 'transform' in kwargs:
             lines_kw['transform'] = kwargs['transform']
+        if 'alpha' in kwargs:
+            lines_kw['alpha'] = kwargs['alpha']
 
         # arrays fine here, they are booleans and hence not units
         if not iterable(lolims):
@@ -5348,6 +5350,8 @@ class Axes(martist.Artist):
                 plot_kw['mew']=kwargs['mew']
             if 'transform' in kwargs:
                 plot_kw['transform'] = kwargs['transform']
+            if 'alpha' in kwargs:
+                plot_kw['alpha'] = kwargs['alpha']
 
         if xerr is not None:
             if (iterable(xerr) and len(xerr)==2 and
-- 
1.7.4.1

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to