Class DBPlot

java.lang.Object
com.illumon.iris.db.tables.utils.DBPlot

@Deprecated
public class DBPlot
extends Object
Deprecated.
Plotting utilities for Deephaven.
  • Method Details

    • scatterPlot

      public static org.jfree.chart.JFreeChart scatterPlot​(Table t, String title, String xLabel, String yLabel, String... series)
      Deprecated.
      Creates a scatter plot.
      Parameters:
      t - table.
      title - plot title.
      xLabel - x-axis labe.
      yLabel - y-axis label.
      series - series to plot.
      Returns:
      plot.
    • scatterPlotWithGrouping

      public static org.jfree.chart.JFreeChart scatterPlotWithGrouping​(String categoricalColumn, Table t, String title, String xLabel, String yLabel, String... series)
      Deprecated.
      Creates a scatter plot.
      Parameters:
      categoricalColumn - creates a series for each distinct value in this column
      t - table.
      title - plot title.
      xLabel - x-axis labe.
      yLabel - y-axis label.
      series - series to plot.
      Returns:
      plot.
    • xyPlot

      public static org.jfree.chart.JFreeChart xyPlot​(Table t, String title, String xLabel, String yLabel, String... series)
      Deprecated.
      Creates an xy plot.
      Parameters:
      t - table.
      title - plot title.
      xLabel - x-axis labe.
      yLabel - y-axis label.
      series - series to plot.
      Returns:
      plot.
    • xyPlotWithGrouping

      public static org.jfree.chart.JFreeChart xyPlotWithGrouping​(String categoricalColumn, Table t, String title, String xLabel, String yLabel, String... series)
      Deprecated.
      Creates an xy plot.
      Parameters:
      categoricalColumn - creates a series for each distinct value in this column
      t - table.
      title - plot title.
      xLabel - x-axis labe.
      yLabel - y-axis label.
      series - series to plot.
      Returns:
      plot.
    • linePlot

      public static org.jfree.chart.JFreeChart linePlot​(Table t, String title, String xLabel, String yLabel, String... series)
      Deprecated.
      Creates a line plot.
      Parameters:
      t - table.
      title - plot title.
      xLabel - x-axis labe.
      yLabel - y-axis label.
      series - series to plot.
      Returns:
      plot.
    • linePlotWithGrouping

      public static org.jfree.chart.JFreeChart linePlotWithGrouping​(String categoricalColumn, Table t, String title, String xLabel, String yLabel, String... series)
      Deprecated.
      Creates a line plot.
      Parameters:
      categoricalColumn - creates a series for each distinct value in this column
      t - table.
      title - plot title.
      xLabel - x-axis labe.
      yLabel - y-axis label.
      series - series to plot.
      Returns:
      plot.
    • barChart

      public static org.jfree.chart.JFreeChart barChart​(Table t, String title, String xLabel, String yLabel, String... series)
      Deprecated.
      Creates a bar chart.
      Parameters:
      t - table.
      title - plot title.
      xLabel - x-axis labe.
      yLabel - y-axis label.
      series - series to plot.
      Returns:
      plot.
    • barChartWithGrouping

      public static org.jfree.chart.JFreeChart barChartWithGrouping​(String categoricalColumn, Table t, String title, String xLabel, String yLabel, String... series)
      Deprecated.
      Creates a bar chart.
      Parameters:
      categoricalColumn - creates a series for each distinct value in this column
      t - table.
      title - plot title.
      xLabel - x-axis labe.
      yLabel - y-axis label.
      series - series to plot.
      Returns:
      plot.
    • stackedBarChart

      public static org.jfree.chart.JFreeChart stackedBarChart​(Table t, String title, String xLabel, String yLabel, String... series)
      Deprecated.
      Creates a stacked bar chart.
      Parameters:
      t - table.
      title - plot title.
      xLabel - x-axis labe.
      yLabel - y-axis label.
      series - series to plot.
      Returns:
      plot.
    • stackedBarChartWithGrouping

      public static org.jfree.chart.JFreeChart stackedBarChartWithGrouping​(String categoricalColumn, Table t, String title, String xLabel, String yLabel, String... series)
      Deprecated.
      Creates a stacked bar chart.
      Parameters:
      categoricalColumn - creates a series for each distinct value in this column
      t - table.
      title - plot title.
      xLabel - x-axis labe.
      yLabel - y-axis label.
      series - series to plot.
      Returns:
      plot.
    • timeSeriesPlot

      public static org.jfree.chart.JFreeChart timeSeriesPlot​(Table t, String title, String xLabel, String yLabel, String... series)
      Deprecated.
      Creates a timeseries plot.
      Parameters:
      t - table.
      title - plot title.
      xLabel - x-axis label (time).
      yLabel - y-axis label.
      series - series to plot.
      Returns:
      plot.
    • timeSeriesPlotWithGrouping

      public static org.jfree.chart.JFreeChart timeSeriesPlotWithGrouping​(String categoricalColumn, Table t, String title, String xLabel, String yLabel, String... series)
      Deprecated.
      Creates a timeseries plot.
      Parameters:
      t - table.
      title - plot title.
      xLabel - x-axis label (time).
      yLabel - y-axis label.
      series - series to plot.
      Returns:
      plot.
    • businessTimeSeriesPlot

      public static org.jfree.chart.JFreeChart businessTimeSeriesPlot​(Table t, String title, String xLabel, String yLabel, String... series)
      Deprecated.
      Creates a business timeseries plot.
      Parameters:
      t - table.
      title - plot title.
      xLabel - x-axis label (time).
      yLabel - y-axis label.
      series - series to plot.
      Returns:
      plot.
    • businessTimeSeriesPlotWithGrouping

      public static org.jfree.chart.JFreeChart businessTimeSeriesPlotWithGrouping​(String categoricalColumn, Table t, String title, String xLabel, String yLabel, String... series)
      Deprecated.
      Creates a business timeseries plot.
      Parameters:
      t - table.
      title - plot title.
      xLabel - x-axis label (time).
      yLabel - y-axis label.
      series - series to plot.
      Returns:
      plot.
    • histogramBar

      public static org.jfree.chart.JFreeChart histogramBar​(Table t, String title, String xLabel, String yLabel, String column, int nbins)
      Deprecated.
      Creates a bar histogram.
      Parameters:
      t - table.
      title - plot title.
      xLabel - x-axis label.
      yLabel - y-axis label.
      column - column to plot.
      nbins - number of histogram bins.
      Returns:
      plot.
    • histogramBar

      public static org.jfree.chart.JFreeChart histogramBar​(Table t, String title, String xLabel, String yLabel, String column, int nbins, double xmin, double xmax)
      Deprecated.
      Creates a bar histogram.
      Parameters:
      t - table.
      title - plot title.
      xLabel - x-axis labe.
      yLabel - y-axis label.
      column - column to plot.
      nbins - number of histogram bins.
      xmin - minimum value for the histogram.
      xmax - maximum value for the histogram.
      Returns:
      plot.
    • histogram

      public static org.jfree.chart.JFreeChart histogram​(Table t, String title, String xLabel, String yLabel, String column, int nbins)
      Deprecated.
      Creates a histogram.
      Parameters:
      t - table.
      title - plot title.
      xLabel - x-axis labe.
      yLabel - y-axis label.
      column - column to plot.
      nbins - number of histogram bins.
      Returns:
      plot.
    • histogram

      public static org.jfree.chart.JFreeChart histogram​(Table t, String title, String xLabel, String yLabel, String column, int nbins, double xmin, double xmax)
      Deprecated.
      Creates a histogram.
      Parameters:
      t - table.
      title - plot title.
      xLabel - x-axis labe.
      yLabel - y-axis label.
      column - column to plot.
      nbins - number of histogram bins.
      xmin - minimum value for the histogram.
      xmax - maximum value for the histogram.
      Returns:
      plot.
    • histogram

      public static org.jfree.chart.JFreeChart histogram​(Table t, String title, String xLabel, String yLabel, String[] columns, int nbins)
      Deprecated.
      Creates a histogram.
      Parameters:
      t - table.
      title - plot title.
      xLabel - x-axis labe.
      yLabel - y-axis labels.
      columns - columns to plot.
      nbins - number of histogram bins.
      Returns:
      plot.
    • histogram

      public static org.jfree.chart.JFreeChart histogram​(Table t, String title, String xLabel, String yLabel, String[] columns, int nbins, double xmin, double xmax)
      Deprecated.
      Creates a histogram.
      Parameters:
      t - table.
      title - plot title.
      xLabel - x-axis labe.
      yLabel - y-axis labels.
      columns - columns to plot.
      nbins - number of histogram bins.
      xmin - minimum value for the histogram.
      xmax - maximum value for the histogram.
      Returns:
      plot.
    • createCategoryRenderer

      public static org.jfree.chart.renderer.category.CategoryItemRenderer createCategoryRenderer​(com.illumon.iris.db.tables.utils.CategoricalChartType chartType, org.jfree.chart.labels.StandardCategoryToolTipGenerator toolTipGenerator, org.jfree.data.KeyToGroupMap map)
      Deprecated.
    • view

      public static void view​(org.jfree.chart.JFreeChart chart)
      Deprecated.
      Opens up a chart in a new window.
      Parameters:
      chart - chart
    • setScriptSessionForChartDisplay

      public static void setScriptSessionForChartDisplay​(ScriptSession scriptSessionForChartDisplay)
      Deprecated.
    • view

      public static void view​(org.jfree.chart.JFreeChart chart, boolean addShiftButtons)
      Deprecated.
      Opens up a chart in a new window.
      Parameters:
      chart - chart
      addShiftButtons - true to add buttons for traversing a zoomed-in chart; false to exclude the buttons.
    • doGroovyGridView

      public static void doGroovyGridView​(String title, int rows, int cols, boolean addShiftButtons, org.jfree.chart.JFreeChart... charts)
      Deprecated.
    • doGroovyTabView

      public static void doGroovyTabView​(String title, boolean addShiftButtons, org.jfree.chart.JFreeChart... charts)
      Deprecated.
    • chartToPanel

      public static JPanel chartToPanel​(org.jfree.chart.JFreeChart chart, boolean addShiftButtons)
      Deprecated.
    • chartToPanel

      public static JPanel chartToPanel​(org.jfree.chart.JFreeChart chart, boolean addShiftButtons, DBXYDataHandler handler)
      Deprecated.
    • gridview

      public static Container gridview​(String title, int rows, int cols, org.jfree.chart.JFreeChart... charts)
      Deprecated.
      Opens up a few charts in a grid in a new window.
      Parameters:
      title - window title
      rows - rows in the grid
      cols - columns in the grid
      charts - charts
    • gridview

      public static Container gridview​(String title, int rows, int cols, boolean addShiftButtons, org.jfree.chart.JFreeChart... charts)
      Deprecated.
      Opens up a few charts in a grid in a new window.
      Parameters:
      title - window title
      rows - rows in the grid
      cols - columns in the grid
      addShiftButtons - true to add buttons for traversing a zoomed-in chart; false to exclude the buttons.
      charts - charts
    • tabview

      public static void tabview​(String title, org.jfree.chart.JFreeChart... charts)
      Deprecated.
      Opens up a few charts in tabs in a new window.
      Parameters:
      title - window title
      charts - charts
    • tabview

      public static void tabview​(String title, boolean addShiftButtons, org.jfree.chart.JFreeChart... charts)
      Deprecated.
      Opens up a few charts in tabs in a new window.
      Parameters:
      title - window title
      addShiftButtons - true to add buttons for traversing a zoomed-in chart; false to exclude the buttons.
      charts - charts
    • save

      public static void save​(org.jfree.chart.JFreeChart chart, String file) throws IOException
      Deprecated.
      Saves a chart as a jpeg.
      Parameters:
      chart - chart
      file - output file
      Throws:
      IOException - problem saving the file
    • save

      public static void save​(org.jfree.chart.JFreeChart chart, File file) throws IOException
      Deprecated.
      Saves a chart as a jpeg.
      Parameters:
      chart - chart
      file - output file
      Throws:
      IOException - problem saving the file
    • save

      public static void save​(org.jfree.chart.JFreeChart chart, String file, int width, int height, double quality) throws IOException
      Deprecated.
      Throws:
      IOException
    • save

      public static void save​(org.jfree.chart.JFreeChart chart, File file, int width, int height, double quality) throws IOException
      Deprecated.
      Saves a chart as a jpeg.
      Parameters:
      chart - chart
      file - output file
      width - image width
      height - image height
      quality - jpeg quality (0->1)
      Throws:
      IOException - problem saving the file
    • save

      public static void save​(Container container, String file) throws IOException
      Deprecated.
      Saves a chart as a jpeg.
      Parameters:
      container - chart
      file - output file
      Throws:
      IOException - problem saving the file
    • save

      public static void save​(Container container, File file) throws IOException
      Deprecated.
      Saves a chart as a jpeg.
      Parameters:
      container - chart
      file - output file
      Throws:
      IOException - problem saving the file
    • save

      public static void save​(Container container, String file, double quality) throws IOException
      Deprecated.
      Throws:
      IOException
    • save

      public static void save​(Container container, File file, double quality) throws IOException
      Deprecated.
      Saves a chart as a jpeg.
      Parameters:
      container - chart
      file - output file
      quality - jpeg quality (0->1)
      Throws:
      IOException - problem saving the file
    • setGoodColorsForCategoryPlot

      public static void setGoodColorsForCategoryPlot​(org.jfree.chart.JFreeChart chart)
      Deprecated.
      Sets the colors in the chart so that they are easy to view.
      Parameters:
      chart - chart
    • setGoodColorsForXYPlot

      public static void setGoodColorsForXYPlot​(org.jfree.chart.JFreeChart chart)
      Deprecated.
      Sets the colors in the chart so that they are easy to view.
      Parameters:
      chart - chart
    • main

      public static void main​(String[] args) throws IOException
      Deprecated.
      Throws:
      IOException