当前位置:网站首页>Two drawing interfaces - 1 Matlab style interface
Two drawing interfaces - 1 Matlab style interface
2022-07-03 04:25:00 【You can sleep at this stage】
MATLAB Style interface by plt Module supply ,plt Contains a series of drawing commands ( function ), Name and MATLAB Almost the same .
# The import module / package
import matplotlib.pyplot as plt
import numpy as np
# Generate the data
x = np.linspace(0,10,200)
# Create a shape
plt.figure()
# Create two subgraph templates
# Create the first sub graph
plt.subplot(2,1,1)
plt.plot(x,np.cos(x))# Drawing graphics
# Create the 2 Subtext
plt.subplot(2,1,2)
plt.plot(x,np.sin(x))# Drawing graphics
plt.show()

It's used here 3 An order , Each one is very concise .
- figure() function : Create a blank graphic .
- subplot ( rows , columns , subplot number ) function : Create subgraphs , The first 1 Set the number of lines in the subgraph with three parameters , The first 2 Parameters set the number of subgraphs , The first 3 Parameter setting sub figure serial number .
- plot (x , y ) function : Drawing graphics , The first 1 The parameter is x Axis provides data , The first 2 The parameter is y Axis provides data .
边栏推荐
- Fcpx template: sweet memory electronic photo album photo display animation beautiful memory
- Use the benchmarksql tool to perform a data prompt on kingbases. The jdbc driver cannot be found
- GFS distributed file system (it's nice to meet it alone)
- Bugku CTF daily question baby_ flag. txt
- Employee attendance management system based on SSM
- [graduation season · aggressive technology Er] Confessions of workers
- Function introduction of member points mall system
- When using the benchmarksql tool to preheat data for kingbasees, execute: select sys_ Prewarm ('ndx_oorder_2 ') error
- [set theory] inclusion exclusion principle (including examples of exclusion principle)
- 使用BENCHMARKSQL工具对kingbasees并发测试时kill掉主进程成功后存在子线程未及时关闭
猜你喜欢

JS realizes the animation effect of text and pictures in the visual area

国产PC系统完成闭环,替代美国软硬件体系的时刻已经到来

Jincang KFS data bidirectional synchronization scenario deployment

C language series - Section 3 - functions

Bugku CTF daily question baby_ flag. txt

金仓KFS数据双向同步场景部署

FuncS sh file not found when using the benchmarksql tool to test kingbases

Competitive product analysis and writing
![[literature reading] sparse in deep learning: practicing and growth for effective information and training in NN](/img/7e/50fa6f65b5a4f0bb60909f57daff56.png)
[literature reading] sparse in deep learning: practicing and growth for effective information and training in NN
![[fxcg] inflation differences will still lead to the differentiation of monetary policies in various countries](/img/56/386f0fd6553b8b9711e14c54705ae3.jpg)
[fxcg] inflation differences will still lead to the differentiation of monetary policies in various countries
随机推荐
一名外包仔的2022年中总结
MySQL timestampdiff interval
Introduction of pointer variables in function parameters
Feature_selection
Export of zip file
SSM based campus part-time platform for College Students
Kingbasees plug-in KDB of Jincang database_ database_ link
Supervised pre training! Another exploration of text generation!
Golang -- realize file transfer
Sklearn data preprocessing
Kingbasees plug-in KDB of Jincang database_ date_ function
How to choose cross-border e-commerce multi merchant system
Joint set search: merge intervals and ask whether two numbers are in the same set
Jincang KFS data bidirectional synchronization scenario deployment
Interface in TS
智能合约安全审计公司选型分析和审计报告资源下载---国内篇
GFS分布式文件系统(光是遇见已经很美好了)
Employee attendance management system based on SSM
Square root of X
Web - Information Collection