OnWorks favicon

d.rast.leggrass - Online in the Cloud

Run d.rast.leggrass in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command d.rast.leggrass that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator



d.rast.leg - Displays a raster map and its legend on a graphics window


display, cartography, legend


d.rast.leg --help
d.rast.leg [-fns] map=name [lines=integer] [raster=name] [--help] [--verbose]
[--quiet] [--ui]

Flip legend

Omit entries with missing label

Draw smooth gradient

Print usage summary

Verbose module output

Quiet module output

Force launching GUI dialog

map=name [required]
Name of raster map to display

Number of lines to appear in the legend

Name of input raster map to generate legend from


d.rast.leg shows a raster map along with its legend. It first clears the entire screen,
then divides it into a main (left) and a minor (right) frames, and displays a raster map
in the main frame and the map legend in the minor frame. The main frame remains active
when the program finishes.


The legend may be flipped with the -f flag.

If the lines parameter is not given then the legend frame will display as many lines as
number of categories in the map, otherwise, it will display the first lines minus 1
categories with the rest being truncated.

The user may adjust the lines parameter or the size of graphics window to get an
appropriate result.

The user may specify a second raster map with the raster parameter from which the legend
is generated. This is useful to visualize (time) series of raster maps with a common
static legend instead of the default dynamic legend.

To remove all frames when clearing the display, use d.erase -f.


In this example, the polar diagram of the ’aspect’ angle map in the North Carolina sample
dataset location is generated:
g.region raster=landclass96 -p
d.rast.leg landclass96

Use d.rast.leggrass online using onworks.net services

Free Servers & Workstations

Download Windows & Linux apps

  • 1
    LAME (Lame Aint an MP3 Encoder)
    LAME (Lame Aint an MP3 Encoder)
    LAME is an educational tool to be used
    for learning about MP3 encoding. The
    goal of the LAME project is to improve
    the psycho acoustics, quality and speed
    of MP...
    Download LAME (Lame Aint an MP3 Encoder)
  • 2
    A set of Python extension modules that
    wrap the cross-platform GUI classes from
    wxWidgets.. Audience: Developers. User
    interface: X Window System (X11), Win32 ...
    Download wxPython
  • 3
    This is the Total War pack file manager
    project, starting from version 1.7. A
    short introduction into Warscape
    modding: ...
    Download packfilemanager
  • 4
    A network traffic tool for measuring
    TCP and UDP performance with metrics
    around both throughput and latency. The
    goals include maintaining an active
    iperf cod...
    Download IPerf2
  • 5
    fre:ac - free audio converter
    fre:ac - free audio converter
    fre:ac is a free audio converter and CD
    ripper for various formats and encoders.
    It features MP3, MP4/M4A, WMA, Ogg
    Vorbis, FLAC, AAC, and Bonk format
    support, ...
    Download fre:ac - free audio converter
  • 6
    Matplotlib is a comprehensive library
    for creating static, animated, and
    interactive visualizations in Python.
    Matplotlib makes easy things easy and
    hard thing...
    Download Matplotlib
  • 7
    Write your chatbot logic once and
    connect it to one of the available
    messaging services, including Amazon
    Alexa, Facebook Messenger, Slack,
    Telegram or even yo...
    Download BotMan
  • More »

Linux commands