Logarithmic color legend tick marks in wrong position
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
Suppose I set up a logarithmic color legend that spans, for example, from 10 to 100.
One would expect to have default tick marks at 10, 20, 30 ... 100. The total amount of tick marks would thus be 10.
Please, check this: you have 11 tick marks. Thus, ticks are not intuitive to read, as one does not know which values they represent.
I also noticed that the manual annotations do not account for logarithmic scaling, so that if I want to add a manual annotation I have to calculate the non-logarithmic position of the annotation with the following formula:
xmin=minimum value of legend xmax=maximum value of legend x=desired annotation value
x' = xmin + (xmax-xmin)*(log10(x)-log10(xmin))/(log10(xmax)-log10(xmin))
For example, in the above example, if I add an annotation at x=30, it will appear at the position of x=30 of the nonlogarithmic color legend. When I apply the above formula, I get x'=52.9409. That is the position I have to assign the annotation of x=30 when using logarithmic scale, if I want it to be correctly located.
Thank you very much.