visualization Module¶
Visualization utilities for road segments.
- class geo_sampling.visualization.RoadPlotter(figsize: tuple = (12, 10))[source]¶
Bases:
objectHandles plotting of road segments with automatic styling.
- plot(segments: List[RoadSegment], title: str = 'Road Segments', show_legend: bool = True, grid: bool = True) None[source]¶
Plot road segments with different colors by road type.
- Parameters:
segments – List of road segments to plot
title – Plot title
show_legend – Whether to show legend
grid – Whether to show grid
- geo_sampling.visualization.plot_road_segments(segments: List[RoadSegment], title: str = 'Road Segments', figsize: tuple = (12, 10), show_legend: bool = True) None[source]¶
Convenience function to plot road segments.
- Parameters:
segments – List of road segments to plot
title – Plot title
figsize – Figure size
show_legend – Whether to show legend