matlab添加具有任意比例的顶部X轴

收录时间:2019-03-11
资源分类:Matlab 工具:MATLAB 6.5 (R13)

此函数在给定轴对象的顶部添加第二个虚拟X轴。

 

addtxaxis

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).

文件下载列表
addtxaxis.zip (2.98KB)  
附件内容(只显示2中的1个)
addtxaxis.m  
更多

目前尚无评论

用户反馈   关于我们
Copyright (©) ZHIHUISHI.COM 2013 All Rights Reserved.
京ICP备14040384号