Matplotlib

The following method is used to get or set axis properties. For example, axis('off') turns off the axis lines and labels:

matplotlib.pyplot.axis(*v, **kwargs)

The following argument creates a new figure:

matplotlib.pyplot.figure(num=None, figsize=None, dpi=None, facecolor=None, edgecolor=None, frameon=True, FigureClass=<class 'matplotlib.figure.Figure'>, **kwargs)

The following argument turns the plot grids on or off:

matplotlib.pyplot.grid(b=None, which='major', axis='both', **kwargs)

The following argument plots a histogram:

matplotlib.pyplot.hist(x, bins=10, range=None, normed=False, weights=None, cumulative=False, bottom=None, histtype='bar', align='mid', orientation='vertical', rwidth=None, log=False, color=None, label=None, stacked=False, ...

Get Python Data Analysis Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.