Package cnuphys.splot.plot
Class CurveDrawer
java.lang.Object
cnuphys.splot.plot.CurveDrawer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
drawCurve
(Graphics g, PlotCanvas plotCanvas, DataColumn xcol, DataColumn ycol) Draw a curve with no error barsstatic void
drawCurve
(Graphics g, PlotCanvas plotCanvas, DataColumn xcol, DataColumn ycol, DataColumn xerrCol, DataColumn yerrCol) Draw a curve with x and y error barsstatic void
drawHisto1D
(Graphics g, PlotCanvas canvas, DataColumn histoColumn) Draw a 1D histogramstatic void
drawHisto2D
(Graphics g, PlotCanvas canvas, DataColumn histoColumn)
-
Constructor Details
-
CurveDrawer
public CurveDrawer()
-
-
Method Details
-
drawHisto2D
-
drawHisto1D
Draw a 1D histogram- Parameters:
g
- the graphics contextplotCanvas
- the plot canvashistoColumn
- the column (should contain a HistData object)
-
drawCurve
Draw a curve with no error bars- Parameters:
g
- the graphics contextplotCanvas
- the plot canvasxcol
- the x data columnycol
- the y data column
-
drawCurve
public static void drawCurve(Graphics g, PlotCanvas plotCanvas, DataColumn xcol, DataColumn ycol, DataColumn xerrCol, DataColumn yerrCol) Draw a curve with x and y error bars- Parameters:
g
- the graphics contextplotCanvas
- the plot canvasxcol
- the x data columnycol
- the y data columnxerrCol
- the x error bar column (oftennull
)yerrCol
- the y error bar column
-