Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlesPikachu committed Feb 26, 2022
1 parent 0cc5f0b commit 85e9bcc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pytools/modules/ukrainemap/ukrainemap.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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'))

0 comments on commit 85e9bcc

Please sign in to comment.