[GRASS-user] Horizontal legend font size

I want to create a horizontal legend for a raster.

The docs say,

When using the mouse or at to size & place the legend, a user may create a horizontal legend by making the box wider than it is tall.

I read the previous line to mean the only way to create a legend is to use at and make the box wider than it is tall. Is that correct? Can I make a legend horizontal without using at=bottom,top,left,right

The docs also say,

Vertical legends produced with d.legend will place text labels to the right of the legend box, horizontal legends will place text below. This text will be auto-scaled to fit within the frame, reducing the size of the legend if necessary. Legends positioned with the mouse or with the at option will not auto-scale text, in order to provide more control to the user.

The last line that says that the text will not auto-scale when using at, which means that a horizontal legend’s text will never auto-scale since the horizontal legend can only be made by using at to create a box that is wider than it is tall. Am I misinterpreting anything?

My problem is that I get a horizontal legend that looks great except the text is huge and looks awful.

How can I change the size of the text in the legend?

The following are my commands.

d.rast raster@Temp
d.frame -c frame=leg at=1,10,5,95
d.legend -s range=0,13.5 labelnum=5 at=80,100,5,95 map=raster@Temp

Thanks,

Paul

Typo correction
The line
I read the previous line to mean the only way to create a legend is to use at and make the box wider than it is tall. Is that correct? Can I make a legend horizontal without using at=bottom,top,left,right
Should read
I read the previous line to mean the only way to create a horizontal legend is to use at and make the box wider than it is tall. Is that correct? Can I make a legend horizontal without using at=bottom,top,left,right

On 8/11/08 2:50 PM, “Paul Moen” pmoen@nd.gov wrote:

I want to create a horizontal legend for a raster.

The docs say,

When using the mouse or at to size & place the legend, a user may create a horizontal legend by making the box wider than it is tall.

I read the previous line to mean the only way to create a legend is to use at and make the box wider than it is tall. Is that correct? Can I make a legend horizontal without using at=bottom,top,left,right

The docs also say,

Vertical legends produced with d.legend will place text labels to the right of the legend box, horizontal legends will place text below. This text will be auto-scaled to fit within the frame, reducing the size of the legend if necessary. Legends positioned with the mouse or with the at option will not auto-scale text, in order to provide more control to the user.

The last line that says that the text will not auto-scale when using at, which means that a horizontal legend’s text will never auto-scale since the horizontal legend can only be made by using at to create a box that is wider than it is tall. Am I misinterpreting anything?

My problem is that I get a horizontal legend that looks great except the text is huge and looks awful.

How can I change the size of the text in the legend?

The following are my commands.

d.rast raster@Temp
d.frame -c frame=leg at=1,10,5,95
d.legend -s range=0,13.5 labelnum=5 at=80,100,5,95 map=raster@Temp

Thanks,

Paul



grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

Paul T. Moen
pmoen@nd.gov
701-328-2434
701-328-3696 (fax)
ND State Water Commission