This commit is contained in:
guanjihuan 2023-07-12 22:22:54 +08:00
parent 5d999531f7
commit 9182696bd6
4 changed files with 9 additions and 5 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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