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 | ||
metapost [2019/06/02 23:35] – [Symbol Sizing and Positioning] clarify symbol parameter indicator brucemutton | metapost [2019/06/09 09:25] – [Scalebars] Add Scalebar 3 brucemutton | ||
---|---|---|---|
Line 166: | Line 166: | ||
I'm going to suggest that the best values for U: components are between [U/u=1.0] to [U/u=1.2] | I'm going to suggest that the best values for U: components are between [U/u=1.0] to [U/u=1.2] | ||
+ | |||
+ | An here are some examples with a slightly improved U: variable, with the symbol aligned top-left and oriented 30 degrees, and the output rotated 15, 105, 195, 285 degrees. | ||
+ | |||
+ | {{: | ||
+ | |||
+ | And one last example, using '' | ||
+ | |||
+ | {{: | ||
Bruce | Bruce | ||
Line 358: | Line 366: | ||
text en "point u: | text en "point u: | ||
- | | + | |
+ | ===Magnetic effects=== | ||
+ | |||
+ | Certain rocks can cause a compass to give the wrong reading. This icon can be used to show areas where this happens (ie. where the survey may be unreliable as a result); a spinning compass: | ||
+ | |||
+ | < | ||
+ | code metapost | ||
+ | % a spinning compass | ||
+ | def p_u_magnetism (expr P,R,S,A)= | ||
+ | scale: | ||
+ | halfline: | ||
+ | pointheight: | ||
+ | pointwidth: | ||
+ | U: | ||
+ | T:=identity aligned A rotated (R-20) scaled S shifted P; | ||
+ | % a circle | ||
+ | thdraw fullcircle scaled 2scale withpen PenC withcolor black; | ||
+ | % filled triangle | ||
+ | thfill (0, | ||
+ | % black triangle outline | ||
+ | thdraw (0, | ||
+ | thdraw (0, | ||
+ | % spin arcs, a full circle is path 0-8, anticlockwise, | ||
+ | thdraw subpath (2.4,3.5) of fullcircle scaled 1.5scale withpen PenC withcolor black; | ||
+ | thdraw subpath (6.4,7.5) of fullcircle scaled 1.5scale withpen PenC withcolor black; | ||
+ | enddef; | ||
+ | initsymbol(" | ||
+ | endcode | ||
+ | </ | ||
+ | |||
+ | {{ :: | ||
+ | |||
+ | Select this as point type " | ||
+ | |||
+ | text en "point u: | ||
====Line Symbols==== | ====Line Symbols==== | ||
===View whole centerline for underground=== | ===View whole centerline for underground=== | ||
Line 1555: | Line 1597: | ||
draw (tmpl-0.25*u/ | draw (tmpl-0.25*u/ | ||
+ | ===Scalebar 3=== | ||
+ | {{: | ||
+ | |||
+ | layout LayoutScalebar3 # Scalebar by Chris Hayes | ||
+ | code metapost | ||
+ | def s_scalebar (expr l, units, txt) = | ||
+ | begingroup | ||
+ | interim warningcheck: | ||
+ | tmp05:=5 * (l / Scale * cm * units / 100); | ||
+ | tmp10: | ||
+ | tmp20: | ||
+ | tmp40: | ||
+ | tmp60: | ||
+ | tmp80: | ||
+ | tmp100: | ||
+ | scal05: | ||
+ | scal10: | ||
+ | scal20: | ||
+ | scal40: | ||
+ | scal60: | ||
+ | scal80: | ||
+ | brht:= 5bp; | ||
+ | lblht:= 8bp; | ||
+ | endgroup; | ||
+ | pickup PenC; | ||
+ | draw (0, | ||
+ | draw (tmp05, | ||
+ | draw (tmp10, | ||
+ | draw (tmp20, | ||
+ | draw (tmp40, | ||
+ | draw (tmp60, | ||
+ | draw (tmp80, | ||
+ | fill (tmp05, | ||
+ | fill (tmp20, | ||
+ | fill (tmp60, | ||
+ | begingroup | ||
+ | label.top(thTEX(decimal (l) & " | ||
+ | label.top(thTEX(decimal (scal80)), | ||
+ | label.top(thTEX(decimal (scal60)), | ||
+ | label.top(thTEX(decimal (scal40)), | ||
+ | label.top(thTEX(decimal (scal20)), | ||
+ | label.top(thTEX(decimal (scal10)), | ||
+ | label.top(thTEX(decimal (scal05)), | ||
+ | label.top(thTEX(decimal (0)), | ||
+ | endgroup | ||
+ | enddef; | ||
+ | endcode | ||
+ | endlayout LayoutScalebar3 | ||
====Gridlines==== | ====Gridlines==== | ||
===Change grid symbols from cross hairs to continuous lines=== | ===Change grid symbols from cross hairs to continuous lines=== |