[GRASS-user] Re: d.mon and monitor frames

Glynn Clements glynn at gclements.plus.com
Sat Sep 4 17:07:16 EDT 2010


Damian M wrote:

> Thank you for your reply.
> 
> I am using the PNG monitor as follows:
> 
> --------------------------------------------------
> 
>     os.environ['GRASS_WIDTH'] = '2000'
>     os.environ['GRASS_HEIGHT'] = '1600'
>     os.environ["GRASS_TRUECOLOR"] = "TRUE"
> 
>     os.putenv('GRASS_PNGFILE', outFileName+".png") 
>     grass.run_command("d.mon", start="PNG")

In which case, it ought to work. d.barscale explicitly reads the
bounds of the current frame when calculating the coordinates.

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


More information about the grass-user mailing list