View on GitHub

Plotting Examples

Simplified examples of plotting in Matlab, R, and Python (Matplotlib)

Download this project as a .zip file Download this project as a tar.gz file

Plotting Examples

Some examples for plotting different types of data in Matlab, Python, and R

Contributors: VictoriaLynn, matthewjwoodruff, and jdherman

See example_images for the outputs from these files (PNG). Note that publication-quality figures will usually require a vector graphics format (SVG/EPS/PDF) along with some manual editing to improve font clarity, etc. The examples shown here are in unedited raster format and are only meant to be illustrative.

Column data

From example_data/column_data.txt. Used with:

Image

Image

Image

Image

Image

Image

Image

Gridded 2D data

From example_data/gridded_2D.txt. Used with:

Image

Image

Non-Gridded 2D data (e.g. experimental data)

From example_data/non_gridded_2D.txt. The data file contains rows of (x,y,z) points that are not on a regular grid. Used with:

Image

Image

3D Scatter Plot

From example_data/five_obj_data.txt. Used with:

Image