Matplotlib 和 pycharm

建立基本环境

  • pycharm中新建项目,Environment选择Virtualenv
  • 在venv下新建pip.ini, 内容如下
[global]
index-url = http://pypi.douban.com/simple
[install]
trusted-host = pypi.douban.com
  • 创建main.py
import numpy as np
import matplotlib.pyplot as plt

X = np.linspace(-np.pi, np.pi, 256, endpoint=True)
C,S = np.cos(X), np.sin(X)

plt.plot(X,C)
plt.plot(X,S)

plt.show()
  • 在编辑器中,没有的包会有提示,点击Alt-Enter,会调用pip自动安装。如果不配置pip,下载会很慢

Matplotlib厉害

坐标轴和刻度、网格

https://blog.csdn.net/wuzlun/article/details/80053277

  • 线性变换
    https://matplotlib.org/3.1.1/api/transformations.html
  • 另一个
    https://notgnoshi.github.io/linear-transformations/
  • C
    https://dododas.github.io/linear-algebra-with-python/posts/16-12-29-2d-transformations.html

Jupyter Note

https://jupyter.org/install.html

Python的拉伸和旋转

https://blog.csdn.net/wuguangbin1230/article/details/71107109

你可能感兴趣的:(Matplotlib 和 pycharm)