Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
examples [2018/01/20 08:16]
brucemutton [Colour Scales - Lookups]
examples [2019/01/09 00:46] (current)
brucemutton [Colour Scales - Lookups] update release date
Line 105: Line 105:
   code metapost   code metapost
   ​   ​
-  ​def l_survey_cave (expr p) = +    ​def l_survey_cave (expr P) = 
-    draw p withpen PenD withcolor (0.1,​0.3,​0.1);​ +      ​T:​=identity;​ 
-  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.1,​0.3,​0.1);​ 
 +      ​endfor;​ 
 +    ​enddef;
  
 [[:​therion:​example_08a|{{therion:​cave_08_mini.png}}]] //Click on image to see the full resolution file// [[:​therion:​example_08a|{{therion:​cave_08_mini.png}}]] //Click on image to see the full resolution file//
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,​0.3,​0.3);​ +
-    #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,​0.3,​0.3);​+      ​T:​=identity;​ 
 +      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,​0.3,​0.3)
 +      endfor;
     enddef;     enddef;
     ​     ​
Line 197: Line 206:
     code metapost     code metapost
   ​   ​
-    ​def l_survey_cave (expr p) = +  ​def l_survey_cave (expr P) = 
-      draw p withpen PenD withcolor (0.5,​0.3,​0.3);​ +    T:​=identity;​ 
-    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,​0.3,​0.3);​ 
 +    ​endfor; 
 +  ​enddef;
     ​     ​
   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);+      ​T:​=identity;​ 
 +      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,0,1)
 +      endfor;
     enddef;     enddef;
   ​   ​
Line 272: Line 295:
   code metapost   code metapost
   ​   ​
-  ​def l_survey_cave (expr p) = +    ​def l_survey_cave (expr P) = 
-    draw p withpen PenD withcolor (0,0,1); +      ​T:​=identity;​ 
-  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,0,1); 
 +      ​endfor;​ 
 +    ​enddef;
   ​   ​
   endlayout   endlayout
Line 354: Line 384:
 ---- ----
 =====Colour Scales - Lookups===== =====Colour Scales - Lookups=====
-Therion ​Development ​5.4.1+4369eea ​(late 2017) introduced a new concept, lookups, to control colour palettes for map and atlas outputs.+Therion 5.4.(8 Jan 2019) introduced a new concept, lookups, to control colour palettes for map and atlas outputs.
  
-[[https://​www.mail-archive.com/​therion@speleo.sk/​msg06798.html|Original forum post advising of this change]]+[[https://​www.mail-archive.com/​therion@speleo.sk/​msg06798.html|Original forum post advising of this change ​to the development release Nov 2017]]
  
 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.
  • examples.1516432613.txt.gz
  • Last modified: 13 months ago
  • by brucemutton