当前位置:网站首页>数据输出-图片注释、标注
数据输出-图片注释、标注
2022-07-28 00:23:00 【坠金】
在右上角标注哪条线是什么,叫做添加图例: plt.legend()
给图片一个名字: plt.titlt('图片名字')
import numpy as np
import matplotlib.pyplot as plt
x = np.linspace(0, 2, 100)
# Example 1
plt.figure()
plt.plot(x, x+2, label='linear')
plt.plot(x, x**2, label='quadratic')
plt.plot(x, x**3, label='cubic')
plt.xlabel('x label')
plt.ylabel('y label')
plt.title("Legend Example 1")
plt.legend()
plt.show()更进一步,其他一些标注方法见下面的链接
利用python画出折线图_python_脚本之家 (jb51.net)
单独标出某个点:
边栏推荐
猜你喜欢

Packet capturing wizard netcapture app packet capturing tutorial "complete"

Unity 通用红点系统

Graph theory analysis of white matter brain function network: neural markers for classification and prediction of depression

Small bulk quantitative stock trading record | data is the source in the quantitative system, which teaches you to build a universal data source framework

数据安全与隐私计算峰会-可证明安全:学习

How tormenting are weekly and monthly reports? Universal report template recommended collection! (template attached)

ue4 unreal NDisplay插件 简易使用 三折幕 详细...

Embedded classic communication protocol

网易云仿写

The storage cost is reduced by 80%. How does the cost management of youzan data middle office do?
随机推荐
软件测试面试题:你认为做好测试用例设计工作的关键是什么?
Causes and solutions of JS digital accuracy loss
Modify the request path using the streaming API of gateway
Gbase 8C snapshot synchronization function
Interviewer: are you sure redis is a single threaded process?
[interview: concurrent article 28:volatile] orderliness
集合/容器
Thinking about some things
物企大变局时代,SRM供应商采购系统助力企业打造物业采购数字化标杆
The storage cost is reduced by 80%. How does the cost management of youzan data middle office do?
Solution of digital commerce cloud supply chain centralized purchase management system: centralized purchase system management mode, digital control of enterprise materials
js 哪些情况不能用 JSON.parse 、JSON.stringify深拷贝及一个更好的深拷贝方法
Gbase 8C backup control function (I)
嵌入式经典通信协议
leetcode: 515. 在每个树行中找最大值
Lambda expressions and stream streams
Mark's story
Fiddler 手机抓包代理设置(针对华为荣耀60S)
基于 Flink CDC 实现海量数据的实时同步和转换
软件测试面试题:请详细介绍一下各种测试类型的含义?