当前位置:网站首页>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()边栏推荐
- Configuring OSPF GR features for Huawei devices
- CoDeSys note 2: set coil and reset coil
- Raised a kitten
- AUTOSAR from getting started to becoming proficient (10) - embedded S19 file analysis
- Arrays and collections
- J'ai un chaton.
- Redis message queue
- ArcGIS application foundation 4 thematic map making
- Database: ODBC remote access SQL Server2008 in oracel
- Clear floating mode
猜你喜欢

Usage of test macro of GTEST

The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower

Database: ODBC remote access SQL Server2008 in oracel

C language learning notes (mind map)

华为路由器如何配置静态路由

CoDeSys note 2: set coil and reset coil

Report on the competition status and investment decision recommendations of Guangxi hospital industry in China from 2022 to 2028

H3C firewall rbm+vrrp networking configuration

Classes and objects (I) detailed explanation of this pointer

Analysis of grammar elements in turtle Library
随机推荐
Summary of data sets in intrusion detection field
ContentType的作用
Web service connector: Servlet
华为BFD的配置规范
LTE CSFB process
查詢生產訂單中某個(些)工作中心對應的標准文本碼
清除浮动的方式
HCIA复习
How to use the container reflection method encapsulated by thinkphp5.1 in business code
Hongliao Technology: how to quickly improve Tiktok store
A complete collection of necessary learning websites for office programmers
Cannot build artifact 'test Web: War expanded' because it is included into a circular depend solution
[SQL Server fast track] - authentication and establishment and management of user accounts
Li Chuang EDA learning notes 12: common PCB board layout constraint principles
Pay attention to the details of pytoch code, and it is easy to make mistakes
Bit operation rules
[Baiwen smart home] first day of the course_ Learn Embedded and understand the development mode of bare metal and RTOS
C language bubble sort
多线程应用的测试与调试
Demander le Code de texte standard correspondant à un centre de travail dans l'ordre de production