starepandas.STAREDataFrame.plot#

STAREDataFrame.plot(trixels=True, boundary=True, **kwargs)#

Generate a plot with matplotlib. Seminal method to GeoDataFrame.plot() All GeoDataFrame.plot() kwargs are available.

Parameters
trixels: bool

Toggle if trixels (rather than the SF geometry) is to be plotted

boundary: bool

Toggle if the ring is to be plotted as a linestring rather than the polygon. Only relevant if trixels==True

Examples

>>> import starepandas
>>> import geopandas
>>> world = geopandas.read_file(geopandas.datasets.get_path('naturalearth_lowres'))
>>> germany = world[world.name=='Germany']
>>> germany = starepandas.STAREDataFrame(germany, add_sids=True, level=8, add_trixels=True, n_partitions=1)
>>> ax = germany.plot(trixels=True, boundary=True, color='y', zorder=0)