import numpy as np
import math
import matplotlib.pyplot as plt
import copy
class Curve:
def __init__(self,a,b,curve_type,plot_type):
self.a = a
self.b = b
self.curve_type = curve_type
self.plot_type = plot_type
self.points = []
def draw_curve(self):
points = np.array(self.points).T
if self.plot_type == "scatter":
plt.scatter(points[0], points[1])
python画蜗型线、心形线、三叶曲线、四叶曲线、螺旋线
最新推荐文章于 2024-03-02 16:53:41 发布