public void TestGraph() { GraphOption opt = new GraphOption { xDelta = 20, yDelta = 0.5, yRatio = 0.5, SampleCount = 500 }; GraphPlotter gp = new GraphPlotter(opt); gp.Plot(Math.Sin, new Interv(5, 102)); gp.Plot(x => Math.Cos(x) + 1, new Interv(10, 90), 3); ObjectId graph = gp.GetGraphBlock(); BlockReference br = new BlockReference(Point3d.Origin, graph); Point3d first = Interaction.GetPoint("\nSpecify extent point 1"); Interaction.InsertScalingEntity(br, first, "\nSpecify extent point 2"); }
public GraphPlotter() { _option = new GraphOption(); }
public GraphPlotter(GraphOption opt) { _option = opt; _xRange = opt.xRange; _yRange = opt.yRange; }