examples

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
Next revisionBoth sides next revision
examples [2018/01/07 19:38] – [Colour Scales - Lookups] brucemuttonexamples [2019/01/09 00:46] – [Colour Scales - Lookups] update release date brucemutton
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.
Line 391: Line 421:
 They take the form... They take the form...
   lookup [altitude | explo-date | topo-date | map | scrap][:index] [-title "custom title text"]   lookup [altitude | explo-date | topo-date | map | scrap][:index] [-title "custom title text"]
-   # 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+   # as in the examples below.  the parameter listings take the general form... 
 +    
 +   <parameter(s)> [colour] ["text"
 +    
 +   # 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
  
  • examples.txt
  • Last modified: 4 months ago
  • by brucemutton