Skip to content

OlliK94/matlab-din461

Repository files navigation

matlab-din461

Applies the DIN 461 style to a 2D plot in MATLAB.

Usage

  • Basic usage:
t = linspace(0, 40, 100);
u = 325*sin(2*pi*t/20);

set_default_plot_properties();
plot(t, u, 'b');
din461('$t$', '$u$', 'ms', 'V');
  • Replace the penultimate number with the unit label instead of placing the unit label between the last and the penultimate number:
din461('$t$', '$u$', 'ms', 'V', 'replacePenultimate', [1 1]);
  • Vertical y label instead of horizontal y label:
din461('$t$', '$u$', 'ms', 'V', 'verticalYLabel', 1);
  • For subplots use the function subaxes instead of subplot.

Examples

Example 1 Example 2

About

DIN 461 style for 2D plots in MATLAB

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages