If you unknowingly write a graph in Python, the values on the vertical axis are used together, so a graph with a very large value and a graph with a very small value are displayed together.
Like this (maybe just me ...)
By the way, the blue legend is the raw data and the orange legend is the slope.
This is divided into two graph displays.
subplot
The subplot function was used to regularly display multiple items on the graph.
subplot(Number of lines,Number of columns,Plot number)
The figure is divided by the number of rows ☓ the number of columns. The plot numbers increase from the first line to the right. By the way, I used 2 rows and 1 column this time, so the plot number is
Plot number |
---|
1 |
2 |
It becomes.
The actual code is
#Creating a figure
fig = plt.figure()
plt.subplot(2,1,1)
plt.plot(data7)#Raw data
…
plt.subplot(2,1,2)
plt.plot(huge7)#Tilt
Some parts are omitted on the way. The actual result is
The top is the raw data and the bottom is the slope. Since the vertical axis is coarse memory, it is necessary to process it from now on.
For the time being, it is a memo for myself, so I wrote only the key part this time.
Recommended Posts