[GRASS-user] How to define the png image dimensions when using d.mon?

Glynn Clements glynn at gclements.plus.com
Sat Mar 26 10:52:06 PDT 2016


Martin Landa wrote:

> > d.mon is designed for interactive use. If you're writing a script,
> > don't use it. Set GRASS_RENDER_IMMEDIATE=png (or =cairo) and use the
> > environment variables.
> 
> not really, beside wx monitors, you can use cairo or png (useful for
> scripting). Martin

You appear to be misunderstanding what "interactive" means in this
context. It doesn't necessarily imply a GUI.

The only situation where a script should be using d.mon is if it
really is a "script", in the sense of a canned sequence of commands
which is meant to be "replayed" as part of an interactive workflow.

Anything which tries to behave like a typical program should manage
the relevant environment variables directly.

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-user mailing list