Skip to content

Commit

Permalink
change line color
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed Jul 2, 2019
1 parent 9fc9d0a commit 7779235
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions mmclab/example/demo_mmcl_b1_b1d.m
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
addpath('../../matlab/');

clear cfg
cfg.nphoton=1e7;
cfg.nphoton=1e8;
cfg.seed=1648335518;
[cfg.node,cfg.elem]=genT5mesh(0:2:60,0:2:60,0:2:60);
cfg.elemprop=ones(size(cfg.elem,1),1);
Expand Down Expand Up @@ -93,7 +93,7 @@

hold on
[c h2]=contourf(xi,yi, log10(max(squeeze(Phicpu*cfg.tstep),1e-8)), clines, 'k-', 'linewidth', 2);
contour(xi,yi,log10(abs(Phigpu*cfg.tstep)),clines,'m:','linewidth',2)
contour(xi,yi,log10(abs(Phigpu*cfg.tstep)),clines,'m:','linecolor',[0.9100 0.4100 0.1700],'linewidth',2)
contour(xi,yi,log10(abs(squeeze(Phidcpu(1:end-1,31,1:end-1))'*cfg.tstep)),clines,'b--','linewidth',2)
contour(xi,yi,log10(abs(squeeze(Phidgpu(1:end-1,31,1:end-1))'*cfg.tstep)),clines,'g--','linewidth',2)

Expand Down
6 changes: 3 additions & 3 deletions mmclab/example/demo_mmcl_b3.m
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@
%%-----------------------------------------------------------------
figure

clines = 8:-0.5:-2;
clines = 8:-0.5:-8;

hold on
[c h2]=contourf(log10(squeeze(b3cpu(75,:,:))),clines,'k-');
contour(log10(abs(squeeze(b3gpu(75,:,:)))),clines,'y--')
[c h2]=contourf(log10(squeeze(b3cpu(75,:,:))'),clines,'k-');
contour(log10(abs(squeeze(b3gpu(75,:,:)))'),clines,'y--')

axis equal
set(gca,'xlim',[1 182])
Expand Down

0 comments on commit 7779235

Please sign in to comment.