Bug report #13614

Erroneous gaps in the histogram when column type is integer

Added by Johannes Kroeger about 9 years ago. Updated over 5 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:Symbology
Affected QGIS version:master Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:end of life
Crashes QGIS or corrupts data:No Copied to github as #:21652

Description

I noticed erroneous gaps in the histogram in many cases.

Attached are examples from Natural Earth's countries name_len.

Also a comparison between a histogram in R and the same in QGIS (both using the same number of bins I believe, I used Freedman-Diaconis in R, I think QGIS uses that too).

I am on ae1250b on Archlinux, not totally up to date with master.

histogram_gaps_qgis_vs_r.png (26.1 KB) Johannes Kroeger, 2015-10-15 02:11 PM

histogram_gaps.jpg (75.9 KB) Johannes Kroeger, 2015-10-15 02:11 PM

History

#2 Updated by Nyall Dawson about 9 years ago

  • Status changed from Open to Feedback

Can you share your data? Just a CSV with the values from the column used is enough

#3 Updated by Johannes Kroeger about 9 years ago

Open the Shapefile from http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/10m/cultural/ne_10m_admin_0_countries.zip

Choose a graduated style and classify by "name_len". Switch to Histogram tab and play around.

#4 Updated by Nyall Dawson about 9 years ago

  • Subject changed from Erroneous gaps in the histogram to Erroneous gaps in the histogram when column type is integer

#5 Updated by Giovanni Manghi almost 9 years ago

  • Category set to Symbology
  • Status changed from Feedback to Open

#6 Updated by Giovanni Manghi over 7 years ago

  • Regression? set to No
  • Easy fix? set to No

#7 Updated by Giovanni Manghi over 5 years ago

  • Resolution set to end of life
  • Status changed from Open to Closed

Also available in: Atom PDF