Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c939331

Browse files
committed
Cleaned code and added a whats_new
1 parent 58f1527 commit c939331

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
The SVG backend can now render hatches with transparency
2+
--------------------------------------------------------
3+
4+
The SVG backend now respects the hatch stroke alpha. Useful applications are,
5+
among others, semi-transparent hatches as a subtle way to differentiate columns
6+
in bar plots.

lib/matplotlib/backends/backend_svg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ def _write_hatches(self):
398398
'stroke-linecap': 'butt',
399399
'stroke-linejoin': 'miter'
400400
}
401-
if stroke[3] < 1.:
401+
if stroke[3] < 1:
402402
hatch_style['stroke-opacity'] = str(stroke[3])
403403
writer.element(
404404
'path',

0 commit comments

Comments
 (0)