Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Impara Challenge: Polygon Plotting | Introduction to Geometric Modelling
Geometric Modelling with Python
Sezione 1. Capitolo 7
single

single

Challenge: Polygon Plotting

Scorri per mostrare il menu

Compito

Scorri per iniziare a programmare

Practice your geometric plotting skills by visualizing a polygon defined by a list of vertices. This challenge builds on your experience with matplotlib and shape visualization from the previous chapter.

  • Accept a list of vertices, where each vertex is a tuple of two numbers representing the x and y coordinates.
  • Plot the polygon by connecting the vertices in order, closing the shape by connecting the last vertex back to the first.
  • Display the plot using matplotlib.

Soluzione

Switch to desktopCambia al desktop per esercitarti nel mondo realeContinua da dove ti trovi utilizzando una delle opzioni seguenti
Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 1. Capitolo 7
single

single

Chieda ad AI

expand

Chieda ad AI

ChatGPT

Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione

some-alt