Commit adbfb7e7 authored by Kris Vanneste's avatar Kris Vanneste
Browse files

Do not pass alpha to clabels in draw_gis_layer method of LayeredBasemap, as it...

Do not pass alpha to clabels in draw_gis_layer method of LayeredBasemap, as it causes an error in matplotlib version 3.1.3.

git-svn-id: https://svn.seismo.oma.be/svn/seismo/mapping/layeredbasemap/trunk@7428 40b490c5-b4d9-47cb-8714-9bef99b524d5
parent 42f4ea69
......@@ -1388,7 +1388,8 @@ class LayeredBasemap:
label_style = line_style.label_style
if label_style:
## other font properties do not seem to be supported
clabels = self.ax.clabel(cl, grid_style.contour_labels or cl.levels, colors=label_style.color, inline=True, fontsize=label_style.font_size, fmt=grid_style.label_format, alpha=label_style.alpha, zorder=self.zorder)
## alpha no longer supported in matplotlib 3?
clabels = self.ax.clabel(cl, grid_style.contour_labels or cl.levels, colors=label_style.color, inline=True, fontsize=label_style.font_size, fmt=grid_style.label_format, zorder=self.zorder)
bbox_args = label_style.to_kwargs()['bbox']
[txt.set_bbox(bbox_args) for txt in clabels]
self.zorder += 1
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment