From 85e9bcc4316508d2940a72770c3c7311bb3e1fdb Mon Sep 17 00:00:00 2001 From: CharlesPikachu <1159254961@qq.com> Date: Sat, 26 Feb 2022 14:30:41 +0800 Subject: [PATCH] update --- pytools/modules/ukrainemap/ukrainemap.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pytools/modules/ukrainemap/ukrainemap.py b/pytools/modules/ukrainemap/ukrainemap.py index 296f28c..a7c8924 100644 --- a/pytools/modules/ukrainemap/ukrainemap.py +++ b/pytools/modules/ukrainemap/ukrainemap.py @@ -125,6 +125,7 @@ def drawukraine(self, show_label_image=True): plt.plot(x_list, y_list, color='black') if show_label_image: plt.savefig(os.path.join(self.rootdir, 'ukraine.png')) + plt.close() self.showLabelImage(os.path.join(self.rootdir, 'ukraine.png')) '''画乌克兰的某个州''' def drawstate(self, state_name='Kiev', color=None): @@ -140,4 +141,5 @@ def drawstate(self, state_name='Kiev', color=None): plt.plot(x_list, y_list, color=color) plt.text(x_list[0], y_list[0], self.en2cn_states[state_name], size=10, color=color) plt.savefig(os.path.join(self.rootdir, f'{state_name}.png')) + plt.close() self.showLabelImage(os.path.join(self.rootdir, f'{state_name}.png')) \ No newline at end of file