version 0.0.31
This commit is contained in:
parent
c7cb798536
commit
b5ee3b910c
@ -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')
|
guan.write_two_dimensional_data(x_array, y_array, matrix, filename='a')
|
||||||
|
|
||||||
# plot figures # Source code: https://py.guanjihuan.com/plot_figures
|
# 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_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)
|
guan.plot_contour(x_array, y_array, matrix, xlabel='x', ylabel='y', title='', filename='a', show=1, save=0)
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
[metadata]
|
[metadata]
|
||||||
# replace with your username:
|
# replace with your username:
|
||||||
name = guan
|
name = guan
|
||||||
version = 0.0.30
|
version = 0.0.31
|
||||||
author = guanjihuan
|
author = guanjihuan
|
||||||
author_email = guanjihuan@163.com
|
author_email = guanjihuan@163.com
|
||||||
description = An open source python package
|
description = An open source python package
|
||||||
|
@ -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
|
# Fourier_transform
|
||||||
|
|
||||||
|
@ -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
|
# Hamiltonian of finite size
|
||||||
|
|
||||||
|
@ -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
|
# Hamiltonian of models in the reciprocal space
|
||||||
|
|
||||||
|
@ -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
|
# import modules
|
||||||
|
|
||||||
|
@ -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
|
# basic functions
|
||||||
|
|
||||||
|
@ -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
|
# calculate Green functions
|
||||||
|
|
||||||
|
@ -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
|
# calculate_band_structures_and_wave_functions
|
||||||
|
|
||||||
|
@ -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
|
# calculate conductance
|
||||||
|
|
||||||
|
@ -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
|
# calculate density of states
|
||||||
|
|
||||||
|
@ -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
|
# calculate scattering matrix
|
||||||
|
|
||||||
|
@ -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
|
# calculate topological invariant
|
||||||
|
|
||||||
|
@ -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
|
# others
|
||||||
|
|
||||||
|
@ -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
|
# plot figures
|
||||||
|
|
||||||
import numpy as np
|
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
|
import matplotlib.pyplot as plt
|
||||||
fig, ax = plt.subplots()
|
fig, ax = plt.subplots()
|
||||||
plt.subplots_adjust(bottom=0.20, left=0.18)
|
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.grid()
|
||||||
ax.set_title(title, fontsize=20, fontfamily='Times New Roman')
|
ax.set_title(title, fontsize=20, fontfamily='Times New Roman')
|
||||||
ax.set_xlabel(xlabel, fontsize=20, fontfamily='Times New Roman')
|
ax.set_xlabel(xlabel, fontsize=20, fontfamily='Times New Roman')
|
||||||
|
@ -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
|
# read and write
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user