Skip to content

Commit 0a2e00a

Browse files
committed
Add redraw label call before savefig
1 parent bc4d7ac commit 0a2e00a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ternary/ternary_axes_subplot.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ def mpl_redraw_callback(event, tax):
4141
tax: TernaryAxesSubplot
4242
the TernaryAxesSubplot
4343
"""
44-
4544
tax._redraw_labels()
4645

4746

@@ -255,9 +254,11 @@ def legend(self, *args, **kwargs):
255254
ax.legend(*args, **kwargs)
256255

257256
def savefig(self, filename, dpi=200, format=None):
257+
self._redraw_labels()
258258
figure = self.get_figure()
259259
figure.savefig(filename, format=format, dpi=dpi)
260260

261+
@staticmethod
261262
def show(self):
262263
pyplot.show()
263264

0 commit comments

Comments
 (0)