当前位置:网站首页>Commodity price visualization
Commodity price visualization
2022-07-06 05:58:00 【Twenty four bridges_】
import numpy as np
import matplotlib.pyplot as plt
plt.rcParams['font.sans-serif'] = ['SimHei']
plt.rcParams['axes.unicode_minus'] = False
with open('rb2010.csv', 'r', encoding='utf-8') as f:
file = f.readlines()[1:]
date = [i.strip().split(',')[0] for i in file]
settle = [int(i.strip().split(',')[5]) for i in file]
plt.grid(axis='both', color='k', linestyle='--', linewidth=1)
plt.xticks([i for i in range(len(date)) if i % 10 == 0], [i[-4:] for i in date[::10]], rotation=-30)
plt.yticks(np.arange(3200, 3801, 100))
plt.xlabel('2020 March to August ')
plt.ylabel(' Price ( element )')
plt.title(' Rebar futures trend chart ')
plt.plot(date, settle, linestyle='-', color='red', linewidth=1)
plt.savefig('rb2010p3.png')
plt.show()边栏推荐
- Migrate Infones to stm32
- C language learning notes (mind map)
- H3C firewall rbm+vrrp networking configuration
- Hongliao Technology: Liu qiangdong's "heavy hand"
- Is it difficult for an information system project manager?
- How to recover Huawei router's forgotten password
- First knowledge database
- Redis6 cluster setup
- 华为BFD的配置规范
- Auto. JS learning notes 17: basic listening events and UI simple click event operations
猜你喜欢

Garbage collector with serial, throughput priority and response time priority

What preparations should be made for website server migration?

Construction of yolox based on paste framework

Novice entry SCM must understand those things

c语言——冒泡排序
![[untitled]](/img/5d/028b9d19e9a2b217f40198d4631db2.png)
[untitled]

ContentType的作用

wib3.0 跨越,在跨越(ง •̀_•́)ง

【论文代码】SML部分代码阅读

Jushan database appears again in the gold fair to jointly build a new era of digital economy
随机推荐
网站进行服务器迁移前应做好哪些准备?
[untitled]
[Jiudu OJ 07] folding basket
进程和线程
養了只小猫咪
Grant Yu, build a web page you want from 0
【课程笔记】编译原理
C language bubble sort
初识数据库
IPv6 comprehensive experiment
Clear floating mode
Is it difficult for an information system project manager?
Raised a kitten
Summary of data sets in intrusion detection field
【LeetCode】Day96-第一个唯一字符&赎金信&字母异位词
[Jiudu OJ 08] simple search x
P2802 回家
Sqlmap tutorial (III) practical skills II
Migrate Infones to stm32
(5) Explanation of yolo-v3 core source code (3)