PlotDefaults
Versión 1.3.0 (6,99 KB) por
Matthew Sparkes
PlotDefaults encapsulates several common operations that might be applied to the current figure: labels, sizes, colour schemes, etc.
Motivation and Purpose
When producing publications, or simply writing a dissertation or thesis, multiple plots are often desired, and a good house design can greatly increase the professionalism of your work. PlotDefaults is a handle class which encapsulates common plot operations such as: Default axis labelling (x,y,z), setting label interpreters and font sizes, setting legend interpreters and font sizes.
House colours are defined in the handle class PlotColours and can be added to as desired. Sizes are defined in children of the parent class PlotSizes, and three sizes are defined: std, med, big.
This class is designed to be modified to your own house style: I recommend using https://coolors.co/generate to generate your own colour scheme.
Usage
Unzip PlotDefaults to a location of your choosing, and make sure that location is on your Matlab path. PlotDefaults acts on the current figure and axes and the following methodology is supported:
applyDefaultLabels - apply x,y,z labels with a latex interpreter
applySizes - apply one of three pre-set size definitions to
the tick, label and legend. Options are, 'std',
'med', 'big'.
colours - set of arrays containing RGB data for different
colours
Examples:
PlotDefaults.applyDefaultLabels
Apply default labels to current plot
PlotDefaults.applySizes('std')
Apply the standard set of sizes to the current plot.
PlotDefaults.colours.blue(:, 1)
Fetch the 1st shade of blue from the colour palette.
Copyright (C) Matthew Sparkes 2022 - 2023
Citar como
Matthew Sparkes (2026). PlotDefaults (https://github.com/MarangoniCow/PlotDefaults/releases/tag/v1.3.0), GitHub. Recuperado .
Compatibilidad con la versión de MATLAB
Se creó con
R2022b
Compatible con cualquier versión desde R2015a
Compatibilidad con las plataformas
Windows macOS LinuxEtiquetas
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
@PlotDefaults
| Versión | Publicado | Notas de la versión | |
|---|---|---|---|
| 1.3.0 | See release notes for this release on GitHub: https://github.com/MarangoniCow/PlotDefaults/releases/tag/v1.3.0 |
||
| 1.2.0 | See release notes for this release on GitHub: https://github.com/MarangoniCow/PlotDefaults/releases/tag/v1.2.0 |
||
| 1.1.0 | See release notes for this release on GitHub: https://github.com/MarangoniCow/PlotDefaults/releases/tag/v1.1.0 |
||
| 1.0.0 |
Para consultar o notificar algún problema sobre este complemento de GitHub, visite el repositorio de GitHub.
Para consultar o notificar algún problema sobre este complemento de GitHub, visite el repositorio de GitHub.
