If like me you often want to produce a plot containing several images all scaled to the same limits, you may be interested in a new feature in KAPPA:DISPLAY that simplifies this. Setting the MODE parameter to "Current" will now re-use the scaling limits that were used on the previous invocation of display. No need to copy and paste the limits any more... As an example:
% gdclear
% picdef mode=array xpic=3 ypic=1 prefix=pic
% display map1 mode=per percentiles=\[2,98\]
% picsel pic2
% display map2 mode=cur
% picsel pic3
% display map3 mode=cur
% gdclear
% picdef mode=array xpic=3 ypic=1 prefix=pic
% display map1 mode=per percentiles=\[2,98\]
% picsel pic2
% display map2 mode=cur
% picsel pic3
% display map3 mode=cur
will display map1.sdf on the left with 2% of pixels set to pure black and 2% set to pure white. It will then display map2.sdf in the center and map3.sdf on the right, using the same scaling that was used with map1.sdf.
No comments:
Post a Comment