Jon Reades - j.reades@ucl.ac.uk
1st October 2025
Mapclassify (part of PySAL) provides a wide range of classifiers:
No Parameters | k Parameter |
---|---|
BoxPlot | UserDefined |
StdMean | Percentiles |
MaxP | Quantiles |
HeadTailBreaks | Natural Breaks |
EqualInterval | Maximum Breaks |
JenksCaspall/Sampled/Forced | |
FisherJenks/Sampled |
k
will a user-specified number of classes or binning criterion.
The choice of classification scheme should be data- and distribution-led. This is simply a demonstration of how different schemes can shape your understanding of the data.
Setting up the classes:
Setting up the loop:
Setting up the distribution:
Adjusting the legend text:
def replace_legend_items(legend, mapping):
for txt in legend.texts:
for k,v in mapping.items():
if txt.get_text() == str(k):
txt.set_text(v)
Setting up the map: