Skip to content
Advertisement

How do I plot Shapely polygons and objects using Matplotlib?

I want to use Shapely for my computational geometry project. I need to be able to visualize and display polygons, lines, and other geometric objects for this. I’ve tried to use Matplotlib for this but I am having trouble with it.

JavaScript

I would like to be able to display this polygon in a plot. How would I change my code to do this?

Advertisement

Answer

Use:

JavaScript

Or, more succinctly:

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement