Skip to content

Commit

Permalink
fix(plotting): fixes #35
Browse files Browse the repository at this point in the history
Gradient fill disappears upon adding labels
  • Loading branch information
kmnhan committed May 15, 2024
1 parent aef10e4 commit a67be68
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/erlab/plotting/general.py
Original file line number Diff line number Diff line change
Expand Up @@ -708,6 +708,7 @@ def gradient_fill(
# with autoscale_off(ax):
im.set_extent((min(xn), max(xn), min(yn), max(yn)))
im.set_clip_path(patch)
im.autoscale_None()
ax.add_image(im)

return im
Expand Down

0 comments on commit a67be68

Please sign in to comment.