Opened 3 years ago

Closed 3 years ago

#3098 closed defect (fixed)

problems with legend with categorical data and smooth gradient option

Reported by: annakrat Owned by: grass-dev@…
Priority: normal Milestone: 7.2.0
Component: Display Version: svn-trunk
Keywords: cartography, gsoc2016, d.legend Cc:
CPU: Unspecified Platform: All

Description

I noticed couple of problems with legend for CELL rasters when we use flag -s (smooth gradient):

  1. How to test: d.legend -s raster=basin_50K@PERMANENT. Instead of the colors, I can see only black. This is result of the recent changes, still works in 7.2.

2.label_values and label_step don't work with the command above. label_values=2 report: tick_value=2 out of range [0.000, 0.000] and label_step doesn't do anything.

  1. d.legend -s -d raster=basin_50K@PERMANENT shows histogram, but it looks vertically shifted. This is an old bug present in 7.2.

Attachments (5)

legend_problem.png (6.5 KB) - added by annakrat 3 years ago.
problem 1
legend_problem_histogram.png (3.4 KB) - added by annakrat 3 years ago.
problem 3
step.png (10.8 KB) - added by lazaa 3 years ago.
values.png (8.9 KB) - added by lazaa 3 years ago.
d.legend_histo.diff (9.4 KB) - added by lazaa 3 years ago.

Download all attachments as: .zip

Change History (8)

Changed 3 years ago by annakrat

Attachment: legend_problem.png added

problem 1

Changed 3 years ago by annakrat

problem 3

comment:1 Changed 3 years ago by annakrat

problem 1 problem 3

Changed 3 years ago by lazaa

Attachment: step.png added

Changed 3 years ago by lazaa

Attachment: values.png added

Changed 3 years ago by lazaa

Attachment: d.legend_histo.diff added

comment:2 Changed 3 years ago by lazaa

I solved the bug with shifted histogram and displaying only black bar as well. Also options label_step and label_values now work.

comment:3 Changed 3 years ago by annakrat

Resolution: fixed
Status: newclosed

Fixed in r68960.

Note: See TracTickets for help on using tickets.