Example showing X-Y graph using GINOGRAF

!
package smallgraf;
import System.Drawing.*;
import System.Collections.*;
import System.ComponentModel.*;
import System.Windows.Forms.*;
import System.Data.*;
import GinoGraphics.*;
/**
 * Summary description for Form1.
 */
public class Form1 extends System.Windows.Forms.Form
{
	private System.Windows.Forms.PictureBox pictureBox1;
	/**
	 * Required designer variable.
	 */
	private System.ComponentModel.Container components = null;
	public Form1()
	{
		//
		// Required for Windows Form Designer support
		//
		InitializeComponent();
		//
		// TODO: Add any constructor code after InitializeComponent call
		//
	}
	/**
	 * Clean up any resources being used.
	 */
	protected void Dispose(boolean disposing)
	{
		if (disposing)
		{
			if (components != null)
			{
				components.Dispose();
			}
		}
		super.Dispose(disposing);
	}
	#region Windows Form Designer generated code
	/**
	 * Required method for Designer support - do not modify
	 * the contents of this method with the code editor.
	 */
	private void InitializeComponent()
	{
		this.pictureBox1 = new System.Windows.Forms.PictureBox();
		this.SuspendLayout();
		// 
		// pictureBox1
		// 
		this.pictureBox1.set_Dock(System.Windows.Forms.DockStyle.Fill);
		this.pictureBox1.set_Location(new System.Drawing.Point(0, 0));
		this.pictureBox1.set_Name("pictureBox1");
		this.pictureBox1.set_Size(new System.Drawing.Size(408, 381));
		this.pictureBox1.set_TabIndex(0);
		this.pictureBox1.set_TabStop(false);
		this.pictureBox1.add_Paint( new System.Windows.Forms.PaintEventHandler(this.pictureBox1_Paint) );
		// 
		// Form1
		// 
		this.set_AutoScaleBaseSize(new System.Drawing.Size(5, 13));
		this.set_ClientSize(new System.Drawing.Size(408, 381));
		this.get_Controls().Add(this.pictureBox1);
		this.set_Name("Form1");
		this.set_Text("Form1");
		this.add_Resize( new System.EventHandler(this.Form1_Resize) );
		this.ResumeLayout(false);
	}
	#endregion
	/**
	 * The main entry point for the application.
	 */
	/** @attribute System.STAThread() */
	public static void main(String[] args) 
	{
		Application.Run(new Form1());
	}
	private void pictureBox1_Paint (Object sender, System.Windows.Forms.PaintEventArgs e)
	{
		int NUL=0;
		Graphics g;
		System.IntPtr hdc;
		g = e.get_Graphics();
		GPOINT[] yy = new GPOINT[6];
		hdc = g.GetHdc();
		yy[0]=new GPOINT(1.0,7.0);
		yy[1]=new GPOINT(2.1,8.5);
		yy[2]=new GPOINT(3.1,7.3);
		yy[3]=new GPOINT(4.2,4.1);
		yy[4]=new GPOINT(5.1,5.2);
		yy[5]=new GPOINT(6.0,1.2);
			
		Gino.OpenGino();  
		Gino.Mwinao(NUL,hdc.ToInt32());
		Gino.SetLineColour(Colour.GGREEN);
		Graf.PlotGraph(6,yy,PlotScaling.GLINEAR,PlotScaling.GLINEAR,GraphType.GAKIMAANDSYMBOLS,GraphAxes.GAXES);
		Gino.FlushGraphics();
		g.ReleaseHdc(hdc);
		Gino.CloseDevice();
		Gino.CloseGino();
	}
	private void Form1_Resize (Object sender, System.EventArgs e)
	{
	pictureBox1.Refresh();
	}
}