Skip to content

A one-stop shop to instantly make your MATLAB scripts and plots beautiful, publication-ready and colorblind friendly.

License

Notifications You must be signed in to change notification settings

Julie-Fabre/prettify_matlab

Repository files navigation

View prettify_matlab on File Exchange

🪄 prettify matlab

A one-stop shop to instantly make your MATLAB scripts and plots beautiful, publication-ready and colorblind friendly.

🏁 Installation

To use prettify_matlab:

  • clone the repository and it's dependancies
  • add the repository folder to MATLAB's path.

prettify_matlab doesn't use any of MATLAB's add-on toolboxes.

Dependencies

  • colorbrewer, to generate colormaps

  • rgb - modified version (called with prettify_rgb()) already included.

🚩 Features

Prettify code

Run prettify_current_code; to prettify your current script open in the MATLAB editor. All code editing rules are stored in the formatRules.xml file, where they can easily be changed.

Prettify plots

Run prettify_plot; to prettify your current figure (includes all subplots). Includes options to modify the background color, text size and homogenize x and y limits across plots.

Prettify colors

Colorblind simulator

Run prettify_colorblind_simulator; to plot your current figure as it would seen with different types of color blindness. Uses the matrices from:

Gustavo M. Machado, Manuel M. Oliveira, and Leandro A. F. Fernandes "A Physiologically-based Model for Simulation of Color Vision Deficiency". IEEE Transactions on Visualization and Computer Graphics. Volume 15 (2009), Number 6, November/December 2009. pp. 1291-1298.

cb

🤗 Support and citing

If you find this repo useful in your work, we would like a citation [more details coming soon-ish]. Contact us for more information. Cheers!

To do list

  • Perceptually-uniform, colorblind friendly colormaps.
  • Prettify colorbars and labels
  • wrap titles/labels
  • shaded, shaded gradual

About

A one-stop shop to instantly make your MATLAB scripts and plots beautiful, publication-ready and colorblind friendly.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages