Holds the complexplot data.
Inheritance: XYPlotValue
Example #1
0
 static ComplexPlotValue Plot(FunctionValue f, Double minx, Double maxx, Double miny, Double maxy)
 {
     var cp = new ComplexPlotValue();
     cp.SetFunction(f);
     cp.MinY = miny;
     cp.MaxY = maxy;
     cp.MinX = minx;
     cp.MaxX = maxx;
     return cp;
 }
Example #2
0
        public static ComplexPlotValue Plot(FunctionValue f, double minx, double maxx, double miny, double maxy)
        {
            var cp = new ComplexPlotValue();

            cp.SetFunction(f);
            cp.MinY = miny;
            cp.MaxY = maxy;
            cp.MinX = minx;
            cp.MaxX = maxx;
            return(cp);
        }
Example #3
0
        /// <summary>
        /// Creates a new instance from the given bytes.
        /// </summary>
        /// <param name="content">The binary content to create a new instance from.</param>
        /// <returns>The new instance.</returns>
        public override Value Deserialize(byte[] content)
        {
            var cp = new ComplexPlotValue();

            using (var ds = Deserializer.Create(content))
            {
                cp.Deserialize(ds);
                var ctn = ds.GetBytes();
                cp.f = new FunctionValue().Deserialize(ctn) as FunctionValue;
            }

            return(cp);
        }
Example #4
0
        /// <summary>
        /// Creates a new instance from the given bytes.
        /// </summary>
        /// <param name="content">The binary content to create a new instance from.</param>
        /// <returns>The new instance.</returns>
        public override Value Deserialize(byte[] content)
        {
            var cp = new ComplexPlotValue();

            using (var ds = Deserializer.Create(content))
            {
                cp.Deserialize(ds);
                var ctn = ds.GetBytes();
                cp.f = new FunctionValue().Deserialize(ctn) as FunctionValue;
            }

            return cp;
        }