Struct astrup::plot::Plot [] [src]

pub struct Plot { /* fields omitted */ }

Plot

Determines a single plot. A plot is part of a figure, and contains a canvas where things are drawn. By default, there is some space around the canvas, to make space for labels, ticks, and tick labels.

Methods

impl Plot
[src]

[src]

Create and return a plot

[src]

Set plot title

[src]

Set plot background color. Note: This is different from the canvas background color.

[src]

Set the plot background color. Note: This is different from the canvas background color.

[src]

Set the plot background color. Note: This is different from the canvas background color.

[src]

Set local plot coordinates, relative to the figure it belongs to.

A value of 0.0 is the minimum figure coordinate, and a value of 1.0 is the maximum figure coordinate.

[src]

Set the data range of the plot

Note: This is a soft suggestion, and can be overwritten before the final result for aestethics. See more here.

[src]

Set the horisontal data range of the plot

Note: This is a soft suggestion, and can be overwritten before the final result for aestethics. See more here.

[src]

Set the vertical data range of the plot

Note: This is a soft suggestion, and can be overwritten before the final result for aestethics. See more here.

[src]

Set the left horisontal data range end of the plot

Note: This is a soft suggestion, and can be overwritten before the final result for aestethics. See more here.

[src]

Set the right horisontal data range end of the plot

Note: This is a soft suggestion, and can be overwritten before the final result for aestethics. See more here.

[src]

Set the bottom vertical data range end of the plot

Note: This is a soft suggestion, and can be overwritten before the final result for aestethics. See more here.

[src]

Set the top vertical data range end of the plot

Note: This is a soft suggestion, and can be overwritten before the final result for aestethics. See more here.

[src]

Whether or not to display a border around the plot

[src]

Set the color of the border around the plot

[src]

Set the line width of the border around the plot

[src]

Add a canvas to the plot

[src]

This method is called by figure after all plots are added, and all plot adjustment is made. This happend right before the plot is drawn on the figure.

The function scales various elements within the plot, and calls a similar plot for its canvasses.

[src]

Do the actual drawing of the plot

Trait Implementations

impl Clone for Plot
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Plot
[src]

[src]

Formats the value using the given formatter.