当前位置:网站首页>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 .
边栏推荐
- js实现在可视区内,文字图片动画效果
- Ffmpeg tanscoding transcoding
- SSM based campus part-time platform for College Students
- MySQL timestampdiff interval
- [set theory] ordered pair (ordered pair | ordered triple | ordered n ancestor)
- Data Lake three swordsmen -- comparative analysis of delta, Hudi and iceberg
- How to retrieve the password for opening word files
- Dismantle a 100000 yuan BYD "Yuan". Come and see what components are in it.
- AWS VPC
- [NLP]—sparse neural network最新工作简述
猜你喜欢

vulnhub HA: Natraj
![[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

用户体验五要素

CVPR 2022 | Dalian Institute of technology proposes a self calibration lighting framework for low light level image enhancement of real scenes

Design and implementation of JSP logistics center storage information management system
![[free completion] development of course guidance platform (source code +lunwen)](/img/14/7c1c822bda050a805fa7fc25b802a4.jpg)
[free completion] development of course guidance platform (source code +lunwen)

Feature_selection

Which Bluetooth headset is good about 400? Four Bluetooth headsets with strong noise reduction are recommended

Web - Information Collection

Which code editor is easy to use? Code editing software recommendation
随机推荐
因子选股-打分模型
[fairseq] 报错:TypeError: _broadcast_coalesced(): incompatible function arguments
mysql字段userid逗号分开保存按userid查询
MySQL field userid comma separated save by userid query
Library management system based on SSM
xrandr修改分辨率與刷新率
Basic syntax of class
[pat (basic level) practice] - [simple simulation] 1063 calculate the spectral radius
What functions need to be set after the mall system is built
How to retrieve the password for opening word files
Analysis of the reason why the server cannot connect remotely
使用BENCHMARKSQL工具对kingbasees并发测试时kill掉主进程成功后存在子线程未及时关闭
重绘和回流
[graduation season · aggressive technology Er] Confessions of workers
MySQL create table
P35-P41 fourth_ context
MySQL timestampdiff interval
Export of zip file
Xrandr modifier la résolution et le taux de rafraîchissement
RSRS指标择时及大小盘轮动