Zedgraph creating too small image -


the output of graph small, can't see values @ x , y axis. there way change this, graph bigger? code output graph is:

 zedgraphcontrol zc = new zedgraphcontrol();         graphpane pane = zc.graphpane;          pointpairlist list1 = new pointpairlist();         lineitem curve1;                      pane.title.text = title;         pane.xaxis.title.text = xaxistitle;         pane.xaxis.scale.min = 0;         pane.xaxis.scale.max = 11;         pane.yaxis.scale.min = 1;         pane.yaxis.scale.max = 12;         pane.yaxis.title.text = yaxistitle;          int32 totalcount = ds.tables[objectname].rows.count;          double[] xvals = new double[totalcount], yvals = new double[totalcount];          (int = 0; < totalcount; i++)         {             xvals[i] = convert.todouble(ds.tables[objectname].rows[i]["ntotal"]);             yvals[i] = convert.todouble(ds.tables[objectname].rows[i]["isomonth"]);                                         }          list1.add(xvals, yvals);          curve1 = pane.addcurve("temp curve", list1, color.green, symboltype.circle);          (int = 0; < totalcount; i++)         {             textobj t = new textobj("teest", curve1.points[i].y, curve1.points[i].x);             t.fontspec.border.isvisible = false;             pane.graphobjlist.add(t);         }          curve1.line.width = 1.0f;          pane.getimage().save(outputdestination, imageformat.png);          pane.axischange(); 

getimage() function gets current size of pane, have increase size of entire pane(i.e: dock & maximize window & use method image).

 dockstyle currentstyle = zedgraphcontrol1.dock;  var currentwindowstate = this.windowstate;   zedgraphcontrol1.dock = dockstyle.fill;  this.windowstate = formwindowstate.maximized;  zedgraphcontrol1.getimage ().save ( @"c:\image_1.png" );   this.windowstate = currentwindowstate;  zedgraphcontrol1.dock = currentstyle; 

Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -