用Python在一個figure裏面畫出長方形、三角形和橢圓形

用Python的matplotlib在一個figure裏面畫出長方形、三角形和橢圓形 以下圖: 源代碼:python import matplotlib.pyplot as plt import matplotlib.patches as pc fig1 = plt.figure() # 窗口1 ax1 = fig1.add_subplot(111, aspect='equal') plt.x
相關文章
相關標籤/搜索