相关疑难解决方法(0)

如何绘制matplotlib Axes实例?

我需要使用一些股票数据制作烛台图表(类似这样).为此,我想使用matplotlib.finance.candlestick()函数.对于这个函数,我需要提供引号和" 一个Axes实例来绘制 ".我创建了一些示例引号,如下所示:

quotes = [(1, 5, 6, 7, 4), (2, 6, 9, 9, 6), (3, 9, 8, 10, 8), (4, 8, 8, 9, 8), (5, 8, 11, 13, 7)]
Run Code Online (Sandbox Code Playgroud)

我现在还需要一个Axes实例,我有点迷失了.我在使用matplotlib.pyplot之前创建了图.我想我现在需要用matplotlib.axes做些什么,但我不确定到底是什么.

有人可以帮我一点吗?欢迎所有提示!

python finance axes matplotlib

58
推荐指数
2
解决办法
8万
查看次数

如何强制matplotlib只显示Y轴上的整数

我可视化的数据只有在整数时才有意义.

即,就我正在分析的信息的背景而言,记录的0.2是没有意义的.

如何强制matplotlib仅使用Y轴上的整数.即1,100,5等?不是0.1,0.2等

for a in account_list:
    f = plt.figure()
    f.set_figheight(20)
    f.set_figwidth(20)
    f.sharex = True
    f.sharey=True

    left  = 0.125  # the left side of the subplots of the figure
    right = 0.9    # the right side of the subplots of the figure
    bottom = 0.1   # the bottom of the subplots of the figure
    top = 0.9      # the top of the subplots of the figure
    wspace = 0.2   # the amount of width reserved for blank space between subplots …
Run Code Online (Sandbox Code Playgroud)

python visualization

6
推荐指数
4
解决办法
9048
查看次数

标签 统计

python ×2

axes ×1

finance ×1

matplotlib ×1

visualization ×1