[GRASS-dev] [GRASS GIS] #3098: problems with legend with categorical data and smooth gradient option

#3098: problems with legend with categorical data and smooth gradient option
---------------------------------------------+-------------------------
Reporter: annakrat | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.2.0
Component: Display | Version: svn-trunk
Keywords: cartography, gsoc2016, d.legend | CPU: Unspecified
Platform: All |
---------------------------------------------+-------------------------
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.

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

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3098&gt;
GRASS GIS <https://grass.osgeo.org>

#3098: problems with legend with categorical data and smooth gradient option
--------------------------+---------------------------------------------
  Reporter: annakrat | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.2.0
Component: Display | Version: svn-trunk
Resolution: | Keywords: cartography, gsoc2016, d.legend
       CPU: Unspecified | Platform: All
--------------------------+---------------------------------------------
Changes (by annakrat):

* Attachment "legend_problem.png" added.

problem 1

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/3098&gt;
GRASS GIS <https://grass.osgeo.org>

#3098: problems with legend with categorical data and smooth gradient option
--------------------------+---------------------------------------------
  Reporter: annakrat | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.2.0
Component: Display | Version: svn-trunk
Resolution: | Keywords: cartography, gsoc2016, d.legend
       CPU: Unspecified | Platform: All
--------------------------+---------------------------------------------
Changes (by annakrat):

* Attachment "legend_problem_histogram.png" added.

problem 3

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3098&gt;
GRASS GIS <https://grass.osgeo.org>

#3098: problems with legend with categorical data and smooth gradient option
--------------------------+---------------------------------------------
  Reporter: annakrat | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.2.0
Component: Display | Version: svn-trunk
Resolution: | Keywords: cartography, gsoc2016, d.legend
       CPU: Unspecified | Platform: All
--------------------------+---------------------------------------------

Comment (by annakrat):

[[Image(legend_problem.png)]]
[[Image(legend_problem_histogram.png)]]

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3098#comment:1&gt;
GRASS GIS <https://grass.osgeo.org>

#3098: problems with legend with categorical data and smooth gradient option
--------------------------+---------------------------------------------
  Reporter: annakrat | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.2.0
Component: Display | Version: svn-trunk
Resolution: | Keywords: cartography, gsoc2016, d.legend
       CPU: Unspecified | Platform: All
--------------------------+---------------------------------------------
Changes (by lazaa):

* Attachment "step.png" added.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3098&gt;
GRASS GIS <https://grass.osgeo.org>

#3098: problems with legend with categorical data and smooth gradient option
--------------------------+---------------------------------------------
  Reporter: annakrat | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.2.0
Component: Display | Version: svn-trunk
Resolution: | Keywords: cartography, gsoc2016, d.legend
       CPU: Unspecified | Platform: All
--------------------------+---------------------------------------------
Changes (by lazaa):

* Attachment "values.png" added.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3098&gt;
GRASS GIS <https://grass.osgeo.org>

#3098: problems with legend with categorical data and smooth gradient option
--------------------------+---------------------------------------------
  Reporter: annakrat | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.2.0
Component: Display | Version: svn-trunk
Resolution: | Keywords: cartography, gsoc2016, d.legend
       CPU: Unspecified | Platform: All
--------------------------+---------------------------------------------
Changes (by lazaa):

* Attachment "d.legend_histo.diff" added.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3098&gt;
GRASS GIS <https://grass.osgeo.org>

#3098: problems with legend with categorical data and smooth gradient option
--------------------------+---------------------------------------------
  Reporter: annakrat | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.2.0
Component: Display | Version: svn-trunk
Resolution: | Keywords: cartography, gsoc2016, d.legend
       CPU: Unspecified | Platform: All
--------------------------+---------------------------------------------

Comment (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.
[[Image(values.png)]] [[Image(step.png)]]

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3098#comment:2&gt;
GRASS GIS <https://grass.osgeo.org>

#3098: problems with legend with categorical data and smooth gradient option
--------------------------+---------------------------------------------
  Reporter: annakrat | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: normal | Milestone: 7.2.0
Component: Display | Version: svn-trunk
Resolution: fixed | Keywords: cartography, gsoc2016, d.legend
       CPU: Unspecified | Platform: All
--------------------------+---------------------------------------------
Changes (by annakrat):

* status: new => closed
* resolution: => fixed

Comment:

Fixed in r68960.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3098#comment:3&gt;
GRASS GIS <https://grass.osgeo.org>