Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
examples [2018/01/07 19:38] – [Colour Scales - Lookups] brucemutton | examples [2019/01/09 00:46] – [Colour Scales - Lookups] update release date brucemutton | ||
---|---|---|---|
Line 105: | Line 105: | ||
code metapost | code metapost | ||
| | ||
- | | + | |
- | draw p withpen PenD withcolor (0.1, | + | |
- | enddef; | + | pair zz[]; |
+ | pickup PenC; | ||
+ | for t = 0 upto length P - 1: | ||
+ | zz1 := point t of P; | ||
+ | zz2 := point t+1 of P; | ||
+ | | ||
+ | | ||
+ | | ||
[[: | [[: | ||
Line 143: | Line 150: | ||
statistics topo-length off #on | statistics topo-length off #on | ||
statistics explo-length off #on | statistics explo-length off #on | ||
- | + | | |
- | #code metapost | + | |
- | #def l_survey_cave (expr p) = | + | |
- | #draw p withpen PenD withcolor (0.5, | + | |
- | #enddef; | + | |
- | | + | |
endlayout | endlayout | ||
| | ||
Line 173: | Line 175: | ||
code metapost | code metapost | ||
| | ||
- | def l_survey_cave (expr p) = | + | def l_survey_cave (expr P) = |
- | draw p withpen PenD withcolor (0.5, | + | |
+ | pair zz[]; | ||
+ | pickup PenC; | ||
+ | for t = 0 upto length P - 1: | ||
+ | zz1 := point t of P; | ||
+ | zz2 := point t+1 of P; | ||
+ | | ||
+ | endfor; | ||
enddef; | enddef; | ||
| | ||
Line 197: | Line 206: | ||
code metapost | code metapost | ||
| | ||
- | | + | |
- | draw p withpen PenD withcolor (0.5, | + | T: |
- | enddef; | + | pair zz[]; |
+ | pickup PenC; | ||
+ | for t = 0 upto length P - 1: | ||
+ | zz1 := point t of P; | ||
+ | zz2 := point t+1 of P; | ||
+ | draw zz1 -- zz2 withcolor (0.5, | ||
+ | | ||
+ | | ||
| | ||
endlayout | endlayout | ||
Line 230: | Line 246: | ||
code metapost | code metapost | ||
| | ||
- | def l_survey_cave (expr p) = | + | def l_survey_cave (expr P) = |
- | draw p withpen PenD withcolor (0,0,1); | + | |
+ | pair zz[]; | ||
+ | pickup PenC; | ||
+ | for t = 0 upto length P - 1: | ||
+ | zz1 := point t of P; | ||
+ | zz2 := point t+1 of P; | ||
+ | | ||
+ | endfor; | ||
enddef; | enddef; | ||
| | ||
Line 272: | Line 295: | ||
code metapost | code metapost | ||
| | ||
- | | + | |
- | draw p withpen PenD withcolor (0,0,1); | + | |
- | enddef; | + | pair zz[]; |
+ | pickup PenC; | ||
+ | for t = 0 upto length P - 1: | ||
+ | zz1 := point t of P; | ||
+ | zz2 := point t+1 of P; | ||
+ | | ||
+ | | ||
+ | | ||
| | ||
endlayout | endlayout | ||
Line 354: | Line 384: | ||
---- | ---- | ||
=====Colour Scales - Lookups===== | =====Colour Scales - Lookups===== | ||
- | Therion | + | Therion 5.4.2 (8 Jan 2019) introduced a new concept, lookups, to control colour palettes for map and atlas outputs. |
- | [[https:// | + | [[https:// |
Whether or not you use lookups, you can specify the parameter that is depicted in colouring of 2D outputs. | Whether or not you use lookups, you can specify the parameter that is depicted in colouring of 2D outputs. | ||
Line 391: | Line 421: | ||
They take the form... | They take the form... | ||
lookup [altitude | explo-date | topo-date | map | scrap][: | lookup [altitude | explo-date | topo-date | map | scrap][: | ||
- | # now list parameters, optional colours, optional text overides to appear in each legend entry, as in the examples below | + | # now list parameters, optional colours, optional text overides to appear in each legend entry, |
- | # do not specify any colours if you want Therion to use it's default colour palette | + | # |
+ | |||
+ | < | ||
+ | |||
+ | # do not specify any colours if you want Therion to use it's default colour palette, just use | ||
+ | # empty brackets, [], if you want to specify text for a particular parameter. | ||
+ | |||
endlookup | endlookup | ||