用 Python / Matplotlib 画出来的股票 K线图 - Jacky Liu's Blog

用 Python / Matplotlib 画出来的股票 K线图

Jacky Liu posted @ 2011年2月20日 17:27 in Python with tags python Matplotlib candlestick K线 蜡烛图 股票 , 29732 阅读

---- 过年后开始真正学用 Matplotlib 画一些实际的图形,以下是最新的改进结果:

 

---- 股票是 600644,原始数据来自网络。就不总结要点了,Matplotlib 十分给力!

---- 下一步打算在标示价格的 Y 轴上使用对数坐标。得精确计算图片的尺寸,使代表相同涨幅的图线看起来具有相同的长度,而且要精确定位坐标点。另外还可以加上一定的注释和图例。

 

补记:已实现,如下图,注意 Y 轴对数坐标:

Avatar_small
過客 说:
2011年3月01日 07:55

樓主可是分享代碼嗎? 感謝

Avatar_small
過客 说:
2011年3月02日 12:30

@蓝色基因:dybert2@Yahoo.com.tw

十分感謝 :)

Avatar_small
JackeyLu 说:
2011年4月06日 11:16

如果方便的话,请发一份代码与我参考一下吧?我在做数据分析,准备用metaplotlib画图,但是我不是分析股票。呵呵

Avatar_small
蓝色基因 说:
2011年4月06日 13:12

@JackeyLu: 已经贴出来了,请看下一篇。如果想要最新版的就留个邮箱。

Avatar_small
Ds 说:
2015年7月05日 10:40

如果可以,也请发我一份最新版源代码。企图站在巨人的肩膀上~谢谢。

Avatar_small
whsmonkey 说:
2015年8月23日 21:45

@蓝色基因: 能给我也发一份吗,我正在学习python,邮箱是541336503@qq.com,非常感谢!

Avatar_small
DFDF 说:
2016年6月21日 10:39

我也在学python,能给我发一下源代码吗?谢谢
邮箱是1070118279@qq.com

Avatar_small
代码如古诗 说:
2017年6月07日 13:20

我也在学python,能给我发一下源代码吗?谢谢
邮箱是 c153733@21cn.com

Avatar_small
代码如古诗 说:
2017年6月07日 13:21

我也在学python,能给我发一下源代码吗?谢谢
邮箱是 c153733@21cn.com

Avatar_small
路人甲 说:
2018年7月30日 14:37

谢谢楼主xinzeyang@sina.com

Avatar_small
CBSE Class 1 Urdu Mo 说:
2022年9月12日 14:51

The CBSE Board Grade 1 Urdu Model Paper 2023 Pdf is available for download for all chapters of the course for students who have selected Urdu as their first language, third language, or second language. CBSE Class 1 Urdu Model Paper Download the PDF version of the New Exam Scheme CBSE Class 1 Urdu Model Paper 2023 with the answers. Download a comprehensive question bank for all practise test questions for exams that were created by board specialists. To improve grades, each student can download the Urdu model paper and practise at home.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter
Host by is-Programmer.com | Power by Chito 1.3.3 beta | © 2007 LinuxGem | Design by Matthew "Agent Spork" McGee