What do you want to save?
Add Code snippet
New code examples
-
Python 2021-11-22 02:21:07
how to plot a bar using matplotlib
import matplotlib.pyplot as plt # creating the dataset data = {'C':20, 'C++':15, 'Java':30, 'Python':35} courses = list(data.keys()) values = list(data.values()) fig = plt.figure(figsize = (5, 5)) # creating the bar plot p... Add solution