From 8a3234ba0348c628de3821278df30c5d94c91976 Mon Sep 17 00:00:00 2001 From: guanjihuan Date: Sun, 19 Dec 2021 15:54:08 +0800 Subject: [PATCH] 33 --- PyPI/setup.cfg | 2 +- PyPI/src/guan/plot_figures.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/PyPI/setup.cfg b/PyPI/setup.cfg index 8b36c33..d06e475 100644 --- a/PyPI/setup.cfg +++ b/PyPI/setup.cfg @@ -1,7 +1,7 @@ [metadata] # replace with your username: name = guan -version = 0.0.32 +version = 0.0.33 author = guanjihuan author_email = guanjihuan@163.com description = An open source python package diff --git a/PyPI/src/guan/plot_figures.py b/PyPI/src/guan/plot_figures.py index 9aa66fe..0d54bcb 100644 --- a/PyPI/src/guan/plot_figures.py +++ b/PyPI/src/guan/plot_figures.py @@ -23,7 +23,7 @@ def plot(x_array, y_array, xlabel='x', ylabel='y', title='', filename='a', show= labels = ax.get_xticklabels() + ax.get_yticklabels() [label.set_fontname('Times New Roman') for label in labels] if save == 1: - plt.savefig(filename+format, dpi=dpi) + plt.savefig(filename+'.'+format, dpi=dpi) if show == 1: plt.show() plt.close('all') @@ -62,7 +62,7 @@ def plot_3d_surface(x_array, y_array, matrix, xlabel='x', ylabel='y', zlabel='z' for l in cbar.ax.yaxis.get_ticklabels(): l.set_family('Times New Roman') if save == 1: - plt.savefig(filename+format, dpi=dpi) + plt.savefig(filename+'.'+format, dpi=dpi) if show == 1: plt.show() plt.close('all') @@ -85,7 +85,7 @@ def plot_contour(x_array, y_array, matrix, xlabel='x', ylabel='y', title='', fil for l in cbar.ax.yaxis.get_ticklabels(): l.set_family('Times New Roman') if save == 1: - plt.savefig(filename+format, dpi=dpi) + plt.savefig(filename+'.'+format, dpi=dpi) if show == 1: plt.show() plt.close('all') \ No newline at end of file