set_classify

property Maps.set_classify

Interface to the classifiers provided by the β€˜mapclassify’ module.

To set a classification scheme for a given Maps-object, simply use:

>>> m.set_classify.< SCHEME >(...)

Where < SCHEME > is the name of the desired classification and additional parameters are passed in the call. (check docstrings for more info!)

A list of available classification-schemes is accessible via m.classify_specs.SCHEMES

  • BoxPlot (hinge)

  • EqualInterval (k)

  • FisherJenks (k)

  • FisherJenksSampled (k, pct, truncate)

  • HeadTailBreaks ()

  • JenksCaspall (k)

  • JenksCaspallForced (k)

  • JenksCaspallSampled (k, pct)

  • MaxP (k, initial)

  • MaximumBreaks (k, mindiff)

  • NaturalBreaks (k, initial)

  • Quantiles (k)

  • Percentiles (pct)

  • StdMean (multiples)

  • UserDefined (bins)

Examples

>>> m.set_classify.Quantiles(k=5)
>>> m.set_classify.EqualInterval(k=5)
>>> m.set_classify.UserDefined(bins=[5, 10, 25, 50])