Cryplot::Plot
Inherits Cryplot::BasePlot / Reference / Object
Class used to create a plot containing graphical elements
Constructors
Instance methods
Add a text annotation at the specified position. Position can be in data coordinates (default), graph coordinates (0-1), or screen coordinates.
Add a text annotation at graph coordinates (0-1 range).
Add an arrow from (x1, y1) to (x2, y2).
Add an arrow using graph coordinates (0-1 range).
Set the default width of boxes in plots containing boxes (in absolute mode). In absolute mode, a unit width is equivalent to one unit of length along the x axis.
Set the default width of boxes in plots containing boxes (in relative mode). In relative mode, a unit width is equivalent to setting the boxes side by side.
Draw boxes with given values at @p xcol and @p ycol columns in file @p name as well as the box widths @p xwidthcol.
Draw boxes with given values at @p xcol and @p ycol columns in file @p name.
Draw boxes with given @p x and @p y vectors as well as the box widths @p xwidth.
Draw boxes with error bars along y with given values at @p xcol, @p ycol, @p ylowcol, and @p yhighcol columns in file @p name.
Draw boxes with error bars along y with given values at @p xcol, @p ycol, @p ydeltacol columns in file @p name.
Draw boxes with error bars along y with given @p x, @p y, @p ylow, and @p yhigh vectors.
Draw boxes with error bars along y with given @p x, @p y, @p ydelta vectors.
Draw a box plot (box-and-whisker plot) for the given data. Each element in data represents a group/category.
Draw a single box plot for a data vector.
Draw a curve with given @p x and @p y vectors, breaking this curve whenever NaN is found in @p x or @p y.
Draw a curve with points with given @p x and @p y vectors, breaking this curve whenever NaN is found in @p x or @p y.
Draw filled contours from x, y, z data.
Draw a curve with given values at @p xcol and @p ycol columns in file @p name.
Draw a curve with error bars along x with given values at @p xcol, @p ycol, @p xlowcol, and @p xhighcol columns in file @p name.
Draw a curve with error bars along x with given values at @p xcol, @p ycol, and @p xdeltacol columns in file @p name.
Draw a curve with error bars along x with given @p x, @p y, @p xlow, and @p xhigh vectors.
Draw a curve with error bars along x with given @p x, @p y, and @p xdelta vectors.
Draw a curve with error bars along x and y with given values at @p xcol, @p ycol, @p xlowcol, @p xhighcol, @p ylowcol, and @p yhighcol columns in file @p name.
Draw a curve with error bars along x and y with given @p x, @p y, @p xlow, @p xhigh, @p ylow, and @p yhigh vectors.
Draw a curve with error bars along x and y with given values at @p xcol, @p ycol, @p xdeltacol, and @p ydeltacol columns in file @p name.
Draw a curve with error bars along x and y with given @p x, @p y, @p xdelta, and @p ydelta vectors.
Draw a curve with error bars along y with given values at @p xcol, @p ycol, @p ylowcol, and @p yhighcol columns in file @p name.
Draw a curve with error bars along y with given values at @p xcol, @p ycol, and @p ydeltacol columns in file @p name.
Draw a curve with error bars along y with given @p x, @p y, @p xlow, and @p xhigh vectors.
Draw a curve with error bars along y with given @p x, @p y, and @p xdelta vectors.
Draw a curve with points with given values at @p xcol and @p ycol columns in file @p name.
Draw a curve with points with given @p x and @p y vectors.
Draw a curve with points with given x and y vectors on the secondary y-axis (y2).
Draw a curve with given x and y vectors on the secondary y-axis (y2).
Draw curves with given @p x, @p y1 and @p y2 vectors with filled areas above / below / between curves.
Draw curves with given @p x and @p y vectors with filled areas above / below axes.
Draw dots with given values at @p xcol and @p ycol columns in file @p name.
Draw error bars along x with given values at @p xcol, @p ycol, @p xlowcol, and @p xhighcol columns in file @p name.
Draw error bars along x with given values at @p xcol, @p ycol, and @p xdeltacol columns in file @p name.
Draw error bars along x with given @p x, @p y, @p xlow, and @p xhigh vectors.
Draw error bars along x with given @p x, @p y, and @p xdelta vectors.
Draw error bars along x and y with given values at @p xcol, @p ycol, @p xlowcol, @p xhighcol, @p ylowcol, and @p yhighcol columns in file @p name.
Draw error bars along x and y with given @p x, @p y, @p xlow, @p xhigh, @p ylow, and @p yhigh vectors.
Draw error bars along x and y with given values at @p xcol, @p ycol, @p xdeltacol, and @p ydeltacol columns in file @p name.
Draw error bars along x and y with given @p x, @p y, @p xdelta, and @p ydelta vectors.
Draw error bars along y with given values at @p xcol, @p ycol, @p ylowcol, and @p yhighcol columns in file @p name.
Draw error bars along y with given values at @p xcol, @p ycol, and @p ydeltacol columns in file @p name.
Draw error bars along y with given @p x, @p y, @p ylow, and @p yhigh vectors.
Draw error bars along y with given @p x, @p y, and @p ydelta vectors.
Draw grouped bar chart with categories and multiple series. categories: labels for x-axis series: hash of series_name => values
Draw a heatmap with explicit x, y coordinates and z values.
Draw a heatmap from a 2D matrix. The matrix should be an array of arrays where matrix[row][col] = value.
Draw a labeled heatmap from a 2D matrix with row and column labels. Useful for correlation matrices, confusion matrices, etc. matrix: 2D array where matrix[row][col] = value row_labels: labels for y-axis (rows) col_labels: labels for x-axis (columns) value_range: optional tuple {min, max} for color scale (e.g., {-1.0, 1.0} for correlation)
Draw a histogram with given values at @p ycol column in file @p name.
Draw impulses with given values at @p xcol and @p ycol columns in file @p name.
Draw points with given values at @p xcol and @p ycol columns in file @p name.
Draw points with given x and y vectors on the secondary y-axis (y2).
Draw a scatter plot with given x and y vectors. This is an alias for draw_points but with a more intuitive name.
Draw a scatter plot with color mapping based on a third variable. The color values determine the color of each point using the current palette.
Draw a scatter plot with both color and size mapping. Color is mapped to the third column, size to the fourth.
Draw a scatter plot with size mapping based on a third variable. The size values determine the size of each point.
Draw stacked bar chart with categories and multiple series.
Draw steps with given values at @p xcol and @p ycol columns in file @p name. Identical to @ref drawStepsChangeFirstX.
Draw steps with given @p x and @p y vectors. Identical to @ref drawStepsChangeFirstX.
Draw steps with given values at @p xcol and @p ycol columns in file @p name with steps along x changes first.
Draw steps with given @p x and @p y vectors with steps along x changes first.
Draw steps with given values at @p xcol and @p ycol columns in file @p name with steps along y changes first.
Draw steps with given @p x and @p y vectors with steps along y changes first.
Draw steps with given values at @p xcol and @p ycol columns in file @p name with filled area below steps.
Draw steps with given @p x and @p y vectors with filled area below steps.
Draw steps with given values at @p xcol and @p ycol columns in file @p name in a histogram style
Draw plot object with given style and given vectors (e.g., plot.draw("lines", x, y)).
Draw plot object with given style and given vectors (e.g., plot.draw("lines", x, y)).
Draw plot object with given style and given vectors (e.g., plot.draw("lines", x, y)) that may contain NaN values.
Set the color palette for heatmaps. Predefined options: :diverging (red-white-green), :sequential (white-blue), :thermal (black-red-yellow-white)
Set the label of the x-axis and return a reference to the corresponding specs object.
Set the x-range of the plot (also possible with empty values or autoscale options (e.g. "", "*")).
Return the specifications of the grid lines along major xtics on the bottom axis.
Return the specifications of the grid lines along major xtics on the top axis.
Return the specifications of the grid lines along minor xtics on the bottom axis.
Return the specifications of the grid lines along minor xtics on the top axis.
Set the display format for x-axis time labels. The format string uses strftime format specifiers.
Set the x-axis to use time/date format. The format string uses strftime format specifiers (e.g., "%Y-%m-%d", "%H:%M:%S").
Set the label of the secondary y-axis (y2) and return a reference to the corresponding specs object.
Set the y2-range of the plot (also possible with empty values or autoscale options (e.g. "", "*")).
Set the label of the y-axis and return a reference to the corresponding specs object.
Set the y-range of the plot (also possible with empty values or autoscale options (e.g. "", "*")).
Return the specifications of the grid lines along major ytics on the left axis.
Return the specifications of the grid lines along major ytics on the right axis.
Return the specifications of the grid lines along minor ytics on the left axis.
Return the specifications of the grid lines along minor ytics on the right axis.