Struct rstk::chart::xy_plots::TkXYPlot [−][src]
pub struct TkXYPlot { pub id: String, }
Expand description
Refers to an xy_plot
Fields
id: String
Implementations
Draws a box-and-whiskers image on plot, in x direction.
Draws a box-and-whiskers image on plot, in y direction.
Draws filled contours for the given values on the grid.
x_coords
is a slice of lists of x-coordinatesy_coords
is a slice of lists of y-coordinatesvalues
is a slice of lists of values at each (x, y) positionclasses
is a slice of class levels (leave empty for default).
Draws contour lines for the given values on the grid.
x_coords
is a slice of lists of x-coordinatesy_coords
is a slice of lists of y-coordinatesvalues
is a slice of lists of values at each (x, y) positionclasses
is a slice of class levels (leave empty for default).
Draws contour lines for the given values on the grid.
x_coords
is a slice of lists of x-coordinatesy_coords
is a slice of lists of y-coordinatesvalues
is a slice of lists of values at each (x, y) positionclasses
is a slice of class levels (leave empty for default).
Draws a dot - value determines symbol/colour.
Draws grid cells as lines connecting the given coordinates.
x_coords
is a slice of lists of x-coordinatesy_coords
is a slice of lists of y-coordinates
Adds a vertical error interval to chart.
series
- name of data seriesx_coord
- x-coordinatey_min
- minimum y-valuey_max
- maximum y-value
Adds a vertical error interval to chart with central symbol.
series
- name of data seriesx_coord
- x-coordinatey_min
- minimum y-valuey_max
- maximum y-valuey_centre
- position of symbol
Draws a dot with a text label.
See TkChartDots for configuration options.
Draws a horizontal band on chart.
series
- name of data seriesx_coord
- x-coordinatey_min
- minimum y-valuey_max
- maximum y-value
Draws a closed polygon, using given points.
Draws a vector on chart.
series
- name of data series(x, y)
- coordinate for arrow(u, v)
- depending on configuration, can be source point or angle, etc.
Use vector_CONFIG methods to alter display of vector.
Adds contour classes to the legend as coloured lines.
values
is a slice of lists of values at each (x, y) positionclasses
is a slice of class levels (leave empty for default).
Adds contour classes to the legend as coloured rectangles.
values
is a slice of lists of values at each (x, y) positionclasses
is a slice of class levels (leave empty for default).
Plots a list of points.
every
- set to true if a symbol should be drawn for every point
Plots a single point, like plot, but includes a +/- s.d. line on chart.
Sets whether coordinates specify start or centre of vector arrow.
Sets colour of vector arrow.
Sets scale factor for converting vector length into pixels.
Sets scale factor for converting vector length into pixels.
Trait Implementations
Sets colour of dots in given data series.
Defines class limits and colours, e.g. [(0.0, “green”), (2.0, “red”), …]
Sets a 3D effect for dots in given data series.
Sets whether an outline should be displayed for dots in given data series. Read more
Sets radius for dots in given data series.
Sets scale factor of radius to pixels for dots in given data series.
Sets whether dots in given data series should all have the same size (false) or be scaled by value (true). Read more
Sets colour for displaying data series
Sets drawing mode for displaying data series (called “type” in tklib’s plotchart documentation). Read more
Used to select whether to fill the area above or below the line of data series. Read more
Sets colour to use when drawing filled area.
Sets width of line for displaying data series
Sets symbol type and radius for displaying data series
Sets the background colour for the axes.
fn background_gradient_colour(
&self,
colour: &str,
direction: GradientDirection,
brightness: Brightness
)
fn background_gradient_colour(
&self,
colour: &str,
direction: GradientDirection,
brightness: Brightness
)
Sets a background gradient.
Sets a background image.
Sets the background colour for the plot area.
Creates balloon text (does not work for 3D plots).
Sets arrow-length, in pixels, for balloon text.
Sets background colour of balloon text.
Sets font for balloon text.
Sets justification for balloon text.
Sets outline colour of balloon text.
Sets width of margin, in pixels, around balloon text.
Sets margin size, in pixels, around balloon text.
Sets colour of balloon text.
Draws a horizontal light-grey band.
Draws a vertical light-grey band.
Sets background colour for legend.
Sets border colour for legend.
Sets canvas on which to draw legend.
Sets font with which to draw legend.
Position of legend on display.
Removes legend entry for given series.
Sets spacing between rows in legend.
Type of legend to display - series identified by line or colour rectangle.
Starts definition of plain text (does not work for 3D plots).
Sets colour of plain text.
Sets font for plain text.
Sets justification for plain text.
Sets subtitle of the (vertical) y-axis, and displays vertically along axis. Read more
Sets title of the (vertical) y-axis, and displays vertically along axis. Read more
Sets space in pixels between label and tickmark.
Sets number of minor tick marks.
Changes x-axis definition to (min, max, step).
Sets subtitle of the (horizontal) x-axis.
Turns on display of vertical ticklines at each tick location.
Sets length in pixels of tick lines.
Sets space in pixels between label and tickmark.
Sets number of minor tick marks.
Changes y-axis definition to (min, max, step).
Sets subtitle of the (vertical) y-axis.
Turns on display of vertical ticklines at each tick location.
Sets length in pixels of tick lines.
Auto Trait Implementations
impl RefUnwindSafe for TkXYPlot
impl UnwindSafe for TkXYPlot
Blanket Implementations
Mutably borrows from an owned value. Read more