About 142,000 results
Open links in new tab
  1. Filled polygonMatplotlib 3.10.1 documentation

    Filled polygon# fill() draws a filled polygon based on lists of point coordinates x, y. This example uses the Koch snowflake as an example polygon.

  2. How do I plot Shapely polygons and objects using Matplotlib?

    Apr 29, 2019 · If you can get individual lists of the x and y coordinates for your polygon you can plot like: plt.plot(polygon_x,polygon_y). You'll also have to append the first elements to the end …

  3. matplotlib.patches.PolygonMatplotlib 3.10.1 documentation

    If the polygon is meant to be closed, and the last point of the polygon is not equal to the first, we assume that the user has not explicitly passed a CLOSEPOLY vertex, and add it ourselves. …

  4. tkinter - How to draw polygons with Python? - Stack Overflow

    May 15, 2017 · If you want to draw polygons on a matrix representing an image, scikit-image has 3 functions for you: skimage.draw.polygon2mask(image_shape, polygon) that directly returns …

  5. Plot shapely polygons with Matplotlib - CodersLegacy

    To plot simple polygons (with no interiors), we can retrieve the coordinates from the exterior.xy attribute belonging to our Polygon. This returns to use a list of x and y coordinates, which we …

  6. python - How to plot a complex polygon? - Stack Overflow

    Jan 19, 2012 · You can actually plot polygons with holes in matplotlib. The trick is to use Path and PathPatch. For example:

  7. How to create and plot polygons in python using shapely and matplotlib

    Nov 15, 2023 · In this article, we will explore how to plot polygons in python using shapely library. Shapely is a python package for computational geometry which provides easy access to …

  8. Plotting Shapely MultiPolygons with Matplotlib - CodersLegacy

    Here is a quick recap on how we plotted regular Polygons in Matplotlib. The exterior attribute can be used to retrieve the x and y values from the polygon, which we can then plug into the …

  9. python - Plotting Shapely Multipolygon using Matplotlib

    May 2, 2025 · Look at Plot shapefile with islands with matplotlib for example. As with polygons you can use matplotlib paths and patches and there is a Python module dedicated to plot …

  10. Plot Shapely Polygons and Objects Using Matplotlib

    May 6, 2021 · To plot shapely polygons and objects using matplotlib, the steps are as follows −. Create a polygon object using (x, y) data points. Get x and y, the exterior data, and the array …

  11. Some results have been removed
Refresh