python dll 混合_Python | 条线混合图
生活随笔
收集整理的這篇文章主要介紹了
python dll 混合_Python | 条线混合图
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
python dll 混合
In some of the cases, we need to plot a bar-line hybrid plot. This plot helps in a better understanding of dynamics as well as the relative magnitude of each point in the plot. Bar-Line Hybrid Plots are mostly used for the representation of smaller data sets.
在某些情況下,我們需要繪制條形混合圖 。 該圖有助于更好地了解動力學(xué)以及圖中每個點(diǎn)的相對大小。 條形線混合圖主要用于表示較小的數(shù)據(jù)集。
The following example illustrate the implementation and use of the Bar-Line Hybrid Plot.
以下示例說明了條形混合圖的實(shí)現(xiàn)和使用。
條形混合圖的Python代碼 (Python code for bar-line hybrid plot)
import numpy as np import matplotlib.pyplot as pltx = np.arange(25) y1 = np.arange(25) for i in range(25):y1[i] = 2*x[i] + np.random.randint(40,56)plt.figure() plt.plot(x,y1) plt.bar(x,y1, alpha=0.4) plt.ylim(0,150) plt.xlabel('Number Line') plt.ylabel('Function') plt.title('Bar-Line Hybrid Plot')Output:
輸出:
Output is as figure翻譯自: https://www.includehelp.com/python/bar-line-hybrid-plot.aspx
python dll 混合
總結(jié)
以上是生活随笔為你收集整理的python dll 混合_Python | 条线混合图的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: [转载] 【零基础学爬虫】python中
- 下一篇: qgis在地图上画导航线_在Larave