#64: ps.map: patch to set customized scalebar units
--------------------------+-------------------------------------------------
Reporter: alf | Owner: hamish
Type: enhancement | Status: closed
Priority: minor | Milestone: 6.4.0
Component: ps.map | Version: svn-trunk
Resolution: fixed | Keywords: scalebar
Platform: All | Cpu: All
--------------------------+-------------------------------------------------
Comment (by glynn):
Replying to [comment:9 hamish]:
> I don't know if it is possible to get the right-hand coordinate of a PS
pseudo-text box when the text is left-justified. I do not wish to right-
justify those labels.
You can use the `stringwidth` operator to obtain the width of a string
(the distance that the current point will move if you `show` the string).
If the string is short, you can obtain the bounding box with a combination
of the `charpath` and `pathbbox` operators (if the string is long,
`charpath` may overflow the maximum path length).
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/64#comment:10>
GRASS GIS <http://grass.osgeo.org>
_______________________________________________
grass-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-dev