addtxaxis

Adds a top x-axis with arbitrary scale

이 제출물을 팔로우합니다

This function adds a second dummy x-axis on the top of a given axes object. This dummy x-axis has (internally) the same scaling (linear or log) than the main x-axis, but is used to display ticks and tick labels which are on a transformed scale.

The transformation is arbitrary, but the transformed axis cannot be used to create plots with transformed x coordinates. The given transformation is in fact the inverse transform, that is, the transform used to go from the secondary axis to the original axis (e.g. displaying a log scale would be done by providing a transform '10.^x').

The transformed axis can be removed cleanly by issuing a simple command.

Typical uses of addtxaxis would include displaying a secondary x-axis following reciprocal or logarithmic scales (e.g. frequency and wavelength on the same plot).

인용 양식

Francois Bouffard (2026). addtxaxis (https://kr.mathworks.com/matlabcentral/fileexchange/4036-addtxaxis), MATLAB Central File Exchange. 검색 날짜: .

도움

도움 준 파일: Add top X-axis with different scale

카테고리

Help CenterMATLAB Answers에서 Log Plots에 대해 자세히 알아보기

일반 정보

MATLAB 릴리스 호환 정보

  • 모든 릴리스와 호환

플랫폼 호환성

  • Windows
  • macOS
  • Linux
버전 퍼블리시됨 릴리스 정보 Action
1.0.0.0

Fixes suggested by Lars Kappei: Box propery is now "Off" and correct units are used in transformed axis.