Skip to content

Commit

Permalink
addon r.out.legend: small correction
Browse files Browse the repository at this point in the history
  • Loading branch information
ecodiv committed Jun 8, 2019
1 parent 6ab2283 commit 91fe7c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions grass7/raster/r.out.legend/r.out.legend.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,10 +345,10 @@ def main():
d_legend = Module("d.legend", flags=flag, raster=inmap, font=font,
at=at, fontsize=fz, labelnum=labelnum, run_=False)
if vr:
val_range = list(map(float, vr.split(',')))
val_range = map(float, vr.split(','))
d_legend.inputs.range = val_range
if labval:
label_values = list(map(float, labval.split(',')))
label_values = map(float, labval.split(','))
d_legend.inputs.label_values = label_values
if labstep:
label_step = float(labstep)
Expand Down

0 comments on commit 91fe7c2

Please sign in to comment.