当前位置:网站首页>Matplotlib drawing sin function image
Matplotlib drawing sin function image
2022-07-22 02:59:00 【Learning~~~】
import matplotlib.pyplot as plt
import numpy as np
# The goal is : draw sin Function image
# First step : draw x Axis scale
x = np.linspace(0, np.pi * 2, 300) # linspace Arithmetic sequence function ,x Span from 0 To 2pi, Yes 300ge Points are connected into lines
# The second step : draw y Axis
y = np.sin(x) # y yes x Of sin function
# The third step : Add necessary instructions
plt.xlabel("angle") # x Axis is angular degree
plt.ylabel("y_value") # sin Value size
plt.title("sin_image")
# Generate the image
plt.plot(x, y)
plt.show()
边栏推荐
- Kuberntes云原生实战一 高可用部署架构
- Mutex和智能指针替代读写锁
- MySQL performance optimization (II): select the optimized data type
- Utilisation simple de quartz et de ses emplois
- A Beginner guide to Deep Learning based Semantic Segmentation using Keras
- Airbnb 如何实现 Kubernetes 集群动态扩展
- 2019 Niuke summer multi school training camp (the seventh session) b-ireducible polynomial [number theory]
- 2019 Niuke summer multi school training camp (the seventh session) A-string [string minimum representation + violence enumeration]
- 卷积核扩大到51x51,新型CNN架构SLaK反击Transformer
- C语言的宏总结
猜你喜欢
bootloader系列四——时钟初始化
pytorch入门二 使用pyplot动态展示函数拟合过程
vivo官网APP全机型UI适配方案
源启数字化:既有模式,还是开源创新?|砺夏行动
Bootloader series 4 - clock initialization
【性能优化】MySQL常用慢查询分析工具
卷积核扩大到51x51,新型CNN架构SLaK反击Transformer
Educational Codeforces Round 70 A题 You Are Given Two Binary Strings...
45W性能释放+2.8K OLED全面屏 华硕灵耀X 14 2022精英气质高效利器
2022全球开发者薪资曝光:中国排第19名,平均年薪23,790美元
随机推荐
Sohu Changyou written test questions + summary of knowledge points
pytorch实现 分组卷积 深度可分离卷积
leetcode:169. Most elements
Detailed explanation of depthwise separable revolution
网页监控----Mjpg‐streamer移植
Educational Codeforces Round 70 A题 You Are Given Two Binary Strings...
Introduction to pytorch II use pyplot to dynamically show the function fitting process
Codeforces Round #580 (Div. 2) C- Almost Equal【规律】
Interpretation of openmmlab series framework (based on pytorch)
Educational codeforces round 70 a question you are given two binary strings
Kubernetes Pod: take you to play pod easily (Part 2)
Six ways for JS to implement inheritance
vivo官网APP全机型UI适配方案
2019牛客暑期多校训练营(第六场)D-Move 【暴力枚举】
Introduction to pytorch - Implementation of simple linear functions
[wechat applet] camera system camera (79/100)
本机电脑清除DNS缓存+浏览器清除DNS缓存
2019 Hangdian multi school second 6600 just skip the problem [Law + full arrangement + binary]
Clear DNS cache on local computer + clear DNS cache on Browser
Briefly summarize the concepts in image processing