Answers for "import matplotlib submodule 'style'"

0

import matplotlib submodule 'style'

import matplotlib.pyplot as plt
import matplotlib.style as 'fivethirtyeight'

#Note that we must use the style.use() 
#function before we create the graph — 
#before calling the plt.plot() function.
#eg

style.use('fivethirtyeight')
plt.plot([1, 2, 3], [5, 2, 7])
plt.show()
Posted by: Guest on September-02-2021

Python Answers by Framework

Browse Popular Code Answers by Language