From 0a37430ff96bd1f15f4dcf015ce9fecef622fb25 Mon Sep 17 00:00:00 2001 From: guanjihuan Date: Mon, 8 Jul 2024 23:13:32 +0800 Subject: [PATCH] 0.1.113 --- PyPI/setup.cfg | 2 +- PyPI/src/guan.egg-info/PKG-INFO | 2 +- PyPI/src/guan/figure_plotting.py | 2 +- PyPI/src/guan/file_reading_and_writing.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/PyPI/setup.cfg b/PyPI/setup.cfg index a7caab8..b4a72fd 100644 --- a/PyPI/setup.cfg +++ b/PyPI/setup.cfg @@ -1,7 +1,7 @@ [metadata] # replace with your username: name = guan -version = 0.1.112 +version = 0.1.113 author = guanjihuan author_email = guanjihuan@163.com description = An open source python package diff --git a/PyPI/src/guan.egg-info/PKG-INFO b/PyPI/src/guan.egg-info/PKG-INFO index 038ab2f..514f605 100644 --- a/PyPI/src/guan.egg-info/PKG-INFO +++ b/PyPI/src/guan.egg-info/PKG-INFO @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: guan -Version: 0.1.112 +Version: 0.1.113 Summary: An open source python package Home-page: https://py.guanjihuan.com Author: guanjihuan diff --git a/PyPI/src/guan/figure_plotting.py b/PyPI/src/guan/figure_plotting.py index 08fc628..0af651e 100644 --- a/PyPI/src/guan/figure_plotting.py +++ b/PyPI/src/guan/figure_plotting.py @@ -302,10 +302,10 @@ def draw_dots_and_lines(coordinate_array, draw_dots=1, draw_lines=1, max_distanc import numpy as np import matplotlib.pyplot as plt coordinate_array = np.array(coordinate_array) - print(coordinate_array.shape) x_range = max(coordinate_array[:, 0])-min(coordinate_array[:, 0]) y_range = max(coordinate_array[:, 1])-min(coordinate_array[:, 1]) fig, ax = plt.subplots(figsize=(6*x_range/y_range,6)) + ax.set_aspect('equal') # important code ensuring that the x and y axes have the same scale. plt.subplots_adjust(left=0, bottom=0, right=1, top=1) plt.axis('off') if draw_lines==1: diff --git a/PyPI/src/guan/file_reading_and_writing.py b/PyPI/src/guan/file_reading_and_writing.py index 935d182..cc3419d 100644 --- a/PyPI/src/guan/file_reading_and_writing.py +++ b/PyPI/src/guan/file_reading_and_writing.py @@ -307,7 +307,7 @@ def write_one_dimensional_data_without_opening_file(x_array, y_array, f): i0 += 1 # 在文件中写入XYZ数据(一行一组x, y, z) -def write_one_dimensional_data(x_array, y_array, z_array, filename='a', file_format='.txt'): +def write_xyz_data(x_array, y_array, z_array, filename='a', file_format='.txt'): import guan with open(filename+file_format, 'w', encoding='UTF-8') as f: write_xyz_data_without_opening_file(x_array, y_array, z_array, f)