summarylogtreecommitdiffstats
path: root/fix_for_new_matplotlib.patch
diff options
context:
space:
mode:
Diffstat (limited to 'fix_for_new_matplotlib.patch')
-rw-r--r--fix_for_new_matplotlib.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/fix_for_new_matplotlib.patch b/fix_for_new_matplotlib.patch
new file mode 100644
index 00000000000..e9221f4eda7
--- /dev/null
+++ b/fix_for_new_matplotlib.patch
@@ -0,0 +1,12 @@
+diff -ura a/pyspeckit/spectrum/fitters.py b/pyspeckit/spectrum/fitters.py
+--- a/pyspeckit/spectrum/fitters.py 2018-07-12 23:37:07.000000000 +0800
++++ b/pyspeckit/spectrum/fitters.py 2019-06-09 14:36:20.587282658 +0800
+@@ -1367,7 +1367,7 @@
+ handletextpad=handletextpad, labelspacing=labelspacing,
+ frameon=frameon, fontsize=fontsize, **kwargs)
+ self.Spectrum.plotter.axis.add_artist(self.fitleg)
+- self.fitleg.draggable(True)
++ self.fitleg.set_draggable(True)
+ if self.Spectrum.plotter.autorefresh:
+ self.Spectrum.plotter.refresh()
+