|
| enum | PlotType { Bar
, Scatter
} |
| |
|
| override void | Dispose (bool disposing) |
| | Clean up any resources being used.
|
| |
|
| PlotType | Type [get, set] |
| |
| static Dictionary< string, Plot > | Plots [get] |
| |
| List< double[]> | Data [get, set] |
| |
| Bitmap | Image [get, set] |
| |
| ScottPlot.Plot | Model [get, set] |
| |
Definition at line 3 of file Plot.Designer.cs.
◆ PlotType
| enum BioImager.Plot.PlotType |
Definition at line 33 of file Plot.cs.
34 {
35 Bar,
36 Scatter
37 }
◆ Plot()
| BioImager.Plot.Plot |
( |
double[] | vals, |
|
|
string | name, |
|
|
PlotType | typ ) |
Definition at line 22 of file Plot.cs.
23 {
24 InitializeComponent();
25 model = new ScottPlot.Plot();
26 data.Add(vals);
27 if (typ == PlotType.Scatter)
28 InitScatter();
29 else
30 if (typ == PlotType.Bar)
31 InitBars();
32 }
◆ Dispose()
| override void BioImager.Plot.Dispose |
( |
bool | disposing | ) |
|
|
protected |
Clean up any resources being used.
- Parameters
-
| disposing | true if managed resources should be disposed; otherwise, false. |
Definition at line 14 of file Plot.Designer.cs.
15 {
16 if (disposing && (components != null))
17 {
18 components.Dispose();
19 }
20 base.Dispose(disposing);
21 }
◆ UpdateImage()
| void BioImager.Plot.UpdateImage |
( |
| ) |
|
The function updates an image by saving it as a PNG file, setting the window title, creating a new Pixbuf object from the file, and redrawing the image.
Definition at line 69 of file Plot.cs.
70 {
71 model.SavePng(file, Width, Height);
72 this.Text = name;
73 bitmap = (Bitmap)Bitmap.FromFile(file);
74 }
◆ Data
| List<double[]> BioImager.Plot.Data |
|
getset |
Definition at line 50 of file Plot.cs.
51 {
52 get { return data; }
54 }
◆ Image
| Bitmap BioImager.Plot.Image |
|
getset |
Definition at line 56 of file Plot.cs.
57 {
58 get { return bitmap; }
59 set { bitmap = value; }
60 }
◆ Model
| ScottPlot.Plot BioImager.Plot.Model |
|
getset |
Definition at line 62 of file Plot.cs.
63 {
64 get { return model; }
66 }
◆ Plots
| Dictionary<string, Plot> BioImager.Plot.Plots |
|
staticget |
Definition at line 45 of file Plot.cs.
46 {
47 get { return plots; }
48 }
◆ Type
| PlotType BioImager.Plot.Type |
|
getset |
Definition at line 40 of file Plot.cs.
41 {
42 get { return type; }
43 set { type = value; }
44 }
The documentation for this class was generated from the following files: