diff --git a/API_Reference/API_Reference.py b/API_Reference/API_Reference.py index 4be0fd8..27175ac 100644 --- a/API_Reference/API_Reference.py +++ b/API_Reference/API_Reference.py @@ -470,6 +470,8 @@ guan.combine_four_images(image_path_array, figsize=(16,16), show=0, save=1, file # 制作GIF动画 guan.make_gif(image_path_array, filename='a', duration=0.1) +# 选取颜色 +color_array = guan.color_matplotlib() # Module 12: data processing diff --git a/Source_Code/PyPI/setup.cfg b/Source_Code/PyPI/setup.cfg index 000152a..b6ed955 100644 --- a/Source_Code/PyPI/setup.cfg +++ b/Source_Code/PyPI/setup.cfg @@ -1,7 +1,7 @@ [metadata] # replace with your username: name = guan -version = 0.0.172 +version = 0.0.173 author = guanjihuan author_email = guanjihuan@163.com description = An open source python package diff --git a/Source_Code/PyPI/src/guan.egg-info/PKG-INFO b/Source_Code/PyPI/src/guan.egg-info/PKG-INFO index 17e022c..b0e59ed 100644 --- a/Source_Code/PyPI/src/guan.egg-info/PKG-INFO +++ b/Source_Code/PyPI/src/guan.egg-info/PKG-INFO @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: guan -Version: 0.0.172 +Version: 0.0.173 Summary: An open source python package Home-page: https://py.guanjihuan.com Author: guanjihuan diff --git a/Source_Code/PyPI/src/guan/__init__.py b/Source_Code/PyPI/src/guan/__init__.py index 9f915cc..d85b778 100644 --- a/Source_Code/PyPI/src/guan/__init__.py +++ b/Source_Code/PyPI/src/guan/__init__.py @@ -2,7 +2,7 @@ # With this package, you can calculate band structures, density of states, quantum transport and topological invariant of tight-binding models by invoking the functions you need. Other frequently used functions are also integrated in this package, such as file reading/writing, figure plotting, data processing. -# The current version is guan-0.0.172, updated on July 02, 2023. +# The current version is guan-0.0.173, updated on July 12, 2023. # Installation: pip install --upgrade guan @@ -2781,8 +2781,10 @@ def make_gif(image_path_array, filename='a', duration=0.1): imageio.mimsave(filename+'.gif', images, 'GIF', duration=duration) - - +# 选取颜色 +def color_matplotlib(): + color_array = ['tab:blue', 'tab:orange', 'tab:green', 'tab:red', 'tab:purple', 'tab:brown', 'tab:pink', 'tab:gray', 'tab:olive', 'tab:cyan'] + return color_array