doCommandPlotSub method

void doCommandPlotSub(
  1. ClipProc childProc,
  2. ClipParam childParam,
  3. ClipGraph graph,
  4. double start,
  5. double end,
  6. double step,
)

Implementation

void doCommandPlotSub( ClipProc childProc, ClipParam childParam, ClipGraph graph, double start, double end, double step ){
	childProc.setAngType( _angType, false );
	switch( graph.mode() ){
	case ClipGlobal.graphModeRect:
		childParam.variable().label().setLabel( ClipMath.char( 'x' ), "x", true );
		graph.setIndex( ClipMath.char( 'x' ) );
		break;
	case ClipGlobal.graphModeParam:
	case ClipGlobal.graphModePolar:
		childParam.variable().label().setLabel( ClipMath.char( 't' ), "t", true );
		graph.setIndex( ClipMath.char( 't' ) );
		break;
	}
	graph.setStart( start );
	graph.setEnd  ( end   );
	graph.setStep ( step  );
	onStartPlot();
	graph.plot( childProc, childParam );
	onEndPlot();
}