Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

explain_-L_scale.rst_ 2.1 KB

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
  1. **-L**\ [**g**\|\ **j**\|\ **J**\|\ **n**\|\ **x**]\ *refpoint*\ **+c**\ [*slon*/]\ *slat*\ **+w**\ *length*\ [**e**\|\ **f**\|\ **k**\|\ **M**\|\ **n**\|\ **u**]\ [**+a**\ *align*]\ [**+f**]\ [**+j**\ *justify*]\ [**+l**\ [*label*]\ ]\ [**+o**\ *dx*\ [/*dy*]]\ [**+u**][**+v**]
  2. Draws a simple map scale centered on the reference point specified
  3. using one of four coordinate systems:
  4. .. include:: explain_refpoint.rst_
  5. Scale is calculated for latitude *slat*
  6. (optionally supply longitude *slon* for oblique projections [Default
  7. is central meridian]), *length* is in km, or append unit from
  8. **e**\|\ **f**\|\ **k**\|\ **M**\|\ **n**\|\ **u**.
  9. Change the label alignment with **+a**\ *align* (choose among
  10. **l**\ (eft), **r**\ (ight), **t**\ (op), and **b**\ (ottom)).
  11. Append **+f** to get a "fancy" scale [Default is plain].
  12. By default, the anchor point on the map scale is assumed to be the center of the scale (MC), but this
  13. can be changed by appending **+j** followed by a 2-char justification code *justify*
  14. (see :doc:`text` for list and explanation of codes).
  15. Append **+l** to select the default label, which equals the distance
  16. unit (meter, foot, km, mile, nautical mile, US survey foot) and is
  17. justified on top of the scale [t]. Change this by giving your own
  18. label (append **+l**\ *label*).
  19. Select **+u** to append the unit to all distance annotations along the
  20. scale (for the plain scale, **+u** will instead select the unit to be
  21. appended to the distance length). Cartesian projections: Origin **+c** is
  22. not required, **+f** is not allowed, and no units should be specified in **+w**.
  23. You must set any Cartesian data units via **+l**.
  24. For a vertical rather than horizontal Cartesian scale, append **+v**.
  25. **Note**: Use :term:`FONT_LABEL` to change the label font and
  26. :term:`FONT_ANNOT_PRIMARY`
  27. to change the annotation font. The height of the map scale is controlled
  28. by :term:`MAP_SCALE_HEIGHT`, and the pen thickness is
  29. set by :term:`MAP_TICK_PEN_PRIMARY`.
  30. See **-F** on how to place a panel behind the scale.
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...