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.

unity.m 474 B

123456789101112131415161718192021222324252627282930
  1. % This function draws an unity line on the plot.
  2. %h=unity(ax,s)
  3. % ax (optional) plot to this axis, default gca
  4. % s (optional) use this linestyle, default ':k'
  5. function h=unity(ax,s)
  6. if nargin<2
  7. s=':k';
  8. end
  9. if nargin<1
  10. ax=gca;
  11. end
  12. bax=ax;
  13. for axx=1:numel(bax)
  14. ax=bax(axx);
  15. oldhold=get(ax,'NextPlot');
  16. xlim=get(ax, 'XLim');
  17. ylim=get(ax, 'YLim');
  18. hold(ax,'on')
  19. ll=min([xlim ylim]);
  20. ul=max([xlim ylim]);
  21. h=plot(ax,[ll ul],[ll ul],s);
  22. set(ax,'NextPlot',oldhold);
  23. end