[Therion] Colour legend labels poorly aligned if more than single line

Martin Budaj m.budaj at gmail.com
Wed Aug 18 21:26:13 CEST 2021


Hi,

you can check the latest commit which should fix the issue. On the other
hand, please also check that regular labels using <br> are not affected by
this change.

Cheers
Martin

On Tue, Aug 17, 2021 at 10:36 AM Bruce Mutton <bruce at tomo.co.nz> wrote:

> The alignment of labels is set towards the top of the colour swatch for
> the colour legend.  This is probably perfect for the banded colour lookup
> shown below.
>
> However where there are multiline labels, the first line for each swatch
> is set too high.
>
> May I suggest that the insertion point/alignment for each text label be
> set at the top of each swatch, rather than above the centre of each swatch
> as currently appears to be the case?
>
>
>
> Bruce
>
>
>
>
>
> lookup altitude:FloodLower -title "Passage coloured by Inundation Hazard"
>
>     #these colours work best with higher opacity (70-100)
>
>               [430 500] [098 100 098] [Above 430 m inundation not
> observed]  #greeny white
>
>               [420 430] [086 100 100] [430 m - 10 yr return period<br> 90
> cumec, Riuwaka at Littles] #water blue
>
>               [400 420] [043 060 090] [420 m - 5 yr return period<br>70
> cumec, Riuwaka at Littles]
>
>               [300 400] [000 020 080] [400 m frequent flooding assumed]
> #dark blue
>
> endlookup
>
>
>
>
>
> _______________________________________________
> Therion mailing list
> Therion at speleo.sk
> https://mailman.speleo.sk/listinfo/therion
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.speleo.sk/pipermail/therion/attachments/20210818/27517d48/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 40559 bytes
Desc: not available
URL: <http://mailman.speleo.sk/pipermail/therion/attachments/20210818/27517d48/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image004.png
Type: image/png
Size: 242180 bytes
Desc: not available
URL: <http://mailman.speleo.sk/pipermail/therion/attachments/20210818/27517d48/attachment-0003.png>


More information about the Therion mailing list