1. 程式人生 > >import matplotlib.pyplot as plt 報錯解決方法

import matplotlib.pyplot as plt 報錯解決方法

import matplotlib
matplotlib.use(“TkAgg”)
##"add this between “import matplotlib” and “import matplotlib.pyplot as plt”##

import matplotlib.pyplot as plt
import numpy as np