转载自:http://blog.sina.com.cn/s/blog_b48a7ac30102w6xg.html 自我学习总结: 1.打开VMD main上Extensions中的TkConsole这是VMD的控制命令区域. 2.围绕x轴旋转90:rotat x by 90 (或者rotat x to 90) 3.原子颜色设置+动力学键: 用fortran编写成lammps文件,可以识别原子类型,比如系统原子类型是1和2,点击VMD Main-Graphics-Colors-Cate
今日学习了python的词云技术 from os import path from wordcloud import WordCloud import matplotlib.pyplot as plt d=path.dirname(__file__) text=open(path.join(d,"data//constitution.txt")).read() # 步骤3-2:设置一张词云图对象 wordcloud = WordCloud(background_color="
import matplotlib.pyplot as plt import numpy as np fig, axes = plt.subplots(2, 2) def showim(): for i in range(2): for j in range(2): axes[i,j].plot(np.random.randint(10,size=10)) # 为每个子图添加标题 axes[i,j].set_title("picture "+str(i)+" "+s
主要用代码注释来初步学习OpenCV-Python 1. 图片初使用(结合matplotlib) import cv2from matplotlib import pyplot as plt #Load an color image in grayscaleimg = cv2.imread(r'woman.jpg',0) #0表示cv2.IMREAD_GRAYSCALE.另1表示cv2.IMREAD_COLOR, -1表示cv2.IMREAD_UNCHANGEDplt.imshow(img,cm