当前位置:网站首页>Numpy----np. meshgrid()
Numpy----np. meshgrid()
2022-06-28 02:07:00 【Rookies should love learning】
Learning goals :
master np.meshgrid() The relevant grammar of
Implement traversal between elements , Generate corresponding coordinates , We can draw these coordinates into the coordinate system .
print("***********************")
import numpy as np
import matplotlib.pyplot as plt
x = np.array([0, 1, 3])
y = np.array([0, 1, 5])
X, Y = np.meshgrid(x, y)
print(X)
print("********************")
print(Y)
plt.plot(X, Y,
color='red', # Set all points to red
marker='*', # The shape of a dot is a dot
linestyle='-.') # The linetype is empty , That is, there is no line connection between points
plt.grid(True) # Generate table
plt.show()
print("***********************")

Equivalent to the x Axis coordinates (0,1,3) There are y The value of the axis (0,1,5), share 3*3=9 A little bit .
边栏推荐
- [Yocto RM]9 - QA Error and Warning Messages
- 解决ionic4 使用hammerjs手势 press 事件,页面无法滚动问题
- 零基础多图详解图神经网络
- MySQL - function
- 一张图弄懂 MIT,BSD,Apache几种开源协议之间的区别
- Solon 1.8.3 release, cloud native microservice development framework
- Adobe Premiere基础-常用的视频特效(边角定位,马赛克,模糊,锐化,手写工具,效果控件层级顺序)(十六)
- style中的scoped属性和lang属性
- 什麼是數字化?什麼是數字化轉型?為什麼企業選擇數字化轉型?
- [Yocto RM]8 - OpenEmbedded Kickstart (.wks) Reference
猜你喜欢

Solve storage problems? WMS warehouse management system solution

Using redis bitmap to realize personnel online monitoring

ShardingSphere-proxy-5.0.0建立mysql读写分离的连接(六)

Appium自动化测试基础 — ADB常用命令(一)

What problems should be evaluated before implementing MES management system

Web3 技术初体验以及相关学习资料

Appium自动化测试基础— 补充:App的包名(appPackage)和启动名(appActivity)

The research group of Xuyong and duanwenhui of Tsinghua University has developed an efficient and accurate first principles electronic structure deep learning method and program

利用redis bitmap实现人员在线情况监控

零基礎多圖詳解圖神經網絡
随机推荐
Coscon'22 lecturer solicitation order
What are the risks of opening a compass stock account? Is it safe to open a compass account
[Yocto RM]1 - System Requirements
Numpy----np.reshape()
[Yocto RM]1 - System Requirements
【嵌入式基础】内存(Cache,RAM,ROM,Flash)
Maimai hot post: Why are big factories keen on making wheels?
评价——灰色关联分析
Implementation of timed tasks in laravel framework
Prometeus 2.35.0 new features
Is it safe to open an online futures account?
零基础多图详解图神经网络
pytorch_lightning.utilities.exceptions.MisconfigurationException: You requested GPUs: [1] But...
Solon 1.8.3 发布,云原生微服务开发框架
Data analysts too hot? Monthly income 3W? Tell you the true situation of this industry with data
[sylixos] I2C device driver creation and use
Raspberry pie realizes intelligent cooling by temperature control fan
[elt.zip] openharmony paper Club - memory compression for data intensive applications
ionic4实现半星评分
自监督学习与药物发现