List of available display drivers:
Lets start with simple example of Python script called render.py:
#!/usr/bin/env python3 import os import sys import grass.script as gs from grass.script import task as gtask os.environ['GRASS_RENDER_IMMEDIATE'] = 'default' os.environ['GRASS_RENDER_FILE'] = 'output.png' cmd, dcmd = gtask.cmdstring_to_tuple(sys.argv[1]) gs.run_command('d.text', text="Test of GRASS_RENDER_COMMAND redirection") os.environ['GRASS_RENDER_FILE_READ'] = 'TRUE' gs.run_command(cmd, **dcmd)
export GRASS_RENDER_COMMAND=render.py
d.vect roadsmajor
Available at: Display drivers source code (history)
Latest change: Friday Apr 08 05:27:32 2022 in commit: 3c7e0c5e8d7ba19876083f0a8f23c59d98f06e6a
Note: This document is for an older version of GRASS GIS that will be discontinued soon. You should upgrade, and read the current manual page.
Main index | Display index | Topics index | Keywords index | Graphical index | Full index
© 2003-2023 GRASS Development Team, GRASS GIS 8.2.2dev Reference Manual