public void Plot(object sender, TimeStepCalculatedEventArgs args)
        {
            //this.gp.Set("zrange [-1:1]");
            //this.gp.Set("palette color positive");
            //this.gp.Set("pm3d map");
            foreach (var freq in args.Parameters.Spectrum)
            {
                var surf = new double[args.Parameters.Indices.ILength, args.Parameters.Indices.JLength];

                this.iterator.ForExceptK(
                    args.Parameters.Indices,
                    (i, j) =>
                {
                    var field = args.Fields.FourierE[i, j, args.Parameters.Indices.GetCenter().KLength];
                    if (field == null)
                    {
                        surf[i, j] = 0;
                        return;
                    }
                    surf[i, j] = field.Transform(freq, args.Parameters.TimeStep).Z.Real;
                });

                this.gp.HeatMap(surf);
            }
        }
        protected virtual void OnTimeStepCalculated(TimeStepCalculatedEventArgs e)
        {
            EventHandler <TimeStepCalculatedEventArgs> handler = this.TimeStepCalculated;

            if (handler != null)
            {
                handler(this, e);
            }
        }
        public void Plot(object sender, TimeStepCalculatedEventArgs args)
        {
            var surf = new double[args.Parameters.Indices.ILength, args.Parameters.Indices.JLength];

            this.iterator.ForExceptK(
                args.Parameters.Indices,
                (i, j) =>
            {
                surf[i, j] = args.Fields.E[i, j, args.Parameters.Indices.GetCenter().KLength].Z;
            });
            this.gp.Set("zrange [-1:1]");
            this.gp.SPlot(surf);
        }
 public void Plot(object sender, TimeStepCalculatedEventArgs args)
 {
     this.gp.Plot(args.Pulse.E.Select(coord => coord.Z).ToArray());
 }
Beispiel #5
0
 public void Plot(object sender, TimeStepCalculatedEventArgs args)
 {
     this.gp.Plot(args.Pulse.E);
 }