matlab坐标重叠,科学网—【MATLAB】嵌套坐标的相关设置 - 叶瑞杰的博文

在大的背景下添加相关坐标

close all;figure('position',[50 100 1850 900],'color','w')

axes('position',[0.055 0.2 0.9 0.7])

itv=linspace(min(rho_xi_eta(:)),max(rho_xi_eta(:)),30);

contourf(xi,eta,rho_xi_eta,itv,'edgecolor','none')

hold on;

contour(xi,eta,rho_xi_eta,itv,'k-','linewidth',1.5)

......

% 添加坐标

aa=get(gca,'position');

h1=axes('position',[0.5 aa(2) 0.05 aa(end)]);

set(h1,'color','none')    %设置透明背景

set(gca,'ycolor','none') %隐藏y轴

set(gca,'xcolor','none') %隐藏x轴

box off;

colorseq=mycolor.color94;

color_str=colorseq(1:70:end,:);

for nn=2

hold on;

ii=find(xi(1,:)==nn);

h1=plot(f_eta(:,ii),eta(:,ii),'color',color_str(nn+1,:),'linewidth',2);

end

legend('\xi=2')

h=line([0 0],[0 0.9],'color','k');

set(h,'linestyle','--','linewidth',1.5)

set(get(get(h,'Annotation'),'LegendInformation'),'IconDisplayStyle','off'); %设置不显示这条线的legend

xlim([-1.5 1.5]*1e-8)

set(gca,'xtick',[-10:5:5]*1e-9)

h1=line([-10 5]*1e-9,[delta delta],'color','k');

set(h1,'linestyle','--','linewidth',1.5)

set(get(get(h1,'Annotation'),'LegendInformation'),'IconDisplayStyle','off');

ylim([0 1])

68da35d67adb4b19dc9db28398d891f2.png

转载本文请联系原作者获取授权,同时请注明本文来自叶瑞杰科学网博客。

链接地址:http://blog.sciencenet.cn/blog-2824237-1109619.html

上一篇:【MATLAB】fopen和eval结合应用实例

下一篇:【Endnote】引用文献杂志名称的缩写问题

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值