Пример #1
0
    // Use this for initialization
    void Start()
    {
        SimplestPlotScript = GetComponent <SimplestPlot>();

        MyRandom    = new System.Random();
        XValues     = new float[DataPoints];
        Y1Values    = new float[DataPoints];
        Y2Values    = new float[DataPoints - 2];
        MyColors[0] = Color.white;
        MyColors[1] = Color.blue;

        SimplestPlotScript.SetResolution(new Vector2(300, 300));
        SimplestPlotScript.BackGroundColor = new Color(0.1f, 0.1f, 0.1f, 0.4f);
        SimplestPlotScript.TextColor       = Color.yellow;
        for (int Cnt = 0; Cnt < 2; Cnt++)
        {
            SimplestPlotScript.SeriesPlotY.Add(new SimplestPlot.SeriesClass());
            SimplestPlotScript.DistributionPlot.Add(new SimplestPlot.DistributionClass());
            SimplestPlotScript.PhaseSpacePlot.Add(new SimplestPlot.PhaseSpaceClass());

            SimplestPlotScript.SeriesPlotY[Cnt].MyColor      = MyColors[Cnt];
            SimplestPlotScript.DistributionPlot[Cnt].MyColor = MyColors[Cnt];
            SimplestPlotScript.PhaseSpacePlot[Cnt].MyColor   = MyColors[Cnt];

            SimplestPlotScript.DistributionPlot[Cnt].NumberOfBins = (Cnt + 1) * 5;
        }

        Resolution = SimplestPlotScript.GetResolution();
    }
Пример #2
0
    void Start()
    {
        Debug.Log("EChart Start");
        chart = GetComponent <SimplestPlot>();

        XValues  = new float[DataPoints];
        Y1Values = new float[DataPoints];

        chart.SetResolution(new Vector2(300, 300));
        chart.BackGroundColor = new Color(0.1f, 0.1f, 0.1f, 0.4f);
        chart.TextColor       = Color.yellow;
        chart.SeriesPlotY.Add(new SimplestPlot.SeriesClass());
        chart.SeriesPlotY[0].MyColor = Color.white;
    }
Пример #3
0
        public virtual void PreparePlot()//List<Answer> answers)
        {
            SimplestPlotScript = GetComponent <SimplestPlot>();
            Resolution         = new Vector2(1280, 800);

            SimplestPlotScript.SetResolution(Resolution);
            SimplestPlotScript.BackGroundColor = new Color(1, 1, 1, 1);
            SimplestPlotScript.TextColor       = Color.black;

            for (int i = 0; i < 2; i++)
            {
                SimplestPlotScript.SeriesPlotY.Add(new SimplestPlot.SeriesClass());
                SimplestPlotScript.SeriesPlotY[i].MyColor = SeriesColors[i];
            }
        }