how to make such scale bar precisely?
hi I am seeking one way to make one bar indicating different scale for several figure. something like the attached figure.
I tried the appending calibrator but did not find such function.
whether there is any way to do this?
1_2.png
(6.32 KB)
July 10, 2014 at 07:13 pm - Permalink
As an example, an X-scale bar of 0.2 units would look like this
I once made a graph hook function to draw out a marquee, truncate the width to an even value and draw and label the scale bar where the marquee was.
Here it is. It does both X and Y, as in your example. I had it draw the scale bar in white, cause I was placing it on images with dark background. But I just modified it to use constants for colour. Here it is red. Change all values to 0 to draw in black.
It draws in the programmer front drawing layer. If you do it multiple times, it will draw multiple scale bars. If you hold down the shift key while running it, it will clear all drawing in the programmer front layer before drawing the new scale bar.
It tries to read units from the axes, so set units for data scaling and x scaling.
I think it may only work with left and bottom axes, not top and right, or other, user-defined axes.
jamie
July 11, 2014 at 11:39 am - Permalink