Centered coordinate axes in 2D plots

Takes the current coordinate axes (with ticks and labels) and draws new ones centered at the origin.
3,6K download
Aggiornato 13 set 2015

Visualizza la licenza

MATLAB does not have any built-in functionality for centering the coordinate axes around the origin. This tool is a first fix for solving this. An example script is included showing how to use the function.
Tested on MATLAB 2007b. Works fine, as long as the figure is not resized after the function is called.

Cita come

Johan Carlson (2025). Centered coordinate axes in 2D plots (https://it.mathworks.com/matlabcentral/fileexchange/22333-centered-coordinate-axes-in-2d-plots), MATLAB Central File Exchange. Recuperato .

Compatibilità della release di MATLAB
Creato con R2015b
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux
Categorie
Scopri di più su 2-D and 3-D Plots in Help Center e MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Versione Pubblicato Note della release
1.2.0.0

Fixed bug related to axes in 'Normalized' 'Units'.

1.1.0.0

Changed the x axis and y axis tick labeling so that it now includes also the end points. As a consequence, the axes are now 10% longer in order to make room for the arrowheads.

1.0.0.0