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

single

Challenge: Polygon Plotting

Swipe um das Menü anzuzeigen

Aufgabe

Wischen, um mit dem Codieren zu beginnen

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.

Lösung

Switch to desktopWechseln Sie zum Desktop, um in der realen Welt zu übenFahren Sie dort fort, wo Sie sind, indem Sie eine der folgenden Optionen verwenden
War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 1. Kapitel 7
single

single

Fragen Sie AI

expand

Fragen Sie AI

ChatGPT

Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen

some-alt