예제 #1
0
        // Quick and dirty plots
        public static int gplotSimple1(this Numa na, GPLOT_OUTPUT outformat, string outroot, string title)
        {
            if (null == na)
            {
                throw new ArgumentNullException("na cannot be null");
            }

            return(Native.DllImports.gplotSimple1((HandleRef)na, (int)outformat, outroot, title));
        }
예제 #2
0
        // Basic plotting functions
        public static GPlot gplotCreate(string rootname, GPLOT_OUTPUT outformat, string title, string xlabel, string ylabel)
        {
            var pointer = Native.DllImports.gplotCreate(rootname, (int)outformat, title, xlabel, ylabel);

            if (IntPtr.Zero == pointer)
            {
                return(null);
            }
            else
            {
                return(new GPlot(pointer));
            }
        }
예제 #3
0
        public static int gplotSimpleXYN(this Numa nax, Numaa naay, GPLOT_STYLE plotstyle, GPLOT_OUTPUT outformat, string outroot, string title)
        {
            if (null == naay)
            {
                throw new ArgumentNullException("naay cannot be null");
            }

            return(Native.DllImports.gplotSimpleXYN((HandleRef)nax, (HandleRef)naay, (int)plotstyle, (int)outformat, outroot, title));
        }