示例#1
0
        public static int gplotGenDataFiles(this GPlot gplot)
        {
            if (null == gplot)
            {
                throw new ArgumentNullException("gplot cannot be null");
            }

            return(Native.DllImports.gplotGenDataFiles((HandleRef)gplot));
        }
示例#2
0
        public static int gplotSetScaling(this GPlot gplot, GPLOT_SCALING scaling)
        {
            if (null == gplot)
            {
                throw new ArgumentNullException("gplot cannot be null");
            }

            return(Native.DllImports.gplotSetScaling((HandleRef)gplot, (int)scaling));
        }
示例#3
0
        public static int gplotAddPlot(this GPlot gplot, Numa nax, Numa nay, GPLOT_STYLE plotstyle, string plottitle)
        {
            if (null == gplot ||
                null == nay)
            {
                throw new ArgumentNullException("gplot, nay cannot be null");
            }

            return(Native.DllImports.gplotAddPlot((HandleRef)gplot, (HandleRef)nax, (HandleRef)nay, (int)plotstyle, plottitle));
        }
示例#4
0
        public static void gplotDestroy(this GPlot pgplot)
        {
            if (null == pgplot)
            {
                throw new ArgumentNullException("pgplot cannot be null");
            }

            var pointer = (IntPtr)pgplot;

            Native.DllImports.gplotDestroy(ref pointer);
        }
示例#5
0
        public static int gplotWrite(string filename, GPlot gplot)
        {
            if (string.IsNullOrWhiteSpace(filename))
            {
                throw new ArgumentNullException("filename cannot be null");
            }
            if (null == gplot)
            {
                throw new ArgumentNullException("gplot cannot be null");
            }

            return(Native.DllImports.gplotWrite(filename, (HandleRef)gplot));
        }