📄 logbar.m
字号:
function bh=logbar(x,y)% Bar vertices have 0-values, this is no good when taking% log...% Find them and replace with a small value.bh=bar(x,y);v=get(get(bh,'Children'),'Vertices');v(v==0)=.01; % You may want to change the value 0.01set(get(bh,'Children'),'Vertices',v);set(gca,'YScale','log')
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -