当前位置:网站首页>数据输出-图片注释、标注
数据输出-图片注释、标注
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)
单独标出某个点:
边栏推荐
猜你喜欢

基于 Flink CDC 实现海量数据的实时同步和转换

Process data and change the name of data

Real time synchronization and conversion of massive data based on Flink CDC

Redis设计规范

N32l43x FLASH read \ write \ erase operation summary

2022软件测试技能 Robotframework + SeleniumLibrary + Jenkins web关键字驱动自动化实战教程

Flink 在 讯飞 AI 营销业务的实时数据分析实践

unreal ue4.27 switchboard 移植出引擎流程

Machine learning how to achieve epidemic visualization -- epidemic data analysis and prediction practice

Collection / container
随机推荐
DeviceXPlorer OPC Server支持哪些设备?本文已列举出来了
Unity universal red dot system
ros2 launch文件常用模块
什么是方法,什么是方法论:了解自我精进提升的底层逻辑
LeetCode高频题128. 最长连续序列,经常被互联网大厂面试考到
Digital economy is the core of future economic development
A Tiger's Tale
数商云供应链集采管理系统解决方案:集采系统管理模式,数字化管控企业物资
GBase 8c 备份控制函数(四)
开源飞控(PX4、ardupilot)
Gbase 8C recovery control function
QGIS制图:矢量数据制图流程及导出
抓包精灵NetCapture APP抓包教程《齐全》
Fiddler mobile packet capturing agent settings (for Huawei glory 60s)
Hcip 13th day notes
Gbase 8C transaction ID and snapshot (I)
Machine learning how to achieve epidemic visualization -- epidemic data analysis and prediction practice
以“数字化渠道”撬动家用电器消费蓝海,经销商在线系统让企业生意更进一步
BGP联邦实验
暴雪《暗黑破坏神 4》PS5 / PS4 测试版添加到 PlayStation 数据库