0.3.0
This release is the first comprehensive overhaul of geoplot
since its initial design and release in early 2017. While this release adds no new "large-scale" features, you can except a much more polished user experience with 0.3.0
than previously existed.
Breaking changes include (highlights in bold):
- The
categorical
argument has been removed.geoplot
will now infer when a column is categorical automatically. - The overly complicated
aggplot
plot type has been removed and replaced with the simplifiedquadtree
. Most parameters are the same, but the convex hull and auto-choropleth features have been removed. - Plots now use the center of the
GeoDataFrame
bounding box geometry (viaGeoDataFrame.total_bounds
) instead of the cumulative average of the individual geometries, which is both faster and more accurate. - The order of arguments for the
extent
parameter has changed. Previously it took a tuple of(xmin, xmax, ymin, ymax)
; now it takes a tuple of(xmin, ymin, xmax, ymax)
, for compatibility withGeoDataFrame.total_bounds
. - When overplotting multiple plots on a single axis, the projection now need only be specified once, instead of once per plot function.
- The
sankey
has been reworked.path
,from
, andto
have been removed; line geometries are now read from theGeoDataFrame
instead of transformed just-in-time. This bringssankey
more in line with the rest of the plots in thegeoplot
. - The
trace
andtrace_kwargs
parameters have been removed fromcartogram
. To add a trace to acartogram
plot, overplot apolyplot
instead. cmap
now defaults toviridis
(as inmatplotlib
) instead ofSet1
.- The minimum Python version has been raised from 3.5 to 3.6.
polyplot
now defaults tozorder=-1
(e.g. "bottom of the plot").kdeplot
now defaults toshade_lowest=False
.- The
vmin
andvmax
parameters have been removed.
Other changes include:
- A number of edge cases have been addressed and reliability has been improved, particularly in the case of the
voronoi
andquadtree
plot types. - Certain common bad combinations of parameters will now raise helpful error messages instead of failing inexplicably or doing the wrong thing.
- The documentation has been completely rewritten for ease of use and clarity.
- Certain parameters like
clip
now accept more types of inputs. - Code has been refactored with new
Plot
and{Feature}Mixin
classes, which greatly increases code reuse and extensibility and will make adding new plot types in the future much easier.