2017-08-01 97 views

回答

1

您是否嘗試過mlp_finace https://github.com/matplotlib/mpl_finance/tree/master/examples的官方示例?

+0

我已經安裝matplotlib但我無法導入mpl_finance。我如何得到它? – hal

+0

下載https://github.com/matplotlib/mpl_finance並使用命令python setup.py install進行安裝。但是你仍然可以使用matplotlib.finance直到matplotlib 2.2。 mlp_finace尚未正式受支持。 –

1

看看seaborn,它是一個matplotlib變體,專注於統計數據並提供這樣的功能。

1

我用boxplot ,你會發現更多關於它here

+0

如何根據數據在繪圖中繪製(填充)框(例如,如果數據增加時爲綠色,否則爲紅色)?如何將x_axis標記爲日期而不是數字? – hal

+0

[color boxes](https://stackoverflow.com/questions/28740234/face-pattern-for-boxes-in-boxplots); [與matplotlib軸中的日期](https://stackoverflow.com/questions/5498510/creating-graph-with-date-and-time-in-axis-labels-with-matplotlib),取決於您輸入的日期數據處理 – mquantin