<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:36.0pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:269582003;
        mso-list-type:hybrid;
        mso-list-template-ids:-1170856020 336134159 336134169 336134171 336134159 336134169 336134171 336134159 336134169 336134171;}
@list l0:level1
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level2
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level3
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l0:level4
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level5
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level6
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l0:level7
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level8
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level9
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-NZ link=blue vlink=purple style='word-wrap:break-word'><div class=WordSection1><div><div><div><p class=MsoNormal>>Is it possible to scale the length of the bar based on the number of altitudes so that it fits the standard variable module length used for other colour legends?<o:p></o:p></p></div><div><p class=MsoNormal>>>this has been implemented in <a href="https://github.com/therion/therion/commit/9a30b34a9c9ed54e8c651c2edbb8ef7573e83b6f">9a30b34</a>. <o:p></o:p></p><p class=MsoNormal>This is working I think – yet to test with all projects.<o:p></o:p></p></div><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm'><div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>> I tried using the ‘smooth-shading off’ option in the hope that the altitude legend format would revert to the old style, but there is no difference; it comes out the same as if ‘smooth-shading quick’ is set.<o:p></o:p></p></div></div></blockquote><div><p class=MsoNormal>>>This is intended, because even if you don't use smooth shading for scraps, most of the scraps colored by altitude get colors which are not found on the old-style discrete color legend. So a smooth color legend should be useful. Do you see a use case for having a discrete legend in this case?<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>I’m not sure.  I am undecided as to whether I would prefer independent control of the colour-legend style (user specifies smoothed if Therion can do it, or specifies discrete regardless of whether Therion can do smoothed or not).  The current implementation seems to decide automatically, depending on the type of lookup (for example banded gives discrete, otherwise it is smoothed).  Probably I would prefer independent control.  Especially as the discrete style is used for all only most altitude map-fg / lookups and for all other map-fg / lookups.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Here is a little game I set up in 2018, in order to work around the ‘colours not found’ issue you described above (ie I would artificially adjust the max and min altitude lookup altitudes to bias the colour a little bit).<o:p></o:p></p><p class=MsoNormal>So I have re-run it with 5.5.7+5656503 and 6.0.0+9a30b34.  I think it is useful for putting the altitude colourbar through it’s paces. Refer to the 10 images in the attached zip file.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>My tentative comments:<o:p></o:p></p><ol style='margin-top:0cm' start=1 type=1><li class=MsoListParagraph style='margin-left:0cm;mso-list:l0 level1 lfo1'>The new colourbar misses out the top colour (red), and generally biases the colours on the colourbar too far up relative to the labelled altitudes (a bug).<o:p></o:p></li><li class=MsoListParagraph style='margin-left:0cm;mso-list:l0 level1 lfo1'>Non-linear colour specifications are represented much better by the colour bar than with the discrete colour legend, because labels are proportionate to the non-linearity.<o:p></o:p></li><li class=MsoListParagraph style='margin-left:0cm;mso-list:l0 level1 lfo1'>The new colourbar chooses  better (round number) altitude labels.<o:p></o:p></li><li class=MsoListParagraph style='margin-left:0cm;mso-list:l0 level1 lfo1'>The old version (5.5.7) works better with banded colours as 6.0.0 did not shade it as I would like.  It will probably be OK with smooth shading off – didn’t get around to checking that yet.<o:p></o:p></li></ol><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Bruce<o:p></o:p></p></div></div></div></div></body></html>