Skip to content

Commit

Permalink
Updating props to prop for matplotlib 3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Samreay committed Oct 26, 2020
1 parent cb64aef commit ae32883
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chainconsumer/plotter.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,8 +325,8 @@ def _add_watermark(self, fig, axes, figsize, text, dpi=300, size_scale=1.0): #
px, py, scale = 0.5, 0.5, 1.0
else:
px, py, scale = 0.45, 0.55, 0.8
bb0 = TextPath((0, 0), text, size=50, props=fontdict, usetex=usetex).get_extents()
bb1 = TextPath((0, 0), text, size=51, props=fontdict, usetex=usetex).get_extents()
bb0 = TextPath((0, 0), text, size=50, prop=fontdict, usetex=usetex).get_extents()
bb1 = TextPath((0, 0), text, size=51, prop=fontdict, usetex=usetex).get_extents()
dw = (bb1.width - bb0.width) * (dpi / 100)
dh = (bb1.height - bb0.height) * (dpi / 100)
size = np.sqrt(dy ** 2 + dx ** 2) / (dh * abs(dy / dx) + dw) * 0.6 * scale * size_scale
Expand Down

0 comments on commit ae32883

Please sign in to comment.