matlab画间断坐标轴,Matlab制图中如何实现坐标轴的打断
這個是File Exchange上Michael Robbins的BreakAxis代碼,里面需要修改一些才能用,不過太丑了,有大神能優(yōu)化一下也行
function h=BreakPlot(x,y,y_break_start,y_break_end,break_type)
% BreakPlot(x,y,y_break_start,y_break_end,break_type)
% Produces a plot who's y-axis skips to avoid unecessary blank space
%
% INPUT
% x
% y
% y_break_start
% y_break_end
% break_type
% if break_type='RPatch' the plot will look torn
% in the broken space
% if break_type='Patch' the plot will have a more
% regular, zig-zag tear
% if break_plot='Line' the plot will merely have
% some hash marks on the y-axis to denote the
% break
%
% USAGE:
% figure;
% BreakPlot(rand(1,21),[1:10,40:50],10,40,'Line');
% figure;
%
總結(jié)
以上是生活随笔為你收集整理的matlab画间断坐标轴,Matlab制图中如何实现坐标轴的打断的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: python 自动交易股票_Python
- 下一篇: Richardson成熟度模型