Hello. This time, all you have to do is line up the famous figures (graphs) in matplotlib and how to write them.
sample.py
import matplotlib.pyplot as plt
plt.plot(x, y) #Line graph
plt.bar(x,y) #bar graph(Vertical)
plt.barh(x, y) #Bar graph (horizontal)
plt.scatter(x, y) #Scatter plot
plt.hist(x) #histogram
plt.boxplot(x) #Box plot
plt.pie(x) #pie chart
#I think there are many others, but it ends here.
There are many graphs, so you need the ability to select optimized graphs. Graphs have the advantage of being able to grasp things in an instant, so I want to study hard. Anyway, the matplotlib module is excellent.
that's all!
Recommended Posts