setLogScaleDoubleSi​ded

バージョン 1.4.1 (47.5 KB) 作成者: Massimo Ciacci
Converts a plot to log-scale preserving negative x values also shown in log scale. Call backs will keep 2 sides synchronous.
ダウンロード: 11
更新 2020/12/3

ライセンスの表示

When plotting a spectrum in log scale one normally has to be limited to watching the positive side only.
This function addresses that issue.
% A function to show both positive and negative logarithmic plots, via a second axis,
% with call backs to fix limits and curve's properties symmetrically on the fly (via listeners).
% ----------------------------------------------------------------
% A second axis (axH_NEG) is created and its handle stored in user data
% The negative data is shown on this second axis
% After 1st creation a second creation has no effect
% EXTRA features :
% - After 1st creation a second creation has no effect
% - Setting limits for one axis, or zooming, or pan will automatically apply to both axes (listeners)
% - Changing a property of the positive side curves will automatically propagate to the second axis.
% - xlim on one axis with valid limits will atomatically set limits on other side too to keep symmetry
% - call to xlim applies to currently active axis, when positive is active an xlim with neg values will be ignored
% - legend can now be moved around also on negative side
%
% M.Ciacci, 03/12/2020, rev4

引用

Massimo Ciacci (2024). setLogScaleDoubleSided (https://www.mathworks.com/matlabcentral/fileexchange/76123-setlogscaledoublesided), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R2016b
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
タグ タグを追加

Community Treasure Hunt

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

Start Hunting!
バージョン 公開済み リリース ノート
1.4.1

test bench was outdated

1.4.0

- xlim on one axis with valid limits will atomatically set limits on other side too to keep symmetry
- call to xlim applies to currently active axis, when positive is active an xlim with neg values will be ignored
- legend can now be moved around

1.0.0