Make a plot
In order to make a simple plot in the SDE one may use the predefined object "thePlot" actually an instance of PlotFrame class.
To use a different PlotFrame, one just need to initialize it as a new variable, that is:
import java.text.*;
x=linspace(0.0, 6.0*PI, 10000)
f={sin(it)}
thePlot.addFunction(new plotfunction(x,f as DoubleFunction))
thePlot.setTexfontsize(20)
thePlot.setFormatXAxis(new DecimalFormat("0.###"))
thePlot.setFormatYAxis(new DecimalFormat("0.######E0"))
thePlot.show()
To use a different PlotFrame, one just need to initialize it as a new variable, that is:
anotherPlot = new PlotFrame()
Comments
Post a Comment