Scheduled service maintenance on November 22


On Friday, November 22, 2024, between 06:00 CET and 18:00 CET, GIN services will undergo planned maintenance. Extended service interruptions should be expected. We will try to keep downtimes to a minimum, but recommend that users avoid critical tasks, large data uploads, or DOI requests during this time.

We apologize for any inconvenience.

shadeplot.m 480 B

123456789101112131415161718192021222324252627
  1. function hout=shadeplot(x,y1,y2,opt)
  2. % function h=shadeplot(x,y1,y2,opt)
  3. % you need x, sorry
  4. % y1, y2 can be for example lower and upper confidence intervals.
  5. % opt={color, axeshandle, alpha}
  6. if nargin <4
  7. h=axes;
  8. clr='k';
  9. alp=0.5;
  10. else
  11. h=opt{2};
  12. alp=opt{3};
  13. clr=opt{1};
  14. end
  15. y1=y1(:);
  16. y2=y2(:)-y1;
  17. Y=[y1, y2];
  18. h1=area(h,x,Y);
  19. set(h1(2),'EdgeColor','none','FaceColor',clr);
  20. alpha(h1(2),alp);
  21. set(h1(1),'EdgeColor','none','FaceColor','none');
  22. hout=h1(2);