6
votes
Accepted
Natural Breaks Results Difference in Different GIS Analyst Tools
The first question to investigate is, what method are these programs using to calculate Natural Breaks? Are they all using the same method?
QGIS calculates Natural Breaks (Jenks).
Based on the name "...
3
votes
Accepted
Applying Jenks classification on subset of features using PyQGIS
You can use
your_layer.setSubsetString("ADMIN ILIKE '%Bécancour%'")
It does the same action as using right click on a layer in the layer tree panel, choosing "Filter..." and ...
3
votes
Accepted
Defining not-custom graduated style to polygon layer in PyQGIS
You can use/adapt the following code snippet:
layer = iface.activeLayer()# Polygon vector layer
default_style = QgsStyle().defaultStyle()
# Use any existing color ramp e.g.
# 'Greens', 'Purples', '...
2
votes
Jenks Classification with multiple colors PyQGIS 3
The QgsGradientColorRamp class takes additional args e.g https://qgis.org/api/classQgsGradientColorRamp.html so the following should do what you want.
# Below line can be commented if not standalone
...
2
votes
How to determine the appropriate classification type in a graduated style choropleth map?
I've been experiencing the same kind of problem. The solution that I worked out at the time was using the 'Histogram' option in Qgis. In this option you can manually determine the classification of ...
1
vote
Choosing color classes for comparing differently distributed spatial data
I don't know if I am missing the point, but maybe you could "normalize" the values?
For Map A, divide all the values you want to represent by the largest value of the dataset. You will get a value ...
1
vote
Pseudo natural breaks classification
In QGIS one can manually change the values of the ranges even if the classification chosen was an established one (Jenks, for instance).
I do it very often: I first get the picture of what a set ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
jenks × 9classification × 4
qgis × 3
pyqgis × 3
symbology × 3
arcgis-desktop × 1
raster × 1
arcmap × 1
qgis-3 × 1
style × 1
clustering × 1
color × 1
reclassify × 1
choropleth × 1
colormap × 1
subset × 1
break × 1
colorbrewer × 1