PlotPub - Publication Quality Graphs in MATLAB

PlotPub is a MATLAB library for creating beautiful, publication quality figures.
13.8K Downloads
Updated 8 Oct 2021

PlotPub is a free and open source MATLAB library for creating beautiful, publication quality graphs from instantly generated MATLAB figures or saved MATLAB fig files. This library provides a simple and easy way to modify almost all aspects of a MATLAB figure. It can export figures in EPS, PDF, JPEG, PNG and TIFF with adjustable resolution. The default settings in PlotPub can produce decent, publication ready graphs right out of the box.

New features of v2.x
----------------------------------------------
- Simple and elegant object oriented approach: all aspects of the MATLAB figure is encapsulated in the Plot class.
- Create new plots, open saved figures or change existing figure using the same call, Plot().
- Control every aspect of a MATLAB figure using the Plot class object.
- Property changes are immediately visible, useful when using from the command window.
- Even easier to use.
- Fully compatible to v1.x.

What’s New in v1.3?
----------------------------------------------
- Several bugs are fixed including marker spacing.
- New options for axis color, axis line width, tick direction, tick length, minor ticks, legend box, legend text color etc.
- New, more appealing default look.

Features of v1.x
----------------------------------------------
- The default settings can generate beautiful, publication quality graphs out of the box.
- Supports instantly generated MATLAB figures and saved MATLAB fig files
- Export figures in EPS, PDF, JPEG, PNG and TIFF with adjustable resolution.
- Adjustable marker spacing.
- Change almost all aspects of a figure using simple and intuitive code.
- A lot of example codes. A decent tutorial and good documentation.
- Tested in Ubuntu and OSX with MATLAB 7.10. But it should work in other operating systems with other versions of MATLAB.
- Distributed under BSD license which allows you to do anything you like.

Documentations
----------------------------------------------
Please visit the project page at http://masumhabib.com/publication-quality-graphs-matlab/ for tutorial and documentation.

Installation
----------------------------------------------
Download and extract the zip file from the link given above. Install PlotPub using any one of the three possible ways: (1) copy all the *.m files inside the lib folder to either your MATLAB path or (2) copy those files to your current project folder or (3) put plotPub-master in any convenient folder and add the following line in your MATLAB code:

addpath('D:/MATLAB/PlotPub-2.0');

where, I assume that you put PlotPub-2.0 in D:/MATLAB folder. The sample codes can be found inside the examples folder.

Bugs and Feature Request
----------------------------------------------
If you find any bug/problems/issues, please report it on the GitHub page at https://github.com/masumhabib/PlotPub. If you want new features, please add a request there.

Known issues
----------------------------------------------
- Does not work with sub-figures.

Cite As

K M Masum Habib (2024). PlotPub - Publication Quality Graphs in MATLAB (https://github.com/masumhabib/PlotPub), GitHub. Retrieved .

MATLAB Release Compatibility
Created with R2013b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on 2-D and 3-D Plots in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Versions that use the GitHub default branch cannot be downloaded

Version Published Release Notes
1.5.0.0

Fixed a typo.

1.2.0.0

Updated description.

1.0.0.0

To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.