[GRASS5] [bug #2803] (grass) d.text's at= vs. d.barscale's at=.

this bug's URL: http://intevation.de/rt/webrt?serial_num=2803
-------------------------------------------------------------------------

d.text's at= counts from a different corner than d.barscale's at=.
Nothing that can be done about it now other than say noting this fact
on d.barscale's man page, under BUGS.

--- Headers Follow ---

From jidanni@jidanni.org Wed Dec 8 00:00:03 2004

Return-Path: <jidanni@jidanni.org>
Delivered-To: grass-bugs@lists.intevation.de
Received: from mail.intevation.de (aktaia [212.95.126.10])
  by lists.intevation.de (Postfix) with ESMTP id E6107102C3E
  for <grass-bugs@lists.intevation.de>; Wed, 8 Dec 2004 00:00:03 +0100 (CET)
Received: from localhost (localhost [127.0.0.1])
  by mail.intevation.de (Postfix) with ESMTP id AA36536CE0
  for <grass-bugs@lists.intevation.de>; Wed, 8 Dec 2004 00:00:03 +0100 (CET)
Received: from frodo.hserus.net (frodo.hserus.net [204.74.68.40])
  by mail.intevation.de (Postfix) with ESMTP id CD9DF36CD8
  for <grass-bugs@intevation.de>; Wed, 8 Dec 2004 00:00:02 +0100 (CET)
Received: from [219.69.72.127] (port=32828 helo=jidanni1)
  by frodo.hserus.net with esmtpsa
  (Cipher TLSv1:RC4-SHA:128) (Exim 4.43 #0)
  id 1CboJN-000O2w-2m by authid <jidanni> with plain
  for <grass-bugs@intevation.de>; Wed, 08 Dec 2004 04:30:01 +0530
To: grass-bugs@intevation.de
Subject: d.text's at= vs. d.barscale's at=.
From: Dan Jacobson <jidanni@jidanni.org>
Date: Wed, 08 Dec 2004 06:27:24 +0800
Message-ID: <87653dsq0j.fsf@jidanni.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Status: No, hits=-4.9 tagged_above=-999.0 required=3.0 tests=BAYES_00
X-Spam-Level:

-------------------------------------------- Managed by Request Tracker

this bug's URL: http://intevation.de/rt/webrt?serial_num=2803
---------------------------------------------------------------------

d.text's at= counts from a different corner than d.barscale's at=.
Nothing that can be done about it now other than say noting this fact
on d.barscale's man page, under BUGS.

This is not a bug, it's a feature and an inconsistency among the greater
scheme of GRASS modules.

Sure something can be done about it (for 6.0+).

It is fully documented:

d.barscale --help
   at The screen coordinates for top-left corner of label
        ([0,0] is top-left of frame)

d.text --help
   at Screen postion at which text will begin to be drawn
        (percentage, [0,0] is lower left)

also affects d.text.freetype, d.legend, d.frame ....

d.text.freetype is interesting:
  -p Coordinates are in pixels ([0,0] is top left)
  -n Coordinates are percentage of frame ([0,0] is bottom left)

& generally the way around I would think logical - pixels use i,j
convention; more abstract "percent of window" uses x,y convention.

Hamish