matplotlib is a data visualization library that can be easily used in a Linux environment. The simplest pattern graph introduced in Official Tutorial is as follows. Code can be written.
import matplotlib.pyplot as plt
fig, ax = plt.subplots() # Create a figure containing a single axes.
ax.plot([1, 2, 3, 4], [1, 4, 2, 3]) # Plot some data on the axes.
plt.show()
If you get an error such as the module not found, use the following procedure (such as pip) to install it.
sudo pip3 install matplotlib
Since numpy and pandas are often used together, it may be convenient to include them.
import numpy as np
import pandas as pd
Recommended Posts