[Therion] Colour legend labels poorly aligned if more than single line
Bruce Mutton
bruce at tomo.co.nz
Thu Aug 19 10:58:34 CEST 2021
Thanks Martin
The colour legend looks much better, including when three lines are included for one entry.
The relative position of map header title is changed relative to the north arrow – probably not ideal as it will change existing projects.
This is the new position with 48180cb
This is what it was like.
I think point labels are unaffected.
Forcing the symbol legend to fit in too narrow a space gives an acceptable result.
I have not tried an explicit newline <br> but expect it would give a similar result.
All up a good change, but it may upset some header title positions.
Bruce
From: Therion <therion-bounces at speleo.sk> On Behalf Of Martin Budaj
Sent: Thursday, 19 August 2021 07:26
To: List for Therion users <therion at speleo.sk>
Subject: Re: [Therion] Colour legend labels poorly aligned if more than single line
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 <mailto: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 <mailto: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/20210819/7d88dcba/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/20210819/7d88dcba/attachment-0006.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image005.png
Type: image/png
Size: 89400 bytes
Desc: not available
URL: <http://mailman.speleo.sk/pipermail/therion/attachments/20210819/7d88dcba/attachment-0007.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image007.png
Type: image/png
Size: 50132 bytes
Desc: not available
URL: <http://mailman.speleo.sk/pipermail/therion/attachments/20210819/7d88dcba/attachment-0008.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image008.png
Type: image/png
Size: 49245 bytes
Desc: not available
URL: <http://mailman.speleo.sk/pipermail/therion/attachments/20210819/7d88dcba/attachment-0009.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image014.png
Type: image/png
Size: 73403 bytes
Desc: not available
URL: <http://mailman.speleo.sk/pipermail/therion/attachments/20210819/7d88dcba/attachment-0010.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image015.png
Type: image/png
Size: 242180 bytes
Desc: not available
URL: <http://mailman.speleo.sk/pipermail/therion/attachments/20210819/7d88dcba/attachment-0011.png>
More information about the Therion
mailing list