A Matlab Tool for makeup a SCALEBAR
- dragable
- resizeable
- unit-support
- menucommand-support
plot(sin(1:0.1:10));
obj = scalebar;
Right-Click on the SCALE-LINE, set [X or Y] Length
, [X or Y] Unit
.
Right-Click on the SCALE-Y-LABLE, set Rotate
.
It's amost equal to Operate by GUI.
obj.XLen = 15; %X-Length, 10.
obj.XUnit = 'm'; %X-Unit, 'm'.
obj.Position = [55, -0.6]; %move the whole SCALE position.
obj.hTextX_Pos = [1,-0.06]; %move only the LABEL position
obj.Border = 'UL'; %'LL'(default), 'LR', 'UL', 'UR'