From: 山本 惠理 <yam...@jo...> - 2012-04-11 00:38:05
|
Has been developed using the NPlot, is Japanese. For Machine Translation, Please note that hard to read. First of all, failed to display any graph with an error when drawing the graph. (The graph × red mark is displayed at this time.) Error then display remains unchanged, even if you do the drawingagain. How can I How do I redraw properly? using Nplot.Windows.PlotSurface2D; public partial class Form1 : Form { private void Form1_Load(object sender, EventArgs e) { LinePlot line = new LinePlot(); line.OrdinateData = new double[] { 0, 1, 2, 3, 4, 5 }; line.AbscissaData = new double[] { 0, 1, 2, 3, 4, 5 }; plotSurface2D.Add(line); plotSurface2D.XAxis1 = null; // An error is made compulsorily. plotSurface2D.Refresh(); } private void button1_Click(object sender, EventArgs e) { plotSurface2D.Clear(); LinePlot line = new LinePlot(); line.OrdinateData = new double[] { 0, 1, 2, 3, 4, 5 }; line.AbscissaData = new double[] { 0, 1, 2, 3, 4, 5 }; plotSurface2D.Add(line); plotSurface2D.Refresh(); } } |