/// <summary>
/// -- Plotting functions.
/// </summary>
/// <param name="element"></param>
public override void VisitPlotFunctionElement(PlotFunctionElement element)
{
{
if (element.getPlotFunction() == "subPlot")
{
if (element.getPlotType().getText() == "1")
{
Console.WriteLine("subPlot of type 1D :");
Console.Write("subPlot1D(");
VisitElement(element.getRow()); Console.Write(",");
VisitElement(element.getColumn()); Console.Write(",");
VisitElement(element.getData()); Console.Write(",");
VisitElement(element.getTitle()); Console.Write(");\n");
}
else if (element.getPlotType().getText() == "2")
{
//-- call the 2d subplot function.
Console.WriteLine("subPlot of type 2D :");
Console.Write("subPlot2D(");
VisitElement(element.getRow()); Console.Write(",");
VisitElement(element.getColumn()); Console.Write(",");
VisitElement(element.getData()); Console.Write(",");
VisitElement(element.getTitle()); Console.Write(");\n");
}
else if (element.getPlotType().getText() == "3")
{
//-- call the 3d subplot function.
///-- MODE: TBD
///-- CHANGE: MODE TO A DEFAULT VALUE:
Console.WriteLine("subPlot of type 3D :");
Console.Write("subPlot3D(");
VisitElement(element.getRow()); Console.Write(",");
VisitElement(element.getColumn()); Console.Write(",");
VisitElement(element.getData()); Console.Write(",");
VisitElement(element.getMode()); Console.Write(",");
VisitElement(element.getTitle()); Console.Write(");\n");
}
}
else if (element.getPlotFunction() == "plot")
{
//-- same implementation as above can be used.
Console.WriteLine("\nvisited plot fuction \n");
}
else if (element.getPlotFunction() == "resetPlot")
{
Console.WriteLine("\n visited resetPlot() \n");
}
else if (element.getPlotFunction() == "setPlotAxis")
{
///-- will change from int to double....
Console.WriteLine("\n visited setPlotAxis \n");
}
else if (element.getPlotFunction() == "setPlotAxisTitle")
{
Console.WriteLine("\n visited setPlotAxisTitle\n");
}
else if (element.getPlotFunction() == "setScaleMode")
{
Console.WriteLine("\n visited setScaleMode \n");
}
}
}