From b5ee3b910c9bf7e879ce34c5931521926a32d287 Mon Sep 17 00:00:00 2001 From: guanjihuan Date: Thu, 16 Dec 2021 16:52:13 +0800 Subject: [PATCH] version 0.0.31 --- API_reference.py | 2 +- PyPI/setup.cfg | 2 +- PyPI/src/guan/Fourier_transform.py | 2 +- PyPI/src/guan/Hamiltonian_of_finite_size.py | 2 +- .../guan/Hamiltonian_of_models_in_the_reciprocal_space.py | 2 +- PyPI/src/guan/__init__.py | 2 +- PyPI/src/guan/basic_functions.py | 2 +- PyPI/src/guan/calculate_Green_functions.py | 2 +- .../guan/calculate_band_structures_and_wave_functions.py | 2 +- PyPI/src/guan/calculate_conductance.py | 2 +- PyPI/src/guan/calculate_density_of_states.py | 2 +- PyPI/src/guan/calculate_scattering_matrix.py | 2 +- PyPI/src/guan/calculate_topological_invariant.py | 2 +- PyPI/src/guan/others.py | 2 +- PyPI/src/guan/plot_figures.py | 6 +++--- PyPI/src/guan/read_and_write.py | 2 +- 16 files changed, 18 insertions(+), 18 deletions(-) diff --git a/API_reference.py b/API_reference.py index 8260a44..b3a840c 100644 --- a/API_reference.py +++ b/API_reference.py @@ -107,7 +107,7 @@ guan.write_one_dimensional_data(x_array, y_array, filename='a') guan.write_two_dimensional_data(x_array, y_array, matrix, filename='a') # plot figures # Source code: https://py.guanjihuan.com/plot_figures -guan.plot(x_array, y_array, xlabel='x', ylabel='y', title='', filename='a', show=1, save=0, type='', y_min=None, y_max=None) +guan.plot(x_array, y_array, xlabel='x', ylabel='y', title='', filename='a', show=1, save=0, type='', y_min=None, y_max=None, linewidth=None, markersize=None) guan.plot_3d_surface(x_array, y_array, matrix, xlabel='x', ylabel='y', zlabel='z', title='', filename='a', show=1, save=0, z_min=None, z_max=None) guan.plot_contour(x_array, y_array, matrix, xlabel='x', ylabel='y', title='', filename='a', show=1, save=0) diff --git a/PyPI/setup.cfg b/PyPI/setup.cfg index d29abfb..8758803 100644 --- a/PyPI/setup.cfg +++ b/PyPI/setup.cfg @@ -1,7 +1,7 @@ [metadata] # replace with your username: name = guan -version = 0.0.30 +version = 0.0.31 author = guanjihuan author_email = guanjihuan@163.com description = An open source python package diff --git a/PyPI/src/guan/Fourier_transform.py b/PyPI/src/guan/Fourier_transform.py index 4b76fca..3095dbb 100644 --- a/PyPI/src/guan/Fourier_transform.py +++ b/PyPI/src/guan/Fourier_transform.py @@ -1,4 +1,4 @@ -# Guan is an open-source python package developed and maintained by https://www.guanjihuan.com. The primary location of this package is on website https://py.guanjihuan.com. +# Guan is an open-source python package developed and maintained by https://www.guanjihuan.com/about. The primary location of this package is on website https://py.guanjihuan.com. # Fourier_transform diff --git a/PyPI/src/guan/Hamiltonian_of_finite_size.py b/PyPI/src/guan/Hamiltonian_of_finite_size.py index afe7b30..41d5583 100644 --- a/PyPI/src/guan/Hamiltonian_of_finite_size.py +++ b/PyPI/src/guan/Hamiltonian_of_finite_size.py @@ -1,4 +1,4 @@ -# Guan is an open-source python package developed and maintained by https://www.guanjihuan.com. The primary location of this package is on website https://py.guanjihuan.com. +# Guan is an open-source python package developed and maintained by https://www.guanjihuan.com/about. The primary location of this package is on website https://py.guanjihuan.com. # Hamiltonian of finite size diff --git a/PyPI/src/guan/Hamiltonian_of_models_in_the_reciprocal_space.py b/PyPI/src/guan/Hamiltonian_of_models_in_the_reciprocal_space.py index 840eecc..ca43c48 100644 --- a/PyPI/src/guan/Hamiltonian_of_models_in_the_reciprocal_space.py +++ b/PyPI/src/guan/Hamiltonian_of_models_in_the_reciprocal_space.py @@ -1,4 +1,4 @@ -# Guan is an open-source python package developed and maintained by https://www.guanjihuan.com. The primary location of this package is on website https://py.guanjihuan.com. +# Guan is an open-source python package developed and maintained by https://www.guanjihuan.com/about. The primary location of this package is on website https://py.guanjihuan.com. # Hamiltonian of models in the reciprocal space diff --git a/PyPI/src/guan/__init__.py b/PyPI/src/guan/__init__.py index 182cc4e..3206f8f 100644 --- a/PyPI/src/guan/__init__.py +++ b/PyPI/src/guan/__init__.py @@ -1,4 +1,4 @@ -# Guan is an open-source python package developed and maintained by https://www.guanjihuan.com. The primary location of this package is on website https://py.guanjihuan.com. +# Guan is an open-source python package developed and maintained by https://www.guanjihuan.com/about. The primary location of this package is on website https://py.guanjihuan.com. # import modules diff --git a/PyPI/src/guan/basic_functions.py b/PyPI/src/guan/basic_functions.py index 780fea6..80542a5 100644 --- a/PyPI/src/guan/basic_functions.py +++ b/PyPI/src/guan/basic_functions.py @@ -1,4 +1,4 @@ -# Guan is an open-source python package developed and maintained by https://www.guanjihuan.com. The primary location of this package is on website https://py.guanjihuan.com. +# Guan is an open-source python package developed and maintained by https://www.guanjihuan.com/about. The primary location of this package is on website https://py.guanjihuan.com. # basic functions diff --git a/PyPI/src/guan/calculate_Green_functions.py b/PyPI/src/guan/calculate_Green_functions.py index 6d14406..cbab0ae 100644 --- a/PyPI/src/guan/calculate_Green_functions.py +++ b/PyPI/src/guan/calculate_Green_functions.py @@ -1,4 +1,4 @@ -# Guan is an open-source python package developed and maintained by https://www.guanjihuan.com. The primary location of this package is on website https://py.guanjihuan.com. +# Guan is an open-source python package developed and maintained by https://www.guanjihuan.com/about. The primary location of this package is on website https://py.guanjihuan.com. # calculate Green functions diff --git a/PyPI/src/guan/calculate_band_structures_and_wave_functions.py b/PyPI/src/guan/calculate_band_structures_and_wave_functions.py index 2fba98c..e99862e 100644 --- a/PyPI/src/guan/calculate_band_structures_and_wave_functions.py +++ b/PyPI/src/guan/calculate_band_structures_and_wave_functions.py @@ -1,4 +1,4 @@ -# Guan is an open-source python package developed and maintained by https://www.guanjihuan.com. The primary location of this package is on website https://py.guanjihuan.com. +# Guan is an open-source python package developed and maintained by https://www.guanjihuan.com/about. The primary location of this package is on website https://py.guanjihuan.com. # calculate_band_structures_and_wave_functions diff --git a/PyPI/src/guan/calculate_conductance.py b/PyPI/src/guan/calculate_conductance.py index c362299..2b00d2f 100644 --- a/PyPI/src/guan/calculate_conductance.py +++ b/PyPI/src/guan/calculate_conductance.py @@ -1,4 +1,4 @@ -# Guan is an open-source python package developed and maintained by https://www.guanjihuan.com. The primary location of this package is on website https://py.guanjihuan.com. +# Guan is an open-source python package developed and maintained by https://www.guanjihuan.com/about. The primary location of this package is on website https://py.guanjihuan.com. # calculate conductance diff --git a/PyPI/src/guan/calculate_density_of_states.py b/PyPI/src/guan/calculate_density_of_states.py index 3483f61..1e345c7 100644 --- a/PyPI/src/guan/calculate_density_of_states.py +++ b/PyPI/src/guan/calculate_density_of_states.py @@ -1,4 +1,4 @@ -# Guan is an open-source python package developed and maintained by https://www.guanjihuan.com. The primary location of this package is on website https://py.guanjihuan.com. +# Guan is an open-source python package developed and maintained by https://www.guanjihuan.com/about. The primary location of this package is on website https://py.guanjihuan.com. # calculate density of states diff --git a/PyPI/src/guan/calculate_scattering_matrix.py b/PyPI/src/guan/calculate_scattering_matrix.py index 6cc4d5d..8fa51c6 100644 --- a/PyPI/src/guan/calculate_scattering_matrix.py +++ b/PyPI/src/guan/calculate_scattering_matrix.py @@ -1,4 +1,4 @@ -# Guan is an open-source python package developed and maintained by https://www.guanjihuan.com. The primary location of this package is on website https://py.guanjihuan.com. +# Guan is an open-source python package developed and maintained by https://www.guanjihuan.com/about. The primary location of this package is on website https://py.guanjihuan.com. # calculate scattering matrix diff --git a/PyPI/src/guan/calculate_topological_invariant.py b/PyPI/src/guan/calculate_topological_invariant.py index 8004fdf..03f7b9c 100644 --- a/PyPI/src/guan/calculate_topological_invariant.py +++ b/PyPI/src/guan/calculate_topological_invariant.py @@ -1,4 +1,4 @@ -# Guan is an open-source python package developed and maintained by https://www.guanjihuan.com. The primary location of this package is on website https://py.guanjihuan.com. +# Guan is an open-source python package developed and maintained by https://www.guanjihuan.com/about. The primary location of this package is on website https://py.guanjihuan.com. # calculate topological invariant diff --git a/PyPI/src/guan/others.py b/PyPI/src/guan/others.py index 256b32e..ea93fb0 100644 --- a/PyPI/src/guan/others.py +++ b/PyPI/src/guan/others.py @@ -1,4 +1,4 @@ -# Guan is an open-source python package developed and maintained by https://www.guanjihuan.com. The primary location of this package is on website https://py.guanjihuan.com. +# Guan is an open-source python package developed and maintained by https://www.guanjihuan.com/about. The primary location of this package is on website https://py.guanjihuan.com. # others diff --git a/PyPI/src/guan/plot_figures.py b/PyPI/src/guan/plot_figures.py index 10e9fee..89224b5 100644 --- a/PyPI/src/guan/plot_figures.py +++ b/PyPI/src/guan/plot_figures.py @@ -1,14 +1,14 @@ -# Guan is an open-source python package developed and maintained by https://www.guanjihuan.com. The primary location of this package is on website https://py.guanjihuan.com. +# Guan is an open-source python package developed and maintained by https://www.guanjihuan.com/about. The primary location of this package is on website https://py.guanjihuan.com. # plot figures import numpy as np -def plot(x_array, y_array, xlabel='x', ylabel='y', title='', filename='a', show=1, save=0, type='', y_min=None, y_max=None): +def plot(x_array, y_array, xlabel='x', ylabel='y', title='', filename='a', show=1, save=0, type='', y_min=None, y_max=None, linewidth=None, markersize=None): import matplotlib.pyplot as plt fig, ax = plt.subplots() plt.subplots_adjust(bottom=0.20, left=0.18) - ax.plot(x_array, y_array, type) + ax.plot(x_array, y_array, type, linewidth=linewidth, markersize=markersize) ax.grid() ax.set_title(title, fontsize=20, fontfamily='Times New Roman') ax.set_xlabel(xlabel, fontsize=20, fontfamily='Times New Roman') diff --git a/PyPI/src/guan/read_and_write.py b/PyPI/src/guan/read_and_write.py index fa42cd0..93f94ed 100644 --- a/PyPI/src/guan/read_and_write.py +++ b/PyPI/src/guan/read_and_write.py @@ -1,4 +1,4 @@ -# Guan is an open-source python package developed and maintained by https://www.guanjihuan.com. The primary location of this package is on website https://py.guanjihuan.com. +# Guan is an open-source python package developed and maintained by https://www.guanjihuan.com/about. The primary location of this package is on website https://py.guanjihuan.com. # read and write