numpy - matlibplot 基于矩阵的绘图线
问题描述
matplotlib 和 numpy 的新手。
我有一个代表 L 形的矩阵:
import numpy as np
L = np.array([[1, 1, 1.5, 1.5, 2, 2], [2, 4, 4, 2.5, 2.5, 2]])
如何在 matplotlib 中绘制它?
解决方案
推荐阅读
- javascript - 我可以从 eventBus 侦听器发送自定义事件吗?
- python - 使用 Stripe 和 Python-Flask 的订阅示例?
- php - 使用foreach时如何只显示一次数据
- wildfly - 消息传输过程中的sccp层问题
- scala - Scala 嵌套函数 - 调用
- amazon-ec2 - 通过 RESTful API 公开的云提供商 SLA
- html - 将 div 中的图像元素居中
- java - 如何在 Spring Boot 中编写 Rest API 以下载资源中存在的 Excel 表?
- unix - 如何授予特定用户对 unix 文件的读取权限
- python - Tensorflow 2:获取张量值