[GRASS-user] units

Hamish hamish_nospam at yahoo.com
Sun Jul 22 23:07:58 EDT 2007


goldneaa
> I am sure there is a simple answer to this question.  What is the  
> easiest way to get units into your graphs in GRASS.  When you put up a
> scale bar with say wind velocities, how do you get the mph to show up 
> with that scale.  As of right now all I get is numbers with no units  
> associated with them.

Yeah, that's something that's missing right now. It is my hope to have
ps.map's colortable instruction and d.legend query the new raster map
units metadata and display the text if it's there. (raster units
metadata is a new feature for GRASS 6.3; see r.support and r.info)

For now you have to use d.text or ps.map's text instruction to place the
units text manually. It's a pain, but hopefully I'll have a chance soon
to code it in properly.


semi-related: I think I'll have to revert the right-justified d.legend
text back to left-justified as it comes up all strange if the user has
set the font to be a proportional TTF, which will be a common thing with
the newer GUIs.



Hamish




More information about the grass-user mailing list