Summary for myself Updated from time to time Describe the command you used and examined ** I just need to know myself, so the terms may be wrong in some places **
!! View
#command
    #Argument option description
import matplotlib as mpl
#Instance creation
fig = plt.figure()
    figsize=(x,y) #Specify vertical and horizontal sizes
    dpi= #image quality
#Create multiple maps
ax1 = fig.add_subplot()
    #First argument: line
    #Second argument: column
    #Third argument: location
Grid lines, background color, etc. can be set with the same items as the histogram described later.
ax1.bar()
    #First argument: List of bar widths
    #Second argument: List of bar heights
    tick_label= #Label for each bar
The return value of the histogram is a little special and looks like the following ** n: X-axis data ** ** bins: Y-axis data ** ** paches: Objects for each bar **
n, bins, patches = ax1.hist()
    #The argument is an array of raw data
    bins=Number of sticks
    color= #Specify the color in the array
#Grid line
ax1.grid()
    color= #color
#X-axis label
ax1.set_xlabel()
#Y-axis label
ax1.set_ylabel()
#Back color
ax1.set_facecolor()
#title
ax1.title()
#Scale setting
ax1.set_xticks(np.arange(0,1300,250))
     #Arguments are minimum, maximum, and step
Recommended Posts