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_full.rst_ 2.3 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
  1. .. _-l_full:
  2. **-l**\ [*label*]\ [**+D**\ *pen*][**+G**\ *gap*][**+H**\ *header*][**+L**\ [*code*/]\ *txt*][**+N**\ *cols*][**+S**\ *size*][**+V**\ [*pen*]][**+f**\ *font*][**+g**\ *fill*][**+j**\ *just*][**+o**\ *off*][**+p**\ *pen*][**+s**\ *scale*][**+w**\ *width*]
  3. Add a map legend entry to the session legend information file for the
  4. current plot. Optionally append a text *label* to describe the entry.
  5. Several modifiers allow further changes to the legend (to be built
  6. when :doc:`legend` is called): Use **+D** to draw a horizontal line before the
  7. legend entry is placed [no line], **+G** to add some vertical space [0],
  8. **+H** to add a legend header [no header], **+L** to set a line text; prepend
  9. a horizontal justification code **L**, **C**, or **R** [**C**], **+N**
  10. to change the number of columns used to set the following legend items [1],
  11. **+S** to override the size of the current symbol for the legend or set a
  12. length if plotting a line or contour [same as plotted], and
  13. **+V** to start and **+v**\ *pen* to stop drawing vertical line from
  14. previous to current horizontal line [no vertical line]. In addition, several
  15. lower-case modifiers can be set to affect the legend: Use
  16. **+f** to set the font used for the legend header [:term:`FONT_TITLE`],
  17. **+g** to set the fill used for the legend frame [white],
  18. **+j** to set placement of the legend [TR],
  19. **+o** to set the offset from legend frame to anchor point [0.2c],
  20. **+p** to set the pen used for the legend frame [1p],
  21. **+s**\ *scale* to resize all symbol and length sizes in the legend, and
  22. **+w**\ *width* to set legend frame width [auto].
  23. Default pen is given by :term:`MAP_DEFAULT_PEN`.
  24. Note that **+H**, **+g**, **+j**, **+o**, **+p**, **+w**, and **+s**
  25. will only take effect if appended to the very first **-l** option for a plot. The **+N** modifier,
  26. if appended to the first **-l** option, affects the legend width (unless set via **+w**); otherwise it
  27. just subdivides the available width among the specified columns.
  28. The upper-case modifiers reflect legend codes described in :doc:`legend`, which provide more details and
  29. customization. If **legend** is not called explicitly we will call it implicitly when finishing the plot
  30. via :doc:`end`.
Tip!

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

Comments

Loading...