Skip to content

Commit

Permalink
Merge branch 'OSGeo:main' into i.emissivity_tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jayneel-shah18 authored Feb 19, 2025
2 parents 5a26373 + 688e625 commit 72d767c
Show file tree
Hide file tree
Showing 38 changed files with 240 additions and 627 deletions.
33 changes: 14 additions & 19 deletions display/d.graph/d.graph.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,65 +33,60 @@ be used instead.

The graphics language is simple, and uses the following commands:

\[ [\#](#comment) \| [move](#move) \| [draw](#draw) \|
[polygon](#polygon) \| [polyline](#polyline) \| [color](#color) \|
[text](#text) \| [size](#size) \| [symbol](#symbol) \|
[rotation](#rotation) \| [icon](#icon) \| [width](#width) \]

<span id="comment"></span>**\#** *comment*
**\#** *comment*
A line of comment which is ignored in the processing.

<span id="move"></span>**move** *xpos ypos*
**move** *xpos ypos*
The current location is updated to *xpos ypos*. Unless the **-m** flag
is used, values are stated as a percent of the active display frame's
horizontal (*xpos*) and vertical (*ypos*) size, and may be floating
point values. Values are between 0-100. **Note.** A space must separate
*xpos* and *ypos*.

<span id="draw"></span>**draw** *xpos ypos*
**draw** *xpos ypos*
A line is drawn in the current color from the current location to the
new location *xpos ypos*, which then becomes the current location.
Unless the **-m** flag is used, values are stated as a percent of the
active display frame's horizontal (*xpos*) and vertical (*ypos*) size,
and may be floating point values. Values are between 0-100. **Note.** A
space must separate *xpos* and *ypos*.

<span id="polygon"></span>**polygon**
**polygon**
   *xpos ypos*
   *xpos ypos*
  ...
The coordinates appearing beneath the word *polygon*, one pair per line,
circumscribe a polygon that is to be filled with the current color.

<span id="polyline"></span>**polyline**
**polyline**
   *xpos ypos*
   *xpos ypos*
  ...
The coordinates appearing beneath the word *polyline*, one pair per
line, circumscribe a polygon that is not to be filled with color.

<span id="color"></span>**color** *color*
**color** *color*
Sets the current color to that stated; subsequent graphics will be drawn
in the stated color, until the current color is set to a different
color. Options are *red*, *orange*, *yellow*, *green*, *blue*, *indigo*,
*violet*, *brown*, *magenta*, *gray*, *white*, *black*, an R:G:B triplet
(separated by colons), or the word "none" (draws in the default
background color).

<span id="text"></span>**text** *line-of-text*
**text** *line-of-text*
The stated text is drawn at the current location using the current
color, and the new current location is then positioned at the end of the
text string.

<span id="size"></span>**size** *xper yper*
**size** *xper yper*
Subsequent text will be drawn such that the text is *xper* percent of
the graphics monitor display frame wide and *yper* percent of the frame
high. By default, the text size is set to 5 percent of the active
frame's width and 5 percent of the frame's height. If only one value is
given, then that value will be used for both x and y scaling.
**Note.** A space must separate *xper* and *yper*.
given, then that value will be used for both x and y scaling.
A space must separate *xper* and *yper*.

<span id="symbol"></span>**symbol** *type size xper yper \[line_color \[fill_color\]\]*
**symbol** *type size xper yper \[line_color \[fill_color\]\]*
A symbol is drawn at the given size on the display monitor. The *xper*
and *yper* options define the center of the icon and are given as a
percentage of the display frame (`0,0` is lower left). The symbol can be
Expand All @@ -102,15 +97,15 @@ name, an R:G:B triplet, or "none". If using an R:G:B triplet, each color
value can range from 0-255. If not specified the default *line_color* is
black and the default *fill_color* is grey.

<span id="rotation"></span>**rotation** *angle*
**rotation** *angle*
Subsequent text and symbols will be drawn such that they are rotated
*angle* degrees counter-clockwise from east.

<span id="icon"></span>**icon** *type size x y*
**icon** *type size x y*
Draws an icon of types *o*, *x*, or *+* with specified *size* (in %) at
location *x,y*. Note: type *o* designates a square.

<span id="width"></span>**width** *value*
**width** *value*
Subsequent lines (including non-FreeType text) will be drawn with the
given pixel thickness.
The default value is 0.
Expand Down
2 changes: 1 addition & 1 deletion display/d.rhumbline/d.rhumbline.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ d.rhumbline coordinates=55:58W,33:18S,26:43E,60:37N \
d.grid 10
```

<img src="d_rhumbline.png" data-border="1" />
![Rhumbline (loxodrome)](d_rhumbline.png)
*Rhumbline (loxodrome)*

## NOTES
Expand Down
2 changes: 1 addition & 1 deletion display/d.text/d.text.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ using 4/100'ths (4%) of the active frame's vertical space per line:
d.text text="This is a test of d.text" color=yellow bgcolor=gray size=4
```

<img src="d_text.png" data-border="1" width="600" />
![Displayed Text](d_text.png)
*Displayed Text*

## NOTES
Expand Down
Loading

0 comments on commit 72d767c

Please sign in to comment.