[GRASS-dev] rotated ps.map

Hello,

I recently noticed a small bug(?) is ps.map. If the "-r" option is used
to rotate the plot, the output scale is automatically adjusted based on
an un-rotated map. In other words a map scaled to nicely fit on a
rotated page is scaled down based on the dimensions of the page which is
not rotated.

The attached patch for r_paper.c should fix this problem. Please test
and see if this is the best solution (maybe there is an easier fix) to
the problem.

Thanks.

--
Bob

(attachments)

r_paper.patch (2.07 KB)

On Wed, Aug 02, 2006 at 02:21:42PM -0300, Bob Covill wrote:

Hello,

I recently noticed a small bug(?) is ps.map. If the "-r" option is used
to rotate the plot, the output scale is automatically adjusted based on
an un-rotated map. In other words a map scaled to nicely fit on a
rotated page is scaled down based on the dimensions of the page which is
not rotated.

The attached patch for r_paper.c should fix this problem. Please test
and see if this is the best solution (maybe there is an easier fix) to
the problem.

Thanks.

Bob,

I have applied your patch (untested) to CVS-HEAD.

Markus

Markus,

Thanks for applying the patch.

--
Bob

On Fri, 2006-08-04 at 09:38 +0200, Markus Neteler wrote:

On Wed, Aug 02, 2006 at 02:21:42PM -0300, Bob Covill wrote:
> Hello,
>
> I recently noticed a small bug(?) is ps.map. If the "-r" option is used
> to rotate the plot, the output scale is automatically adjusted based on
> an un-rotated map. In other words a map scaled to nicely fit on a
> rotated page is scaled down based on the dimensions of the page which is
> not rotated.
>
> The attached patch for r_paper.c should fix this problem. Please test
> and see if this is the best solution (maybe there is an easier fix) to
> the problem.
>
> Thanks.

Bob,

I have applied your patch (untested) to CVS-HEAD.

Markus