当前位置:网站首页>Visdom draws multiple dynamic loss curves
Visdom draws multiple dynamic loss curves
2022-06-23 05:41:00 【andrew P】
from visdom import Visdom
from time import sleep
'''
Take these three curves as an example :
y = 80*x
y = x**2
y = -100*x-100
'''
viz = Visdom()
x = []
Yn =[]
opts1 = {
"title": 'chart example1',
"xlabel":'x',
"ylabel":'y',
"width":500,
"height":300,
"legend":['b','c','d']
}
opts2 = {
"title": 'chart example2',
"xlabel":'x',
"ylabel":'y',
"width":500,
"height":300,
"legend":['b','c','d']
}
for i in range(1000):
x.append(i)
Yn.append([i*80, i**2, -i*100-100])
## Mode one ,replace
viz.line(X=x, Y=Yn, win='chart1',env='dynamic', opts=opts1)
## Mode two ,append
viz.line(X=[i], Y=[[i * 80, i ** 2, -i * 100 - 100]], win='chart2', env='dynamic',update='append',
opts=opts2)
sleep(0.01)
边栏推荐
- 云原生架构(04)-CNCF
- Markdown add background color to the picture
- Composite API
- CF [1700d] D. River locks (DP, bisection, Mathematics)
- Fs2119a Synchronous Boost IC output 3.3V and fs2119b Synchronous Boost IC output 5V
- GO语言-panic和recover
- Implementation of MySQL custom sequence number
- MySQL面试真题(二十六)——滴滴2020年笔试题
- GDB data reading in GDAL (III) of GIS
- QT QWidget nesting relative position acquisition (QT drawing nesting)
猜你喜欢

Qimen dunjia assistant decision software

面对新的挑战,成为更好的自己--进击的技术er

JDBC introductory learning (II) encapsulation tool class

Wechat applet: Star Trek spaceship ticket production and generation

制造业数字化转型存在问题及原因分析

Heimdall Database Proxy横向扩展提高20倍

Leetcode 797: all possible paths

软件设计开发笔记2:基于QT设计串口调试工具

App automated test appium advanced

Wechat applet; AI intelligent dubbing assistant
随机推荐
STC 32 Bit 8051 Single Chip Computer Development Example Tutorial one development environment
今日睡眠质量记录80分
About replay attack and defense
Fs2119a Synchronous Boost IC output 3.3V and fs2119b Synchronous Boost IC output 5V
Go language -panic and recover
云原生架构(04)-CNCF
云原生大趋势下的容器化技术现状与发展
visdom画多条动态损失曲线
Composite API
sprintf 格式代码使用不规范在不同平台下的表现
英集芯推出4串锂电池100W移动电源升降压方案SoC芯片IP5389
IP6809三线圈15W无线充电发射端方案ic英集芯
STC 32位8051单片机开发实例教程 一 开发环境搭建
技能自检 | 想当测试Leader,这6项技能你会吗?
What does it mean to open more accounts? Why open more accounts? How to implement it safely?
啊哈C语言 第8章 游戏时间到了(第29讲)
高等数学(第七版)同济大学 习题1-8 个人解答
【斯坦福计网CS144项目】Lab2: TCPReceiver
Today's sleep quality record 80 points
STC 32比特8051單片機開發實例教程 一 開發環境搭建