What do you want to save?
Add Code snippet
New code examples
-
Python 2021-08-27 10:11:02
set title matplotlib
import matplotlib.pyplot as plt plt.title('TITLE') Add solution -
Python 2021-08-27 09:11:02
matplotlib show percentage y axis
import matplotlib.pyplot as plt import numpy as np import matplotlib.ticker as mtick data = [8,12,15,17,18,18.5] perc = np.linspace(0,100,len(data)) fig = plt.figure(1, (7,4)) ax = fig.add_subplot(1,1,1) ax.plot(perc, data) fmt = '%.0f%%' # Format you... Add solution