Opened 14 years ago

Closed 13 years ago

#1147 closed enhancement (fixed)

user-defined tick labels for d.legend (patch included)

Reported by: dylan Owned by: hamish
Priority: normal Milestone: 6.4.2
Component: Display Version: svn-develbranch6
Keywords: d.legend Cc: grass-dev@…
CPU: All Platform: All


It would be nice if the legend generated from the following command:

d.legend some_map use=0.001,0.01,0.1,1,10,100

actually used those labels. Currently the values are truncated to integers. Attached is a patch against the current (r43367) GRASS65 source. I know that this is supposed to be feature-frozen, just thought that others might be interested. Customized legends are much simpler to create this way.

Attachments (1)

d.legend.patch (944 bytes ) - added by dylan 14 years ago.

Download all attachments as: .zip

Change History (5)

by dylan, 14 years ago

Attachment: d.legend.patch added

comment:1 by hamish, 14 years ago

Cc: grass-dev@… added
Component: CompilingDisplay
CPU: UnspecifiedAll
Keywords: d.legend added
Owner: changed from grass-dev@… to hamish
Platform: UnspecifiedAll
Status: newassigned
Version: unspecifiedsvn-develbranch6

I'll have a look.


comment:2 by dylan, 14 years ago

Any thoughts?

comment:3 by hamish, 13 years ago


Applied in trunk and devbr6 in r45626,7.

aside: One thing I vaguely remember from GRASS 5.0 is that you could set labels for FP values in the cats/ file, and then have those show up in d.legend. I'm not sure if this still works, or if I'm mis-remembering or mis-attributing a reclass/rescale map.

thanks, Hamish

comment:4 by hamish, 13 years ago

Resolution: fixed
Status: assignedclosed

backported to 6.4svn in r46386.


Note: See TracTickets for help on using tickets.