在大的背景下添加相关坐标- T& W, {+ c" V/ P* c. t
close all;figure('position',[50 100 1850 900],'color','w')" ?" ^( P1 d: s' h7 |0 y. S4 f- E7 @" j
axes('position',[0.055 0.2 0.9 0.7])
2 \) p: \3 g& X& x) p8 Gitv=linspace(min(rho_xi_eta(),max(rho_xi_eta(),30);
2 E' G- W9 R. @. Zcontourf(xi,eta,rho_xi_eta,itv,'edgecolor','none')
; s" H2 f+ B, [/ Yhold on;
" R: j5 g6 U. f6 Gcontour(xi,eta,rho_xi_eta,itv,'k-','linewidth',1.5) M- ?8 U/ C( ?: v- \) _
......: j' J* k+ a- v
# o: }+ B2 l+ ?2 U! k9 w+ q! G& u5 l/ Y4 c! O
% 添加坐标' E* `1 L- M$ P/ c9 r9 t; L1 f0 g
aa=get(gca,'position');- E! V7 }8 ^, d
h1=axes('position',[0.5 aa(2) 0.05 aa(end)]);* p$ E5 y8 u* |& i: {) U7 p
set(h1,'color','none') %设置透明背景
# @; y% R; u1 ~# X5 {set(gca,'ycolor','none') %隐藏y轴
5 s/ m) F4 m# c9 \set(gca,'xcolor','none') %隐藏x轴
) b/ {' ]! g, k- H* ?box off;
4 Z" v. s: y$ i# t+ e
2 x! F3 L" m, H6 m" v) [
7 S5 K- o6 B# X* [colorseq=mycolor.color94;7 Y& w0 z; I4 k& z/ r6 }5 [$ v. {: w
color_str=colorseq(1:70:end,;# t/ B3 T' q) q0 B
for nn=26 X, n1 i v/ @; d/ u
hold on;
# o& S# q! Q0 e0 k: W ii=find(xi(1,==nn);
5 t$ c; T4 F5 C& ] h1=plot(f_eta(:,ii),eta(:,ii),'color',color_str(nn+1,,'linewidth',2);4 X5 P. H- ^0 f: H6 U
end- O# U% L. q5 I0 \6 j1 u
legend('\xi=2')
P" t& m/ q7 `$ n1 r7 S- E, |4 g6 z3 F8 h! G+ a! j
/ e* T- q6 {+ p" U' F3 jh=line([0 0],[0 0.9],'color','k');
* [& c$ {7 ]- _# Uset(h,'linestyle','--','linewidth',1.5)
( v8 M( i2 U8 Y. K" K& l6 h$ Sset(get(get(h,'Annotation'),'LegendInformation'),'IconDisplayStyle','off'); %设置不显示这条线的legend5 r* A9 ~1 j, e- H
xlim([-1.5 1.5]*1e-8)
% r9 ?5 K$ u1 Z1 ]/ Lset(gca,'xtick',[-10:5:5]*1e-9); ~9 l$ ~! l, A: m
h1=line([-10 5]*1e-9,[delta delta],'color','k');$ E; f' x% R& P) f5 z7 ^6 }
set(h1,'linestyle','--','linewidth',1.5)
' R9 o) f w {set(get(get(h1,'Annotation'),'LegendInformation'),'IconDisplayStyle','off');
. B% B/ B- o: ^0 l) b/ q5 iylim([0 1])/ I- y/ p& y/ G3 s, e8 y/ w& @& i- W
* x1 p4 p) C, Y6 U" p" O+ H4 B ~( ~( S6 M* t, S% `3 F
; I: `8 L0 Z3 M1 @7 ~' L
7 j8 V9 h! N* B$ J' i N 转载本文请联系原作者获取授权,同时请注明本文来自叶瑞杰科学网博客。 |