Skip to content

Commit

Permalink
ref: fix matplotlib deprecation warning for set_data
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmueller committed Jul 21, 2023
1 parent edb49cb commit e7e4543
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
0.13.4
- ref: don't use deprecated matplotlib.cm.get_cmap
- ref: use packaging.version.parse to compare versions
- ref: fix matplotlib deprecation warning for set_data
- tests: don't be so strict
0.13.3
- setup: bump afmformats from 0.16.4 to 0.16.7
Expand Down
2 changes: 1 addition & 1 deletion pyjibe/fd/mpl_edelta.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def cbfdist(e, d): return self.update_plot(e, d, fdist=fdist)

def update_delta(self, delta):
"""Updates the vertical line for indentation depth"""
self.opt_auto.set_data(delta, (0, 1))
self.opt_auto.set_data((delta, delta), (0, 1))
self.canvas.draw()

def update_plot(self, emoduli, indentations,
Expand Down

0 comments on commit e7e4543

Please sign in to comment.