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

Skip to content

Commit e7fccf7

Browse files
committed
fix example demo_ribbon_box.py
svn path=/trunk/matplotlib/; revision=7435
1 parent c6156ac commit e7fccf7

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

examples/pylab_examples/demo_ribbon_box.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,13 @@ def __init__(self, bbox, color,
6464
):
6565

6666
BboxImage.__init__(self, bbox,
67-
cmap = None,
68-
norm = None,
69-
interpolation=None,
70-
origin=None,
71-
filternorm=1,
72-
filterrad=4.0,
73-
resample = False,
67+
cmap = cmap,
68+
norm = norm,
69+
interpolation=interpolation,
70+
origin=origin,
71+
filternorm=filternorm,
72+
filterrad=filterrad,
73+
resample = resample,
7474
**kwargs
7575
)
7676

@@ -115,7 +115,7 @@ def draw(self, renderer, *args, **kwargs):
115115
for year, h, bc in zip(years, heights, box_colors):
116116
bbox0 = Bbox.from_extents(year-0.4, 0., year+0.4, h)
117117
bbox = TransformedBbox(bbox0, ax.transData)
118-
rb_patch = RibbonBoxImage(bbox, bc)
118+
rb_patch = RibbonBoxImage(bbox, bc, interpolation="bicubic")
119119

120120
ax.add_artist(rb_patch)
121121

0 commit comments

Comments
 (0)