Struct rstk::chart::polar_plot::TkPolarPlot
source · pub struct TkPolarPlot {
pub id: String,
}
Expand description
Refers to a polar plot
Fields§
§id: String
Implementations§
source§impl TkPolarPlot
impl TkPolarPlot
sourcepub fn draw_dot(&self, series: &str, (x, y): (f64, f64), value: f64)
pub fn draw_dot(&self, series: &str, (x, y): (f64, f64), value: f64)
Draws a dot - value determines symbol/colour.
sourcepub fn draw_labelled_dot(
&self,
(x, y): (f64, f64),
label: &str,
location: Location
)
pub fn draw_labelled_dot( &self, (x, y): (f64, f64), label: &str, location: Location )
Draws a dot with a text label.
See TkChartDots for configuration options.
sourcepub fn draw_minmax(&self, series: &str, x_coord: f64, y_min: f64, y_max: f64)
pub fn draw_minmax(&self, series: &str, x_coord: f64, y_min: f64, y_max: f64)
Draws a band on chart, parallel to x-axis so it appears as a ring.
series
- name of data seriesx_coord
- x-coordinatey_min
- minimum y-valuey_max
- maximum y-value
sourcepub fn draw_region(&self, series: &str, points: &[(f64, f64)])
pub fn draw_region(&self, series: &str, points: &[(f64, f64)])
Draws a closed polygon, using given points.
Trait Implementations§
source§impl Clone for TkPolarPlot
impl Clone for TkPolarPlot
source§fn clone(&self) -> TkPolarPlot
fn clone(&self) -> TkPolarPlot
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TkPolarPlot
impl Debug for TkPolarPlot
source§impl PartialEq for TkPolarPlot
impl PartialEq for TkPolarPlot
source§fn eq(&self, other: &TkPolarPlot) -> bool
fn eq(&self, other: &TkPolarPlot) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TkChartDots for TkPolarPlot
impl TkChartDots for TkPolarPlot
source§fn dot_colour(&self, series: &str, colour: &str)
fn dot_colour(&self, series: &str, colour: &str)
Sets colour of dots in given data series.
source§fn dot_classes(&self, series: &str, values: &[(f64, &str)])
fn dot_classes(&self, series: &str, values: &[(f64, &str)])
Defines class limits and colours, e.g. [(0.0, “green”), (2.0, “red”), …]
source§fn dot_effect_3d(&self, series: &str, value: bool)
fn dot_effect_3d(&self, series: &str, value: bool)
Sets a 3D effect for dots in given data series.
source§fn dot_outline(&self, series: &str, value: bool)
fn dot_outline(&self, series: &str, value: bool)
Sets whether an outline should be displayed for dots in given
data series.
source§fn dot_radius(&self, series: &str, value: f64)
fn dot_radius(&self, series: &str, value: f64)
Sets radius for dots in given data series.
source§fn dot_scale(&self, series: &str, value: f64)
fn dot_scale(&self, series: &str, value: f64)
Sets scale factor of radius to pixels for dots in given data series.
source§fn dot_scale_by_value(&self, series: &str, value: bool)
fn dot_scale_by_value(&self, series: &str, value: bool)
Sets whether dots in given data series should all have the
same size (false) or be scaled by value (true).
source§impl TkChartSeries for TkPolarPlot
impl TkChartSeries for TkPolarPlot
source§fn series_colour(&self, series: &str, colour: &str)
fn series_colour(&self, series: &str, colour: &str)
Sets colour for displaying data series
source§fn series_drawing_mode(&self, series: &str, mode: DrawingMode)
fn series_drawing_mode(&self, series: &str, mode: DrawingMode)
Sets drawing mode for displaying data series
(called “type” in tklib’s plotchart documentation).
source§fn series_fill_area(&self, series: &str, area: FillArea)
fn series_fill_area(&self, series: &str, area: FillArea)
Used to select whether to fill the area above or below the line of
data series.
source§fn series_fill_colour(&self, series: &str, colour: &str)
fn series_fill_colour(&self, series: &str, colour: &str)
Sets colour to use when drawing filled area.
source§fn series_line_width(&self, series: &str, width: u64)
fn series_line_width(&self, series: &str, width: u64)
Sets width of line for displaying data series
source§impl TkPlotchart for TkPolarPlot
impl TkPlotchart for TkPolarPlot
source§fn background_axes_colour(&self, colour: &str)
fn background_axes_colour(&self, colour: &str)
Sets the background colour for the axes.
source§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.
source§fn background_image(&self, image: &TkImage)
fn background_image(&self, image: &TkImage)
Sets a background image.
source§fn background_plot_colour(&self, colour: &str)
fn background_plot_colour(&self, colour: &str)
Sets the background colour for the plot area.
source§fn balloon(&self, (x, y): (f64, f64), text: &str, direction: Direction)
fn balloon(&self, (x, y): (f64, f64), text: &str, direction: Direction)
Creates balloon text (does not work for 3D plots).
source§fn balloon_arrow_size(&self, value: u64)
fn balloon_arrow_size(&self, value: u64)
Sets arrow-length, in pixels, for balloon text.
source§fn balloon_background_colour(&self, colour: &str)
fn balloon_background_colour(&self, colour: &str)
Sets background colour of balloon text.
source§fn balloon_font(&self, font: &TkFont)
fn balloon_font(&self, font: &TkFont)
Sets font for balloon text.
source§fn balloon_justify(&self, value: Justify)
fn balloon_justify(&self, value: Justify)
Sets justification for balloon text.
source§fn balloon_outline_colour(&self, colour: &str)
fn balloon_outline_colour(&self, colour: &str)
Sets outline colour of balloon text.
source§fn balloon_margin(&self, value: u64)
fn balloon_margin(&self, value: u64)
Sets width of margin, in pixels, around balloon text.
source§fn balloon_rim_width(&self, value: u64)
fn balloon_rim_width(&self, value: u64)
Sets margin size, in pixels, around balloon text.
source§fn balloon_text_colour(&self, colour: &str)
fn balloon_text_colour(&self, colour: &str)
Sets colour of balloon text.
source§fn draw_x_band(&self, y_min: f64, y_max: f64)
fn draw_x_band(&self, y_min: f64, y_max: f64)
Draws a horizontal light-grey band.
source§fn draw_y_band(&self, y_min: f64, y_max: f64)
fn draw_y_band(&self, y_min: f64, y_max: f64)
Draws a vertical light-grey band.
source§fn legend_background(&self, colour: &str)
fn legend_background(&self, colour: &str)
Sets background colour for legend.
source§fn legend_border(&self, colour: &str)
fn legend_border(&self, colour: &str)
Sets border colour for legend.
source§fn legend_canvas(&self, canvas: &TkCanvas)
fn legend_canvas(&self, canvas: &TkCanvas)
Sets canvas on which to draw legend.
source§fn legend_font(&self, font: &TkFont)
fn legend_font(&self, font: &TkFont)
Sets font with which to draw legend.
source§fn legend_position(&self, value: Position)
fn legend_position(&self, value: Position)
Position of legend on display.
source§fn legend_remove(&self, series: &str)
fn legend_remove(&self, series: &str)
Removes legend entry for given series.
source§fn legend_spacing(&self, value: u64)
fn legend_spacing(&self, value: u64)
Sets spacing between rows in legend.
source§fn legend_type(&mut self, value: LegendType)
fn legend_type(&mut self, value: LegendType)
Type of legend to display - series identified by line or colour rectangle.
source§fn plaintext(&self, (x, y): (f64, f64), text: &str, direction: Direction)
fn plaintext(&self, (x, y): (f64, f64), text: &str, direction: Direction)
Starts definition of plain text (does not work for 3D plots).
source§fn plaintext_colour(&self, colour: &str)
fn plaintext_colour(&self, colour: &str)
Sets colour of plain text.
source§fn plaintext_font(&self, font: &TkFont)
fn plaintext_font(&self, font: &TkFont)
Sets font for plain text.
source§fn plaintext_justify(&self, value: Justify)
fn plaintext_justify(&self, value: Justify)
Sets justification for plain text.
source§fn v_subtitle(&self, text: &str)
fn v_subtitle(&self, text: &str)
Sets subtitle of the (vertical) y-axis, and displays vertically
along axis.
source§fn v_title(&self, text: &str)
fn v_title(&self, text: &str)
Sets title of the (vertical) y-axis, and displays vertically
along axis.
source§fn x_label_offset(&self, value: f64)
fn x_label_offset(&self, value: f64)
Sets space in pixels between label and tickmark.
source§fn x_minor_ticks(&self, value: u64)
fn x_minor_ticks(&self, value: u64)
Sets number of minor tick marks.
source§fn x_scale(&self, (min, max, step): (f64, f64, f64))
fn x_scale(&self, (min, max, step): (f64, f64, f64))
Changes x-axis definition to (min, max, step).
source§fn x_subtitle(&self, text: &str)
fn x_subtitle(&self, text: &str)
Sets subtitle of the (horizontal) x-axis.
source§fn x_tick_lines(&self, colour: &str, dash: ChartDash)
fn x_tick_lines(&self, colour: &str, dash: ChartDash)
Turns on display of vertical ticklines at each tick location.
source§fn x_tick_length(&self, value: u64)
fn x_tick_length(&self, value: u64)
Sets length in pixels of tick lines.
source§fn y_label_offset(&self, value: f64)
fn y_label_offset(&self, value: f64)
Sets space in pixels between label and tickmark.
source§fn y_minor_ticks(&self, value: u64)
fn y_minor_ticks(&self, value: u64)
Sets number of minor tick marks.
source§fn y_scale(&self, (min, max, step): (f64, f64, f64))
fn y_scale(&self, (min, max, step): (f64, f64, f64))
Changes y-axis definition to (min, max, step).
source§fn y_subtitle(&self, text: &str)
fn y_subtitle(&self, text: &str)
Sets subtitle of the (vertical) y-axis.
source§fn y_tick_lines(&self, colour: &str, dash: ChartDash)
fn y_tick_lines(&self, colour: &str, dash: ChartDash)
Turns on display of vertical ticklines at each tick location.
source§fn y_tick_length(&self, value: u64)
fn y_tick_length(&self, value: u64)
Sets length in pixels of tick lines.
impl StructuralPartialEq for TkPolarPlot
Auto Trait Implementations§
impl RefUnwindSafe for TkPolarPlot
impl Send for TkPolarPlot
impl Sync for TkPolarPlot
impl Unpin for TkPolarPlot
impl UnwindSafe for TkPolarPlot
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more