Skip to content

histogram -di does not set values to NaN #5630

@maxrjones

Description

@maxrjones

Description of the problem

The -dinodata value does not replace values equal to nodata with nan, at least when used in the histogram module.

Full script that generated the error

#!/bin/bash

echo "0" > data.txt
echo "1" >> data.txt
echo "2" >> data.txt
gmt histogram data.txt -Bafg -R-0.5/2.5/0/2 -T-0.5/2.5/1 -W1p -Gred3 -di0 -png test

Full error message

No error message
Actual outcome
test

Expected outcome

No counts at zero

System information

  • Operating system: macOS
  • GMT version (gmt --version): 6.3.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions