public final class ImPlot
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static int |
addColormap(java.lang.String name,
ImVec4[] cols)
Add a new colormap.
|
static void |
annotate(double x,
double y,
ImVec2 pixOffset,
ImVec4 color,
java.lang.String... fmt)
Shows an annotation callout at a chosen point.
|
static void |
annotate(double x,
double y,
ImVec2 pixOffset,
java.lang.String... fmt)
Shows an annotation callout at a chosen point.
|
static void |
annotateClamped(double x,
double y,
ImVec2 pixOffset,
ImVec4 color,
java.lang.String... fmt)
Shows an annotation callout at a chosen point, clamped inside the plot area.
|
static void |
annotateClamped(double x,
double y,
ImVec2 pixOffset,
java.lang.String... fmt)
Shows an annotation callout at a chosen point, clamped inside the plot area.
|
static boolean |
beginDragDropSource(int keyMods,
int dragDropFlags)
Turns the current plot's plotting area into a drag and drop source.
|
static boolean |
beginDragDropSourceItem(java.lang.String labelID,
int dragDropFlags)
Turns an item in the current plot's legend into drag and drop source.
|
static boolean |
beginDragDropSourceX(int keyMods,
int dragDropFlags)
Turns the current plot's X-axis into a drag and drop source.
|
static boolean |
beginDragDropSourceY(int yAxis,
int keyMods,
int dragDropFlags)
Turns the current plot's Y-axis into a drag and drop source.
|
static boolean |
beginDragDropTarget()
Turns the current plot's plotting area into a drag and drop target.
|
static boolean |
beginDragDropTargetLegend()
Turns the current plot's legend into a drag and drop target.
|
static boolean |
beginDragDropTargetX()
Turns the current plot's X-axis into a drag and drop target.
|
static boolean |
beginDragDropTargetY(int yAxis)
Turns the current plot's Y-Axis into a drag and drop target.
|
static boolean |
beginLegendPopup(java.lang.String labelID)
Begin a popup for a legend entry.
|
static boolean |
beginLegendPopup(java.lang.String labelID,
int mouseButton)
Begin a popup for a legend entry.
|
static boolean |
beginPlot(java.lang.String titleID)
Starts a 2D plotting context.
|
static boolean |
beginPlot(java.lang.String titleID,
java.lang.String xLabel,
java.lang.String yLabel)
Starts a 2D plotting context.
|
static boolean |
beginPlot(java.lang.String titleID,
java.lang.String xLabel,
java.lang.String yLabel,
ImVec2 size)
Starts a 2D plotting context.
|
static boolean |
beginPlot(java.lang.String titleID,
java.lang.String xLabel,
java.lang.String yLabel,
ImVec2 size,
int flags,
int xFlags,
int yFlags)
Starts a 2D plotting context.
|
static boolean |
beginPlot(java.lang.String titleID,
java.lang.String xLabel,
java.lang.String yLabel,
ImVec2 size,
int flags,
int xFlags,
int yFlags,
int y2Flags,
int y3Flags,
java.lang.String y2Label,
java.lang.String y3Label)
Starts a 2D plotting context.
|
static void |
bustColorCache()
When items in a plot sample their color from a colormap, the color is cached and does not change
unless explicitly overriden.
|
static void |
bustColorCache(java.lang.String plotTableID)
When items in a plot sample their color from a colormap, the color is cached and does not change
unless explicitly overriden.
|
static boolean |
colormapButton(java.lang.String label,
int cmap)
Shows a button with a colormap gradient brackground.
|
static void |
colormapIcon(int colorMap)
Render icons similar to those that appear in legends (nifty for data lists).
|
static void |
colormapScale(java.lang.String label,
double scaleMin,
double scaleMax,
int cmap)
Shows a vertical color scale with linear spaced ticks using the specified color map.
|
static boolean |
colormapSlider(java.lang.String label,
float t,
int cmap)
Shows a horizontal slider with a colormap gradient background.
|
static ImPlotContext |
createContext()
Creates a new ImPlot context.
|
static void |
destroyContext(ImPlotContext ctx)
Destroys an ImPlot context.
|
static boolean |
dragLineX(java.lang.String id,
double xValue,
boolean showLabel,
ImVec4 color,
float thickness)
Shows a draggable vertical guide line at an x-value.
|
static boolean |
dragLineY(java.lang.String id,
double yValue,
boolean showLabel,
ImVec4 color,
float thickness)
Shows a draggable horizontal guide line at a y-value.
|
static boolean |
dragPoint(java.lang.String id,
double x,
double y,
boolean showLabel,
ImVec4 color,
float radius)
Shows a draggable point at x,y.
|
static void |
endDragDropSource()
Ends a drag and drop source.
|
static void |
endDragDropTarget()
Ends a drag and drop target.
|
static void |
endLegendPopup()
End a popup for a legend entry.
|
static void |
endPlot()
Only call EndPlot() if beginPlot() returns true! Typically called at the end
of an if statement conditioned on BeginPlot().
|
static void |
fitNextPlotAxes()
This function MUST be called BEFORE beginPlot!
Fits the next plot axes to all plotted data if they are unlocked (equivalent to double-clicks).
|
static void |
fitNextPlotAxes(boolean x,
boolean y)
This function MUST be called BEFORE beginPlot!
Fits the next plot axes to all plotted data if they are unlocked (equivalent to double-clicks).
|
static void |
fitNextPlotAxes(boolean x,
boolean y,
boolean y2,
boolean y3)
This function MUST be called BEFORE beginPlot!
Fits the next plot axes to all plotted data if they are unlocked (equivalent to double-clicks).
|
static ImVec4 |
getColormapColor(int idx,
int cmap)
Returns a color from a colormap given an index
>= 0 (modulo will be performed). |
static int |
getColormapCount()
Returns the number of available colormaps (i.e.
|
static int |
getColormapIndex(java.lang.String name)
Returns an index number for a colormap given a valid string name.
|
static java.lang.String |
getColormapName(int cmap)
Returns a string name for a colormap given an index.
|
static int |
getColormapSize(int cmap)
Returns the size of a colormap.
|
static ImPlotContext |
getCurrentContext()
Returns the current ImPlot context.
|
static ImVec4 |
getLastItemColor()
Gets the last item primary color (i.e.
|
static java.lang.String |
getMarkerName(int idx)
Returns the null terminated string name for an ImPlotMarker.
|
static ImDrawList |
getPlotDrawList()
Get the plot draw list for custom rendering to the current plot area.
|
static ImPlotLimits |
getPlotLimits(int yAxis)
This function MUST be called BETWEEN begin/endPlot!
The returned ImPlotLimits should be manually deallocated with destroy()!
Returns the current plot axis range.
|
static ImPlotPoint |
getPlotMousePos(int yAxis)
This function MUST be called BETWEEN begin/endPlot!
The returned ImPlotPoint should be manually deallocated with destroy()!
Returns the mouse position in x,y coordinates of the current plot.
|
static ImVec2 |
getPlotPos()
This function MUST be called BETWEEN begin/endPlot!
Get the current Plot position (top-left) in pixels.
|
static void |
getPlotPos(ImVec2 vec) |
static ImPlotLimits |
getPlotQuery(int yAxis)
This function MUST be called BETWEEN begin/endPlot!
The returned ImPlotLimits should be manually deallocated with destroy()!
Returns the current plot query bounds.
|
static ImPlotLimits |
getPlotSelection(int yAxis)
This function MUST be called BETWEEN begin/endPlot!
The returned ImPlotLimits should be manually deallocated with destroy()!
Returns the current plot box selection bounds.
|
static ImVec2 |
getPlotSize()
This function MUST be called BETWEEN begin/endPlot!
Get the current Plot size in pixels.
|
static void |
getPlotSize(ImVec2 vec)
This function MUST be called BETWEEN begin/endPlot!
Get the current Plot size in pixels.
|
static ImPlotStyle |
getStyle()
Provides access to plot style structure for permanant modifications to colors, sizes, etc.
|
static java.lang.String |
getStyleColorName(int idx)
Returns the string name for an ImPlotCol.
|
static void |
hideNextItem()
This function MUST be called BETWEEN begin/endPlot!
Hides the next plot item.
|
static void |
hideNextItem(boolean hidden,
int imguiCond)
This function MUST be called BETWEEN begin/endPlot!
Hides the next plot item.
|
static boolean |
isLegendEntryHovered(java.lang.String labelID)
Returns true if a plot item legend entry is hovered.
|
static boolean |
isPlotHovered()
This function MUST be called BETWEEN begin/endPlot!
Returns true if the plot area in the current plot is hovered.
|
static boolean |
isPlotQueried()
This function MUST be called BETWEEN begin/endPlot!
Returns true if the current plot is being queried or has an active query.
|
static boolean |
isPlotSelected()
This function MUST be called BETWEEN begin/endPlot!
Returns true if the current plot is being box selected.
|
static boolean |
isPlotXAxisHovered()
This function MUST be called BETWEEN begin/endPlot!
Returns true if the XAxis plot area in the current plot is hovered.
|
static boolean |
isPlotYAxisHovered(int yAxis)
This function MUST be called BETWEEN begin/endPlot!
Returns true if the YAxis[n] plot area in the current plot is hovered.
|
static void |
itemIcon(ImVec4 col)
Render icons similar to those that appear in legends (nifty for data lists).
|
static void |
linkNextPlotLimits(ImDouble xmin,
ImDouble xmax,
ImDouble ymin,
ImDouble ymax)
This function MUST be called BEFORE beginPlot!
Links the next plot limits to external values.
|
static void |
linkNextPlotLimits(ImDouble xmin,
ImDouble xmax,
ImDouble ymin,
ImDouble ymax,
ImDouble ymin2,
ImDouble ymax2)
This function MUST be called BEFORE beginPlot!
Links the next plot limits to external values.
|
static void |
linkNextPlotLimits(ImDouble xmin,
ImDouble xmax,
ImDouble ymin,
ImDouble ymax,
ImDouble ymin2,
ImDouble ymax2,
ImDouble ymin3,
ImDouble ymax3)
This function MUST be called BEFORE beginPlot!
Links the next plot limits to external values.
|
static ImVec4 |
nextColormapColor()
Returns the next color from the current colormap and advances the colormap for the current plot.
|
static ImPlotPoint |
pixelsToPlot(float x,
float y,
int yAxis)
This function MUST be called BETWEEN begin/endPlot!
The returned ImPlotPoint should be manually deallocated with destroy()!
Convert pixels to a position in the current plot's coordinate system.
|
static ImPlotPoint |
pixelsToPlot(ImVec2 pix,
int yAxis)
This function MUST be called BETWEEN begin/endPlot!
Convert pixels to a position in the current plot's coordinate system.
|
static void |
plotBars(java.lang.String labelID,
double[] xs,
double[] ys,
int size,
float width,
int offset)
Plots a vertical bar graph.
|
static <T extends java.lang.Number> |
plotBars(java.lang.String labelID,
T[] xs,
T[] ys)
Plots a vertical bar graph.
|
static <T extends java.lang.Number> |
plotBars(java.lang.String labelID,
T[] xs,
T[] ys,
float width)
Plots a vertical bar graph.
|
static <T extends java.lang.Number> |
plotBars(java.lang.String labelID,
T[] xs,
T[] ys,
float width,
int offset)
Plots a vertical bar graph.
|
static void |
plotBarsH(java.lang.String labelID,
double[] xs,
double[] ys,
int size,
float height,
int offset)
Plots a horizontal bar graph.
|
static <T extends java.lang.Number> |
plotBarsH(java.lang.String labelID,
T[] xs,
T[] ys)
Plots a horizontal bar graph.
|
static <T extends java.lang.Number> |
plotBarsH(java.lang.String labelID,
T[] xs,
T[] ys,
float height)
Plots a horizontal bar graph.
|
static <T extends java.lang.Number> |
plotBarsH(java.lang.String labelID,
T[] xs,
T[] ys,
float height,
int offset)
Plots a horizontal bar graph.
|
static void |
plotDigital(java.lang.String labelID,
double[] xs,
double[] ys,
int size)
Plots digital data.
|
static <T extends java.lang.Number> |
plotDigital(java.lang.String labelID,
T[] xs,
T[] ys)
Plots digital data.
|
static void |
plotDummy(java.lang.String labelID)
Plots a dummy item (i.e.
|
static void |
plotErrorBars(java.lang.String labelID,
double[] xs,
double[] ys,
double[] err,
int size,
int offset)
Plots vertical error bar.
|
static <T extends java.lang.Number> |
plotErrorBars(java.lang.String labelID,
T[] xs,
T[] ys,
T[] err)
Plots vertical error bar.
|
static <T extends java.lang.Number> |
plotErrorBars(java.lang.String labelID,
T[] xs,
T[] ys,
T[] err,
int offset)
Plots vertical error bar.
|
static void |
plotErrorBarsH(java.lang.String labelID,
double[] xs,
double[] ys,
double[] err,
int size,
int offset)
Plots horizontal error bar.
|
static <T extends java.lang.Number> |
plotErrorBarsH(java.lang.String labelID,
T[] xs,
T[] ys,
T[] err)
Plots horizontal error bar.
|
static <T extends java.lang.Number> |
plotErrorBarsH(java.lang.String labelID,
T[] xs,
T[] ys,
T[] err,
int offset)
Plots horizontal error bar.
|
static void |
plotHeatmap(java.lang.String labelID,
double[] values,
int rows,
int cols)
Plots a 2D heatmap chart.
|
static <T extends java.lang.Number> |
plotHeatmap(java.lang.String labelID,
T[][] values,
int offset)
Plots a 2D heatmap chart.
|
static double |
plotHistogram(java.lang.String labelID,
double[] values,
int size)
Plots a horizontal histogram.
|
static <T extends java.lang.Number> |
plotHistogram(java.lang.String labelID,
T[] values)
Plots a horizontal histogram
Due to conversion from T to double, extremely large 64-bit integer (long) values may lose data!
|
static double |
plotHistogram2D(java.lang.String labelID,
double[] xs,
double[] ys,
int size)
Plots two dimensional, bivariate histogram as a heatmap.
|
static <T extends java.lang.Number> |
plotHistogram2D(java.lang.String labelID,
T[] xs,
T[] ys)
Plots two dimensional, bivariate histogram as a heatmap
Due to conversion from T to double, extremely large 64-bit integer (long) values may lose data!
|
static void |
plotHLines(java.lang.String labelID,
double[] values,
int size,
int offset)
Plots infinite horizontal lines (e.g.
|
static <T extends java.lang.Number> |
plotHLines(java.lang.String labelID,
T[] values)
Plots infinite horizontal lines (e.g.
|
static <T extends java.lang.Number> |
plotHLines(java.lang.String labelID,
T[] values,
int offset)
Plots infinite horizontal lines (e.g.
|
static void |
plotLine(java.lang.String labelID,
double[] xs,
double[] ys,
int size,
int offset)
Plots a standard 2D line plot.
|
static <T extends java.lang.Number> |
plotLine(java.lang.String labelID,
T[] xs,
T[] ys)
Plots a standard 2D line plot.
|
static <T extends java.lang.Number> |
plotLine(java.lang.String labelID,
T[] xs,
T[] ys,
int offset)
Plots a standard 2D line plot.
|
static <T extends java.lang.Number> |
plotPieChart(java.lang.String[] labelIDs,
T[] values,
double x,
double y,
double radius)
Plots a pie chart.
|
static void |
plotPieChart(java.lang.String labelIDsSs,
int strLen,
double[] values,
int size,
double x,
double y,
double radius)
Plots a pie chart.
|
static void |
plotScatter(java.lang.String labelID,
double[] xs,
double[] ys,
int size,
int offset) |
static <T extends java.lang.Number> |
plotScatter(java.lang.String labelID,
T[] xs,
T[] ys)
Plots a standard 2D scatter plot.
|
static <T extends java.lang.Number> |
plotScatter(java.lang.String labelID,
T[] xs,
T[] ys,
int offset)
Plots a standard 2D scatter plot.
|
static void |
plotShaded(java.lang.String labelID,
double[] xs,
double[] ys1,
double[] ys2,
int size,
int offset)
Plots a shaded (filled) region between two lines, or a line and a horizontal reference.
|
static void |
plotShaded(java.lang.String labelID,
double[] xs,
double[] ys,
int size,
int yRef,
int offset)
Plots a shaded (filled) region between two lines, or a line and a horizontal reference.
|
static <T extends java.lang.Number> |
plotShaded(java.lang.String labelID,
T[] xs,
T[] ys,
int yRef)
Plots a shaded (filled) region between two lines, or a line and a horizontal reference.
|
static <T extends java.lang.Number> |
plotShaded(java.lang.String labelID,
T[] xs,
T[] ys,
int yRef,
int offset)
Plots a shaded (filled) region between two lines, or a line and a horizontal reference.
|
static <T extends java.lang.Number> |
plotShaded(java.lang.String labelID,
T[] xs,
T[] ys1,
T[] ys2)
Plots a shaded (filled) region between two lines, or a line and a horizontal reference.
|
static <T extends java.lang.Number> |
plotShaded(java.lang.String labelID,
T[] xs,
T[] ys1,
T[] ys2,
int offset)
Plots a shaded (filled) region between two lines, or a line and a horizontal reference.
|
static void |
plotStairs(java.lang.String labelID,
double[] xs,
double[] ys,
int size,
int offset)
Plots a a stairstep graph.
|
static <T extends java.lang.Number> |
plotStairs(java.lang.String labelID,
T[] xs,
T[] ys)
Plots a a stairstep graph.
|
static <T extends java.lang.Number> |
plotStairs(java.lang.String labelID,
T[] xs,
T[] ys,
int offset)
Plots a a stairstep graph.
|
static void |
plotStems(java.lang.String labelID,
double[] values,
int size,
int yRef,
int offset)
Plots vertical stems.
|
static <T extends java.lang.Number> |
plotStems(java.lang.String labelID,
T[] values,
int yRef)
Plots vertical stems.
|
static <T extends java.lang.Number> |
plotStems(java.lang.String labelID,
T[] values,
int yRef,
int offset)
Plots vertical stems.
|
static void |
plotText(java.lang.String text,
double x,
double y)
Plots a centered text label at point x,y
|
static void |
plotText(java.lang.String text,
double x,
double y,
boolean vertical)
Plots a centered text label at point x,y
|
static ImVec2 |
plotToPixels(double x,
double y,
int yAxis)
This function MUST be called BETWEEN begin/endPlot!
Convert a position in the current plot's coordinate system to pixels.
|
static ImVec2 |
plotToPixels(ImPlotPoint plt,
int yAxis)
This function MUST be called BETWEEN begin/endPlot!
Convert a position in the current plot's coordinate system to pixels.
|
static void |
plotVLines(java.lang.String labelID,
double[] values,
int size,
int offset)
Plots infinite vertical lines (e.g.
|
static <T extends java.lang.Number> |
plotVLines(java.lang.String labelID,
T[] values)
Plots infinite vertical lines (e.g.
|
static <T extends java.lang.Number> |
plotVLines(java.lang.String labelID,
T[] values,
int offset)
Plots infinite vertical lines (e.g.
|
static void |
popColormap()
Undo temporary colormap modification(s).
|
static void |
popColormap(int count)
Undo temporary colormap modification(s).
|
static void |
popPlotClipRect()
Pop plot clip rect.
|
static void |
popStyleColor() |
static void |
popStyleColor(int count) |
static void |
popStyleVar()
Undo temporary style variable modification(s).
|
static void |
popStyleVar(int count)
Undo temporary style variable modification(s).
|
static void |
pushColormap(int cmap)
Temporarily switch to one of the built-in (i.e.
|
static void |
pushColormap(java.lang.String name)
Push a colormap by string name.
|
static void |
pushPlotClipRect(float expand)
Push clip rect for rendering to current plot area.
|
static void |
pushStyleColor(int idx,
ImVec4 col)
Temporarily modify a style color.
|
static void |
pushStyleColor(int idx,
long col)
Temporarily modify a style color.
|
static void |
pushStyleVar(int idx,
float val)
Temporarily modify a style variable of float type.
|
static void |
pushStyleVar(int idx,
ImVec2 val)
Temporarily modify a style variable of ImVec2 type.
|
static void |
pushStyleVar(int idx,
int val)
Temporarily modify a style variable of int type.
|
static ImVec4 |
sampleColormap(float t,
int cmap)
Sample a color from a colormap given t between 0 and 1
|
static void |
setCurrentContext(ImPlotContext ctx)
Sets the current ImPlot context.
|
static void |
setLegendLocation(int location,
int orientation,
boolean outside)
Set the location of the current plot's legend
|
static void |
setMousePosLocation(int location)
Set the location of the current plot's mouse position text
|
static void |
setNextPlotFormatX(java.lang.String fmt)
This function MUST be called BEFORE beginPlot!
Set the format for numeric X axis labels (default="%g").
|
static void |
setNextPlotFormatY(java.lang.String fmt)
This function MUST be called BEFORE beginPlot!
Set the format for numeric Y axis labels (default="%g").
|
static void |
setNextPlotFormatY(java.lang.String fmt,
int yAxis)
This function MUST be called BEFORE beginPlot!
Set the format for numeric Y axis labels (default="%g").
|
static void |
setNextPlotLimits(double xmin,
double xmax,
double ymin,
double ymax,
int imguicond)
This function MUST be called BEFORE beginPlot!
Set the axes range limits of the next plot.
|
static void |
setNextPlotLimitsX(double xmin,
double xmax,
int imguicond)
This function MUST be called BEFORE beginPlot!
Set the X axis range limits of the next plot.
|
static void |
setNextPlotLimitsY(double ymin,
double ymax,
int imguicond)
This function MUST be called BEFORE beginPlot!
Set the Y axis range limits of the next plot.
|
static void |
setNextPlotTicksX(double xMin,
double xMax,
int nTicks)
This function MUST be called BEFORE beginPlot!
Set the X axis ticks and optionally the labels for the next plot.
|
static void |
setNextPlotTicksX(double xMin,
double xMax,
int nTicks,
java.lang.String[] labels,
boolean keepDefault)
This function MUST be called BEFORE beginPlot!
Set the X axis ticks and optionally the labels for the next plot.
|
static void |
setNextPlotTicksX(double xMin,
double xMax,
int nTicks,
java.lang.String s1,
java.lang.String s2,
java.lang.String s3,
java.lang.String s4,
boolean keepDefault)
This function MUST be called BEFORE beginPlot!
Set the X axis ticks and optionally the labels for the next plot.
|
static void |
setNextPlotTicksY(double xMin,
double xMax,
int nTicks)
This function MUST be called BEFORE beginPlot!
Set the Y axis ticks and optionally the labels for the next plot.
|
static void |
setNextPlotTicksY(double xMin,
double xMax,
int nTicks,
java.lang.String[] labels,
boolean keepDefault)
This function MUST be called BEFORE beginPlot!
Set the Y axis ticks and optionally the labels for the next plot.
|
static void |
setNextPlotTicksY(double xMin,
double xMax,
int nTicks,
java.lang.String[] labels,
boolean keepDefault,
int yAxis)
This function MUST be called BEFORE beginPlot!
Set the Y axis ticks and optionally the labels for the next plot.
|
static void |
setNextPlotTicksY(double xMin,
double xMax,
int nTicks,
java.lang.String s1,
java.lang.String s2,
java.lang.String s3,
java.lang.String s4,
boolean keepDefault,
int yAxis)
This function MUST be called BEFORE beginPlot!
Set the Y axis ticks and optionally the labels for the next plot.
|
static void |
setPlotQuery(ImPlotLimits query,
int yAxis)
This function MUST be called BETWEEN begin/endPlot!
Set the current plot query bounds.
|
static void |
setPlotYAxis(int yAxis)
This function MUST be called BETWEEN begin/endPlot!
Select which Y axis will be used for subsequent plot elements.
|
static boolean |
showColormapSelector(java.lang.String label)
Shows ImPlot colormap selector dropdown menu.
|
static void |
showDemoWindow(ImBoolean pOpen)
Shows the ImPlot demo window.
|
static void |
showMetricsWindow()
Shows ImPlot metrics/debug information window.
|
static void |
showStyleEditor()
Shows ImPlot style editor block (not a window).
|
static boolean |
showStyleSelector(java.lang.String label)
Shows ImPlot style selector dropdown menu.
|
static void |
showUserGuide()
Add basic help/info block for end users (not a window).
|
static void |
styleColorsAuto()
Style plot colors for current ImGui style (default).
|
static void |
styleColorsClassic()
Style plot colors for ImGui "Classic".
|
static void |
styleColorsDark()
Style plot colors for ImGui "Dark".
|
static void |
styleColorsLight()
Style plot colors for ImGui "Light".
|
public static ImPlotContext createContext()
public static void destroyContext(ImPlotContext ctx)
public static ImPlotContext getCurrentContext()
public static void setCurrentContext(ImPlotContext ctx)
public static boolean beginPlot(java.lang.String titleID)
public static boolean beginPlot(java.lang.String titleID, java.lang.String xLabel, java.lang.String yLabel)
public static boolean beginPlot(java.lang.String titleID, java.lang.String xLabel, java.lang.String yLabel, ImVec2 size)
public static boolean beginPlot(java.lang.String titleID, java.lang.String xLabel, java.lang.String yLabel, ImVec2 size, int flags, int xFlags, int yFlags)
public static boolean beginPlot(java.lang.String titleID, java.lang.String xLabel, java.lang.String yLabel, ImVec2 size, int flags, int xFlags, int yFlags, int y2Flags, int y3Flags, java.lang.String y2Label, java.lang.String y3Label)
public static void endPlot()
public static <T extends java.lang.Number> void plotLine(java.lang.String labelID, T[] xs, T[] ys)
public static <T extends java.lang.Number> void plotLine(java.lang.String labelID, T[] xs, T[] ys, int offset)
public static void plotLine(java.lang.String labelID, double[] xs, double[] ys, int size, int offset)
public static <T extends java.lang.Number> void plotScatter(java.lang.String labelID, T[] xs, T[] ys)
public static <T extends java.lang.Number> void plotScatter(java.lang.String labelID, T[] xs, T[] ys, int offset)
public static void plotScatter(java.lang.String labelID, double[] xs, double[] ys, int size, int offset)
public static <T extends java.lang.Number> void plotStairs(java.lang.String labelID, T[] xs, T[] ys)
public static <T extends java.lang.Number> void plotStairs(java.lang.String labelID, T[] xs, T[] ys, int offset)
public static void plotStairs(java.lang.String labelID, double[] xs, double[] ys, int size, int offset)
public static <T extends java.lang.Number> void plotShaded(java.lang.String labelID, T[] xs, T[] ys, int yRef)
public static <T extends java.lang.Number> void plotShaded(java.lang.String labelID, T[] xs, T[] ys1, T[] ys2)
public static <T extends java.lang.Number> void plotShaded(java.lang.String labelID, T[] xs, T[] ys, int yRef, int offset)
public static <T extends java.lang.Number> void plotShaded(java.lang.String labelID, T[] xs, T[] ys1, T[] ys2, int offset)
public static void plotShaded(java.lang.String labelID, double[] xs, double[] ys, int size, int yRef, int offset)
public static void plotShaded(java.lang.String labelID, double[] xs, double[] ys1, double[] ys2, int size, int offset)
public static <T extends java.lang.Number> void plotBars(java.lang.String labelID, T[] xs, T[] ys)
public static <T extends java.lang.Number> void plotBars(java.lang.String labelID, T[] xs, T[] ys, float width)
width
- is in X unitspublic static <T extends java.lang.Number> void plotBars(java.lang.String labelID, T[] xs, T[] ys, float width, int offset)
width
- is in X unitspublic static void plotBars(java.lang.String labelID, double[] xs, double[] ys, int size, float width, int offset)
width
- is in X unitspublic static <T extends java.lang.Number> void plotBarsH(java.lang.String labelID, T[] xs, T[] ys)
public static <T extends java.lang.Number> void plotBarsH(java.lang.String labelID, T[] xs, T[] ys, float height)
height
- is in Y unitspublic static <T extends java.lang.Number> void plotBarsH(java.lang.String labelID, T[] xs, T[] ys, float height, int offset)
height
- is in Y unitspublic static void plotBarsH(java.lang.String labelID, double[] xs, double[] ys, int size, float height, int offset)
height
- is in Y unitspublic static <T extends java.lang.Number> void plotErrorBars(java.lang.String labelID, T[] xs, T[] ys, T[] err)
public static <T extends java.lang.Number> void plotErrorBars(java.lang.String labelID, T[] xs, T[] ys, T[] err, int offset)
public static void plotErrorBars(java.lang.String labelID, double[] xs, double[] ys, double[] err, int size, int offset)
public static <T extends java.lang.Number> void plotErrorBarsH(java.lang.String labelID, T[] xs, T[] ys, T[] err)
public static <T extends java.lang.Number> void plotErrorBarsH(java.lang.String labelID, T[] xs, T[] ys, T[] err, int offset)
public static void plotErrorBarsH(java.lang.String labelID, double[] xs, double[] ys, double[] err, int size, int offset)
public static <T extends java.lang.Number> void plotStems(java.lang.String labelID, T[] values, int yRef)
public static <T extends java.lang.Number> void plotStems(java.lang.String labelID, T[] values, int yRef, int offset)
public static void plotStems(java.lang.String labelID, double[] values, int size, int yRef, int offset)
public static <T extends java.lang.Number> void plotVLines(java.lang.String labelID, T[] values)
public static <T extends java.lang.Number> void plotVLines(java.lang.String labelID, T[] values, int offset)
public static void plotVLines(java.lang.String labelID, double[] values, int size, int offset)
public static <T extends java.lang.Number> void plotHLines(java.lang.String labelID, T[] values)
public static <T extends java.lang.Number> void plotHLines(java.lang.String labelID, T[] values, int offset)
public static void plotHLines(java.lang.String labelID, double[] values, int size, int offset)
public static <T extends java.lang.Number> void plotPieChart(java.lang.String[] labelIDs, T[] values, double x, double y, double radius)
>
1, each value will be normalized. Center and radius are in plot units. #label_fmt can be set to NULL for no labels.
Due to conversion from T to double, extremely large 64-bit integer (long) values may lose data!public static void plotPieChart(java.lang.String labelIDsSs, int strLen, double[] values, int size, double x, double y, double radius)
>
1, each value will be normalized. Center and radius are in plot units. #label_fmt can be set to NULL for no labels.public static <T extends java.lang.Number> void plotHeatmap(java.lang.String labelID, T[][] values, int offset)
values
- must have fixed dimensions (all arrays are same length)public static void plotHeatmap(java.lang.String labelID, double[] values, int rows, int cols)
values
- must have fixed dimensions (all arrays are same length)public static <T extends java.lang.Number> double plotHistogram(java.lang.String labelID, T[] values)
public static double plotHistogram(java.lang.String labelID, double[] values, int size)
public static <T extends java.lang.Number> double plotHistogram2D(java.lang.String labelID, T[] xs, T[] ys)
public static double plotHistogram2D(java.lang.String labelID, double[] xs, double[] ys, int size)
public static <T extends java.lang.Number> void plotDigital(java.lang.String labelID, T[] xs, T[] ys)
public static void plotDigital(java.lang.String labelID, double[] xs, double[] ys, int size)
public static void plotText(java.lang.String text, double x, double y)
public static void plotText(java.lang.String text, double x, double y, boolean vertical)
public static void plotDummy(java.lang.String labelID)
public static void setNextPlotLimits(double xmin, double xmax, double ymin, double ymax, int imguicond)
public static void setNextPlotLimitsX(double xmin, double xmax, int imguicond)
public static void setNextPlotLimitsY(double ymin, double ymax, int imguicond)
public static void linkNextPlotLimits(ImDouble xmin, ImDouble xmax, ImDouble ymin, ImDouble ymax)
public static void linkNextPlotLimits(ImDouble xmin, ImDouble xmax, ImDouble ymin, ImDouble ymax, ImDouble ymin2, ImDouble ymax2)
public static void linkNextPlotLimits(ImDouble xmin, ImDouble xmax, ImDouble ymin, ImDouble ymax, ImDouble ymin2, ImDouble ymax2, ImDouble ymin3, ImDouble ymax3)
public static void fitNextPlotAxes()
public static void fitNextPlotAxes(boolean x, boolean y)
public static void fitNextPlotAxes(boolean x, boolean y, boolean y2, boolean y3)
public static void setNextPlotTicksX(double xMin, double xMax, int nTicks)
public static void setNextPlotTicksX(double xMin, double xMax, int nTicks, java.lang.String[] labels, boolean keepDefault)
public static void setNextPlotTicksX(double xMin, double xMax, int nTicks, java.lang.String s1, java.lang.String s2, java.lang.String s3, java.lang.String s4, boolean keepDefault)
public static void setNextPlotTicksY(double xMin, double xMax, int nTicks)
public static void setNextPlotTicksY(double xMin, double xMax, int nTicks, java.lang.String[] labels, boolean keepDefault)
public static void setNextPlotTicksY(double xMin, double xMax, int nTicks, java.lang.String[] labels, boolean keepDefault, int yAxis)
public static void setNextPlotTicksY(double xMin, double xMax, int nTicks, java.lang.String s1, java.lang.String s2, java.lang.String s3, java.lang.String s4, boolean keepDefault, int yAxis)
public static void setNextPlotFormatX(java.lang.String fmt)
public static void setNextPlotFormatY(java.lang.String fmt)
public static void setNextPlotFormatY(java.lang.String fmt, int yAxis)
public static void setPlotYAxis(int yAxis)
public static void hideNextItem()
public static void hideNextItem(boolean hidden, int imguiCond)
public static ImPlotPoint pixelsToPlot(ImVec2 pix, int yAxis)
public static ImPlotPoint pixelsToPlot(float x, float y, int yAxis)
public static ImVec2 plotToPixels(ImPlotPoint plt, int yAxis)
public static ImVec2 plotToPixels(double x, double y, int yAxis)
public static ImVec2 getPlotPos()
public static void getPlotPos(ImVec2 vec)
public static ImVec2 getPlotSize()
public static void getPlotSize(ImVec2 vec)
public static boolean isPlotHovered()
public static boolean isPlotXAxisHovered()
public static boolean isPlotYAxisHovered(int yAxis)
public static ImPlotPoint getPlotMousePos(int yAxis)
public static ImPlotLimits getPlotLimits(int yAxis)
public static boolean isPlotSelected()
public static ImPlotLimits getPlotSelection(int yAxis)
public static boolean isPlotQueried()
public static ImPlotLimits getPlotQuery(int yAxis)
public static void setPlotQuery(ImPlotLimits query, int yAxis)
public static void annotate(double x, double y, ImVec2 pixOffset, java.lang.String... fmt)
public static void annotate(double x, double y, ImVec2 pixOffset, ImVec4 color, java.lang.String... fmt)
public static void annotateClamped(double x, double y, ImVec2 pixOffset, java.lang.String... fmt)
public static void annotateClamped(double x, double y, ImVec2 pixOffset, ImVec4 color, java.lang.String... fmt)
public static boolean dragLineX(java.lang.String id, double xValue, boolean showLabel, ImVec4 color, float thickness)
public static boolean dragLineY(java.lang.String id, double yValue, boolean showLabel, ImVec4 color, float thickness)
public static boolean dragPoint(java.lang.String id, double x, double y, boolean showLabel, ImVec4 color, float radius)
public static void setLegendLocation(int location, int orientation, boolean outside)
public static void setMousePosLocation(int location)
public static boolean isLegendEntryHovered(java.lang.String labelID)
public static boolean beginLegendPopup(java.lang.String labelID)
public static boolean beginLegendPopup(java.lang.String labelID, int mouseButton)
public static void endLegendPopup()
public static boolean beginDragDropTarget()
public static boolean beginDragDropTargetX()
public static boolean beginDragDropTargetY(int yAxis)
public static boolean beginDragDropTargetLegend()
public static void endDragDropTarget()
public static boolean beginDragDropSource(int keyMods, int dragDropFlags)
public static boolean beginDragDropSourceX(int keyMods, int dragDropFlags)
public static boolean beginDragDropSourceY(int yAxis, int keyMods, int dragDropFlags)
public static boolean beginDragDropSourceItem(java.lang.String labelID, int dragDropFlags)
public static void endDragDropSource()
public static ImPlotStyle getStyle()
public static void styleColorsAuto()
public static void styleColorsClassic()
public static void styleColorsDark()
public static void styleColorsLight()
public static void pushStyleColor(int idx, long col)
public static void pushStyleColor(int idx, ImVec4 col)
public static void popStyleColor()
public static void popStyleColor(int count)
public static void pushStyleVar(int idx, float val)
public static void pushStyleVar(int idx, int val)
public static void pushStyleVar(int idx, ImVec2 val)
public static void popStyleVar()
public static void popStyleVar(int count)
public static ImVec4 getLastItemColor()
public static java.lang.String getStyleColorName(int idx)
public static java.lang.String getMarkerName(int idx)
public static int addColormap(java.lang.String name, ImVec4[] cols)
public static int getColormapCount()
public static java.lang.String getColormapName(int cmap)
public static int getColormapIndex(java.lang.String name)
public static void pushColormap(int cmap)
public static void pushColormap(java.lang.String name)
public static void popColormap()
public static void popColormap(int count)
public static ImVec4 nextColormapColor()
public static int getColormapSize(int cmap)
public static ImVec4 getColormapColor(int idx, int cmap)
>=
0 (modulo will be performed).public static ImVec4 sampleColormap(float t, int cmap)
public static void colormapScale(java.lang.String label, double scaleMin, double scaleMax, int cmap)
public static boolean colormapSlider(java.lang.String label, float t, int cmap)
public static boolean colormapButton(java.lang.String label, int cmap)
public static void bustColorCache()
public static void bustColorCache(java.lang.String plotTableID)
public static void itemIcon(ImVec4 col)
public static void colormapIcon(int colorMap)
public static ImDrawList getPlotDrawList()
public static void pushPlotClipRect(float expand)
public static void popPlotClipRect()
public static boolean showStyleSelector(java.lang.String label)
public static boolean showColormapSelector(java.lang.String label)
public static void showStyleEditor()
public static void showUserGuide()
public static void showMetricsWindow()
public static void showDemoWindow(ImBoolean pOpen)