在大的背景下添加相关坐标
7 O$ C# x/ [ P. ^/ s5 j# ^close all;figure('position',[50 100 1850 900],'color','w')
6 o$ Y) ?8 R3 r: q: @5 a5 I4 Aaxes('position',[0.055 0.2 0.9 0.7])
4 s) h0 l+ D/ q- }" Q* l+ ^itv=linspace(min(rho_xi_eta(),max(rho_xi_eta(),30);
v; Q9 \" X! R1 e1 O9 Rcontourf(xi,eta,rho_xi_eta,itv,'edgecolor','none')% r( _. K& ?3 D) e* s, b
hold on;
4 E8 |' K3 i5 Ncontour(xi,eta,rho_xi_eta,itv,'k-','linewidth',1.5)8 c a+ y b, D* z2 p
......9 _; \7 F2 [, [+ h5 }7 o
4 V9 m; g# R: a- \4 R
! ~" y( v9 f! }, Q* i$ E% 添加坐标3 l( N; E6 |) X+ r. a' e1 S
aa=get(gca,'position');
- F1 _6 V5 h$ W; T. Oh1=axes('position',[0.5 aa(2) 0.05 aa(end)]);
- ]7 X' Q4 `" t! x; nset(h1,'color','none') %设置透明背景" U' A3 m& ^/ Q" _% K- l
set(gca,'ycolor','none') %隐藏y轴' u6 F7 J: |0 {2 ~' Z: S
set(gca,'xcolor','none') %隐藏x轴# X- T) W: F7 {5 \ y
box off;9 u3 U5 ]& J$ b' p$ a; u9 u- @
9 R* D# H; U; Q6 a1 v# |+ K
2 H, |5 H! x* {* B1 Z% E* Ncolorseq=mycolor.color94;) l8 X& U6 l4 W! E; F. Y& o# f' e
color_str=colorseq(1:70:end,;
% S0 B5 Q0 E5 |7 t! U8 afor nn=2
) L/ \, R4 w# F: q% u hold on;
# `" A+ Y: \) P ii=find(xi(1,==nn);1 v- x5 f8 f/ @
h1=plot(f_eta(:,ii),eta(:,ii),'color',color_str(nn+1,,'linewidth',2);
4 J6 Q+ Y2 b1 i3 w Q5 f6 wend! Z4 q# `4 a8 |! c( N, {0 O# g1 h
legend('\xi=2')- f. b- R* i$ y4 x/ G/ g3 _, t
+ |/ O+ H+ r" {: w6 q2 T: c, ^, \( U5 {& j0 `
h=line([0 0],[0 0.9],'color','k');
" a7 f/ e }2 s/ H* Z2 A2 F* wset(h,'linestyle','--','linewidth',1.5)
$ q4 y7 v9 }. ?1 Eset(get(get(h,'Annotation'),'LegendInformation'),'IconDisplayStyle','off'); %设置不显示这条线的legend
) c# h2 t/ A9 o' ]; Z, P3 Kxlim([-1.5 1.5]*1e-8)& @" j7 n/ @( ?# a& d
set(gca,'xtick',[-10:5:5]*1e-9)- Q$ _: O+ ]& r- j) x/ ]
h1=line([-10 5]*1e-9,[delta delta],'color','k');
& U1 @; k2 A. r* Y/ `, }( Rset(h1,'linestyle','--','linewidth',1.5)
3 C" T* i( k' Z _/ X1 pset(get(get(h1,'Annotation'),'LegendInformation'),'IconDisplayStyle','off');8 `7 M' i/ K1 P
ylim([0 1])
; y8 A# y1 `1 W2 F! g9 l
: ?* F. X6 Q# ^4 n$ }# ~6 z, x! i+ e% u# |) Z3 d. F5 u
5 }1 k* Q7 [1 X) S
, m2 {- W- }+ _4 l F 转载本文请联系原作者获取授权,同时请注明本文来自叶瑞杰科学网博客。 |