Histograms

#Histograms
Loading output library...

Pie Plot

#Pie-Plot
Loading output library...

MATLAB like API

#MATLAB-like-API
Loading output library...
Loading output library...
Loading output library...
Loading output library...

Best to only use the MATLAB API for very simple plots, the object-oriented API is far more powerful, especially for making multiple figures ro with multple sub-plots

#Best-to-only-use-the-MATLAB-API-for-very-simple-plots,-the-object-oriented-API-is-far-more-powerful,-especially-for-making-multiple-figures-ro-with-multple-sub-plots

Object-Oriented API

#Object-Oriented-API
Loading output library...
Loading output library...

It takes more code, but we have full control over where the plot axes are placed, and we can easily add additional axes to the figure.

Loading output library...
Loading output library...
Loading output library...

Setting Figure size, aspect ratio and DPI, LaTeX, and Text annotation

#Setting-Figure-size,-aspect-ratio-and-DPI,-LaTeX,-and-Text-annotation
Loading output library...

Saving figures

#Saving-figures

Line and marker styles

#Line-and-marker-styles
Loading output library...
Loading output library...
Loading output library...

Notice by default the xlim and ylim have some extra padding on the ends. This is with Matplotlib 2.0.0.

Placement of, and custom ticks

#Placement-of,-and-custom-ticks
Loading output library...
Loading output library...

Scientific Notation

#Scientific-Notation
Loading output library...

Axis number and axis label spacing

#Axis-number-and-axis-label-spacing
Loading output library...

Axis position adjustments

#Axis-position-adjustments
Loading output library...

Axis grid

#Axis-grid
Loading output library...

Twin axes

#Twin-axes
Loading output library...

Setting x and y axis to Zero

#Setting-x-and-y-axis-to-Zero
Loading output library...

Scatter, Step, Bar, Fill between

#Scatter,-Step,-Bar,-Fill-between
Loading output library...

Subplot2grid

#Subplot2grid
Loading output library...

Colormaps and contour figures

#Colormaps-and-contour-figures
Loading output library...

contour

#contour
Loading output library...

3D figures

#3D-figures

Surface Plots

#Surface-Plots
Loading output library...