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.
在某些情況下,我們需要繪制條形混合圖 。 該圖有助于更好地了解動力學以及圖中每個點的相對大小。 條形線混合圖主要用于表示較小的數據集。
The following example illustrate the implementation and use of the Bar-Line Hybrid Plot.
以下示例說明了條形混合圖的實現和使用。

條形混合圖的Python代碼 (Python code for bar-line hybrid plot)
import numpy as np
import matplotlib.pyplot as plt
x = 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 混合