private void listBox_series_SelectedIndexChanged(object sender, EventArgs e) { int SeriesIndex = listBox_series.SelectedIndex; if (SeriesIndex != -1) { comboBox_type.Text = QuickPlot.FindTypeName(EasyGraph.EasyGraphForm.chart_basic.Series[SeriesIndex].ChartType.ToString()); //label_ColorShow.BackColor = EasyGraph.EasyGraphForm.chart_basic.Series[SeriesIndex].Color; textBox_LineWidth.Text = EasyGraph.EasyGraphForm.chart_basic.Series[SeriesIndex].BorderWidth.ToString(); textBox_MarkerSize.Text = EasyGraph.EasyGraphForm.chart_basic.Series[SeriesIndex].MarkerSize.ToString(); comboBox_MarkerStyle.Text = QuickPlot.FindMarkerStyle(EasyGraph.EasyGraphForm.chart_basic.Series[SeriesIndex].MarkerStyle.ToString()); if (EasyGraph.EasyGraphForm.chart_basic.Titles.Count > 0) { textBox_Main.Text = EasyGraph.EasyGraphForm.chart_basic.Titles[0].Text; //主标题只有一个 } if (EasyGraph.EasyGraphForm.chart_basic.ChartAreas[0].AxisX.Title.Length > 0) { textBox_x.Text = EasyGraph.EasyGraphForm.chart_basic.ChartAreas[0].AxisX.Title.ToString(); } if (EasyGraph.EasyGraphForm.chart_basic.ChartAreas[0].AxisY.Title.Length > 0) { textBox_y.Text = EasyGraph.EasyGraphForm.chart_basic.ChartAreas[0].AxisY.Title.ToString(); } } }
private void button_add_Click(object sender, EventArgs e) { if (comboBox_x.Text.Trim() != "") { QuickPlot.QPlot(dt, chart_basic, Tabulation.FindCol(dt, comboBox_x.Text), Tabulation.FindCol(dt, comboBox_y.Text), comboBox_type.Text, textBox_Legend.Text, checkBox_IsXLabel.Checked); } else { QuickPlot.QPlot(dt, chart_basic, -1, Tabulation.FindCol(dt, comboBox_y.Text), comboBox_type.Text, textBox_Legend.Text, checkBox_IsXLabel.Checked); } }
private void 保存ToolStripMenuItem_Click(object sender, EventArgs e) { QuickPlot.SaveGraph(chart_PosteriorDensity); }