import matplotlib.pyplot as plt
bert.stuy.edu › intro-year-2 › matplotlib-basicimport matplotlib.pyplot as plt "plt" is an abbreviation for "matplotlib.pyplot" to save us from finger fatigue. Here are the basic plotting functions: plt.plot (y_data) or plt.plot (x_data,y_data) y_data is a list of values that will be plotted (graphed) on the y-axis x_data, if included, will be the corresponding x-values
List of named colors — Matplotlib 3.5.1 documentation
matplotlib.org › stable › gallerythe Color Demo. from matplotlib.patches import Rectangle import matplotlib.pyplot as plt import matplotlib.colors as mcolors def plot_colortable(colors, title, sort_colors=True, emptycols=0): cell_width = 212 cell_height = 22 swatch_width = 48 margin = 12 topmargin = 40 # Sort colors by hue, saturation, value and name. if sort_colors is True ...