PlotManager

Tool to organize plots variably in subplots or single figures, with export functions
589 Downloads
Updated 27 Jul 2015

View License

@@ ATTENTION @@
I've merged my separate submissions into KerMor/matlabtools (http://de.mathworks.com/matlabcentral/fileexchange/52299-kermor-matlabtools), which contains this submission. Please refer to that package to retrieve the current status.
@@@@
The PlotManager is designed for anyone who is regularly producing various plots that should be in subplots during development/experimenting for good overview and later be exported as single figures (e.g. in high quality).

A new plot can be created using "nextPlot". Depending on the logical property "Single" this either opens a new figure or advances to the next subplot. This way, the same script can generate overview subplots or single figures suitable for export.

Any openend plots can then be exported to disk (using the "export_fig" tool internally) using the "savePlots" function.

Some more features:
- nextPlot takes several string arguments that are used as filename on export via "savePlots", axis title and labels
- A FilePrefix can be set for each exported figure
- If nextPlot is called and the current subplots are full, a new figure is openend with the same number of subplots
- savePlots takes a cell array as format strings, so export can be made with a single call in various formats

Enjoy!

Cite As

Daniel Wirtz (2024). PlotManager (https://www.mathworks.com/matlabcentral/fileexchange/36294-plotmanager), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2010b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Line Plots in Help Center and MATLAB Answers
Acknowledgements

Inspired: KerMor/matlabtools

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.3.0.0

I've merged my separate submissions into KerMor/matlabtools (http://de.mathworks.com/matlabcentral/fileexchange/52299-kermor-matlabtools), which contains this submission. Please refer to that package to retrieve the current status.
- Many useful improvements
- Included demos
- Tested with current export_fig version

1.2.0.0

- "axes tight" is only executed if neither {X,Y,Z}LimMode are "manual"
- savePlots also takes a cell array of chars as export formats now
- Some new default values

1.1.0.0

Added possibility to (optionally) specify title, xlabel and ylabel in the nextPlot method. Those values will override any values specified before done/nextPlot is called again.

1.0.0.0