当前位置:网站首页>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 .
边栏推荐
猜你喜欢

【ELT.ZIP】OpenHarmony啃论文俱乐部—数据密集型应用内存压缩

【永艺XY椅】试用体验
![pytorch_ lightning. utilities. exceptions. MisconfigurationException: You requested GPUs: [1] But...](/img/b4/8921c3ca5cd5a547768489d4a79202.png)
pytorch_ lightning. utilities. exceptions. MisconfigurationException: You requested GPUs: [1] But...

Qu'est - ce que la numérisation? Qu'est - ce que la transformation numérique? Pourquoi les entreprises choisissent - elles la transformation numérique?

Shardingsphere-proxy-5.0.0 establish MySQL read / write separation connection (6)

药物发现综述-02-分子性质预测

如何理解 Transformer 中的 Query、Key 与 Value
![[Yongyi XY chair] trial experience](/img/9e/9814bf21a79214d21d2a257c725147.jpg)
[Yongyi XY chair] trial experience

1382. 将二叉搜索树变平衡-常规方法

The practice of dual process guard and keeping alive in IM instant messaging development
随机推荐
How to understand query, key and value in transformer
Qu'est - ce que la numérisation? Qu'est - ce que la transformation numérique? Pourquoi les entreprises choisissent - elles la transformation numérique?
Interface component telerik UI for WPF Getting Started Guide - how to switch custom styles using themes
[elt.zip] openharmony paper Club - memory compression for data intensive applications
将某数据库N多表名作为另外一张表中某一列得值(范围可以是别的数据库中得某张表)
I/O限制进程与CPU限制进程
Adobe Premiere Basics - common video effects (cropping, black and white, clip speed, mirroring, lens halo) (XV)
Implementation of timed tasks in laravel framework
药物发现综述-02-分子性质预测
Appium自动化测试基础 — ADB常用命令(一)
General process after reference layer reboot
嵌入式必学,硬件资源接口详解——基于ARM AM335X开发板 (上)
Cesium 多边形(polygon)extrudedHeight 和 height 的区别
万字长文看懂商业智能(BI)|推荐收藏
如何阅读一篇论文
[sylixos] I2C device driver creation and use
Numpy----np.reshape()
Ten thousand words long article understanding business intelligence (BI) | recommended collection
Hi, you have a code review strategy to check!
[Yocto RM]3 - Yocto Project Releases and the Stable Release Process