matplotlib graph album

Hello. This time, all you have to do is line up the famous figures (graphs) in matplotlib and how to write them.

Well then, let's begin.

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

matplotlib graph album
Graph drawing using matplotlib
Band graph with matplotlib
Graph drawing method with matplotlib
Graph Excel data with matplotlib (2)
Real-time graph display by matplotlib
Draw a loose graph with matplotlib
Jupyter does not show matplotlib graph
Matplotlib memorandum
[Python] Set the graph range with matplotlib
How to draw a graph using Matplotlib
Matplotlib gallery
Matplotlib memo
Display Matplotlib xy graph in PySimple GUI.
matplotlib Write text to time series graph
Graph trigonometric functions with numpy and matplotlib
matplotlib summary
Create a graph with borders removed with matplotlib
Install matplotlib and display graph on Jupyter Notebook
Draw a flat surface with a matplotlib 3d graph
[Python] limit axis of 3D graph with Matplotlib
Read Python csv data with Pandas ⇒ Graph with Matplotlib
Increase the font size of the graph with matplotlib
Draw a graph with matplotlib from a csv file
The basis of graph theory with matplotlib animation
Graph drawing with jupyter (ipython notebook) + matplotlib + vagrant
Align Matplotlib graph colors with similar colors (color map)