Class CurveDrawer

java.lang.Object
cnuphys.splot.plot.CurveDrawer

public class CurveDrawer extends Object
  • Constructor Details

    • CurveDrawer

      public CurveDrawer()
  • Method Details

    • drawHisto2D

      public static void drawHisto2D(Graphics g, PlotCanvas canvas, DataColumn histoColumn)
    • drawHisto1D

      public static void drawHisto1D(Graphics g, PlotCanvas canvas, DataColumn histoColumn)
      Draw a 1D histogram
      Parameters:
      g - the graphics context
      plotCanvas - the plot canvas
      histoColumn - the column (should contain a HistData object)
    • drawCurve

      public static void drawCurve(Graphics g, PlotCanvas plotCanvas, DataColumn xcol, DataColumn ycol)
      Draw a curve with no error bars
      Parameters:
      g - the graphics context
      plotCanvas - the plot canvas
      xcol - the x data column
      ycol - 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 context
      plotCanvas - the plot canvas
      xcol - the x data column
      ycol - the y data column
      xerrCol - the x error bar column (often null)
      yerrCol - the y error bar column