LinkTopAxisData

Adds a linked second x axis to a plot

Vous suivez désormais cette soumission

This function will add a second x axis to a plot with the top ticks at arbitrary positions (you are not limited to the bottom tick positions). The new axis is created behind the original axis, and the two axes are linked together. This gives a much more intuitive behaviour, for example clicking in the figure window will select the original axis. It also alows you to drag the plot around, resize the limits and change between a log/linear scale without having to update the dummy axis manually.

Citation pour cette source

Tim Richards (2026). LinkTopAxisData (https://fr.mathworks.com/matlabcentral/fileexchange/12131-linktopaxisdata), MATLAB Central File Exchange. Extrait(e) le .

Remerciements

Inspiré par : Add top X-axis with different scale

Informations générales

Compatibilité avec les versions de MATLAB

  • Compatible avec toutes les versions

Plateformes compatibles

  • Windows
  • macOS
  • Linux
Version Publié le Notes de version Action
1.0.0.0

I have changed the example to define T and E before they are used.

I have also added a screenshot.