Class XYPlotOutput

java.lang.Object
edu.sc.seis.TauP.XYPlotOutput

public class XYPlotOutput extends Object
Represents an XY plot, with data and axis.
  • Constructor Details

  • Method Details

    • checkEqualMinMax

      public static void checkEqualMinMax(double[] minmax, double xpercent, double ypercent)
    • recalcForAbs

      public static List<XYPlottingData> recalcForAbs(List<XYPlottingData> xy, boolean xAxisAbs, boolean yAxisAbs)
    • recalcForLog

      public static List<XYPlottingData> recalcForLog(List<XYPlottingData> xy, boolean xAxisLog, boolean yAxisLog)
    • setPhaseNames

      public void setPhaseNames(List<PhaseName> phaseNames)
    • setxAxisMinMax

      public void setxAxisMinMax(double[] minMax)
    • setyAxisMinMax

      public void setyAxisMinMax(double[] minMax)
    • printAsJSON

      public void printAsJSON(PrintWriter writer, int indentFactor)
    • printAsGmtScript

      public void printAsGmtScript(PrintWriter writer, String toolname, List<String> cmdLineArgs, GraphicOutputTypeArgs outputTypeArgs, boolean isLegend)
    • printGmtScriptBeginning

      public void printGmtScriptBeginning(PrintWriter writer, String toolname, List<String> cmdLineArgs, GraphicOutputTypeArgs outputTypeArgs)
    • printGmtScriptLegend

      public void printGmtScriptLegend(PrintWriter writer)
    • printAsGmtText

      public void printAsGmtText(PrintWriter writer)
    • calcMinMax

      public double[] calcMinMax()
      Calculates min and max for x and y.
      Returns:
      [xmin, xmax, ymin, ymax]
    • printAsHtml

      public void printAsHtml(PrintWriter writer, String toolname, List<String> cmdLineArgs, CharSequence extraCSS, boolean isLegend) throws TauPException
      Throws:
      TauPException
    • printAsHtml

      public void printAsHtml(PrintWriter writer, String toolname, List<String> cmdLineArgs, float pixelWidth, CharSequence extraCSS, boolean isLegend) throws TauPException
      Throws:
      TauPException
    • printAsSvg

      public void printAsSvg(PrintWriter writer, String toolname, List<String> cmdLineArgs, float pixelWidth, CharSequence extraCSS, boolean isLegend)
    • getTitle

      public String getTitle()
    • setTitle

      public void setTitle(String title)
    • getXLabel

      public String getXLabel()
    • setXLabel

      public void setXLabel(String x)
    • getYLabel

      public String getYLabel()
    • setYLabel

      public void setYLabel(String y)
    • convertToCartesian

      public XYPlotOutput convertToCartesian() throws TauPException
      Throws:
      TauPException
    • isAutoColor

      public boolean isAutoColor()
    • setAutoColor

      public void setAutoColor(boolean autoColor)
    • getColoringArgs

      public ColoringArgs getColoringArgs()
    • setColoringArgs

      public void setColoringArgs(ColoringArgs ca)
    • getNumXTicks

      public int getNumXTicks()
    • setNumXTicks

      public void setNumXTicks(int numXTicks)
    • getNumYTicks

      public int getNumYTicks()
    • setNumYTicks

      public void setNumYTicks(int numYTicks)
    • isxAxisInvert

      public boolean isxAxisInvert()
    • setxAxisInvert

      public void setxAxisInvert(boolean xAxisInvert)
    • isyAxisInvert

      public boolean isyAxisInvert()
    • setyAxisInvert

      public void setyAxisInvert(boolean yAxisInvert)
    • getModelArgs

      public ModelArgs getModelArgs()
    • getPhaseNames

      public List<PhaseName> getPhaseNames()
    • getXYPlots

      public List<XYPlottingData> getXYPlots()