d.background(1grass)

d.background1grass

Fills the graphics display frame with user defined color.

Usage

d.background

d.background --help

d.background color=name [--help] [--verbose] [--quiet] [--ui]

Keywords

display, graphics, background, fill, erase

Overview

d.background will fill the image (or generally display monitor) with a single color specified by the color option.

Notes

d.background is a frontend to d.erase and shares its limitations. Namely, it does not work with the wx monitors such as d.mon wx0.

Examples

In this example, the streets_wake map from the North Carolina sample dataset is displayed with custom background color (specified using HTML hex color code) using cairo display monitor (creates file called map.png):

g.region vector=streets_wake
d.mon cairo
d.background color=#ADEFD1
d.vect map=streets_wake color=#00203F legend_label="Streets"
d.legend.vect -b at=70,30 title="Wake County"

Figure: Wake County street network with custom background color (North Carolina sample dataset)

Source code

Available at: d.background source code (history)

Accessed: Monday Feb 24 17:51:43 2025

Main index | Display index | Topics index | Keywords index | Graphical index | Full index

© 2003-2025 GRASS Development Team, GRASS GIS 8.4.1 Reference Manual

Releases

2 releases since Debian 12 (Bookworm); the text changed 1 time.

  1. 12
  2. 13

Author

Vaclav Petras, NCSU GeoForAll Lab

From grass-doc 8.4.1-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.