Question: Draw a square with a Pentagram hole! The 3 3 square extends from 0 . 7 to 2 . 3 on the X axis and

Draw a square with a Pentagram hole!
The 33 square extends from 0.7 to 2.3 on the X axis and from 0.3 to 2.7 on the Y axis.
Keep the X and Y arrays namedxp and yp, respectively.
For your convenience, your Pentagram code from 1.6 is copied below.
Do not forget to separate the pentagram and the square with None.
Draw the square using negative orientation (because the orientation of the Pentagram is positive).
Code from 1.6:
import matplotlib.pyplot as plt
xp =[0,0.81,1.62,1.31,2.12,1.12,0.81,0.5,-0.5,0.31,0]
yp =[0,0.59,0,0.95,1.54,1.54,2.49,1.54,1.54,0.95,0]
plt.axis("equal")
plt.axis("off")
plt.fill(xp, yp)
plt.show()
Draw a square with a Pentagram hole! The 3 3

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!