What do you want to save?
Add Code snippet
New code examples
-
Python 2021-10-03 02:51:02
plot data python
names = ['group_a', 'group_b', 'group_c'] values = [1, 10, 100] plt.figure(figsize=(9, 3)) plt.subplot(131) plt.bar(names, values) plt.subplot(132) plt.scatter(names, values) plt.subplot(133) plt.plot(names, values) plt.suptitle('Categorical Plotting') ... Add solution -
Other 2021-09-28 09:24:02
Examples using matplotlib.pyplot.quiver
''' ======================================================== Demonstration of advanced quiver and quiverkey functions ======================================================== Known problem: the plot autoscaling does not take into account the arrows, so t... Add solution -
Other 2021-09-13 23:04:02
how to plot a scatter plot in matplotlib
# Import matplotlib import matplotlib.pyplot as plt # Set plot space as inline for inline plots and qt for external plots %matplotlib inline # Set the figure size in inches plt.figure(figsize=(10,6)) plt.scatter(x, y, label = "label_name" ) ... Add solution