How are you importing the "plt" variable? Please share the whole code in situations like that.
But trying to solve your problem, the correct syntax to import "plt" should be:
import matplotlib.pyplot as plt
if you do this way, you can call
plt.title('trans and price')
with no errors.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.