<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jul 19, 2021 at 12:08 PM Bruce Mutton <<a href="mailto:bruce@tomo.co.nz">bruce@tomo.co.nz</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div lang="EN-NZ" style="overflow-wrap: break-word;"><div class="gmail-m_336637352840884954WordSection1"><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?<u></u><u></u></p></div><div><p class="MsoNormal">>>this has been implemented in <a href="https://github.com/therion/therion/commit/9a30b34a9c9ed54e8c651c2edbb8ef7573e83b6f" target="_blank">9a30b34</a>. <u></u><u></u></p><p class="MsoNormal">This is working I think – yet to test with all projects.<u></u><u></u></p></div><blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0cm 0cm 0cm 6pt;margin-left:4.8pt;margin-right:0cm"><div><div><p class="MsoNormal">> 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.<u></u><u></u></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?<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></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.</p></div></div></div></blockquote><div><br></div><div>Agree, independent control offers the best control. The color-legend keyword will be expanded to support on/off/smooth/discrete (on = auto).</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div lang="EN-NZ" style="overflow-wrap: break-word;"><div class="gmail-m_336637352840884954WordSection1"><p class="MsoNormal">My tentative comments:<br></p><p class="MsoNormal"><u></u></p><ol style="margin-top:0cm" start="1" type="1"><li class="gmail-m_336637352840884954MsoListParagraph" style="margin-left:0cm">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).</li></ol></div></div></blockquote><div>It indeed looks like a bug. Could you send me the data to reproduce it?</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div lang="EN-NZ" style="overflow-wrap: break-word;"><div class="gmail-m_336637352840884954WordSection1"><ol style="margin-top:0cm" start="1" type="1"><li class="gmail-m_336637352840884954MsoListParagraph" style="margin-left:0cm">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.<br></li></ol></div></div></blockquote><div>Maybe the effect you don't like is that only a part of any scrap within the bounds of the band is coloured (not the whole scrap) when smooth shading is used.</div><div>For highlighting particular passages probably a special area symbol filled with a colour (or different colours based on the ATTR__scrap value) is better suited than altitude bands.</div><div><br></div><div>Cheers</div><div>Martin</div><div> </div></div></div>