Struct gnuplot::Axes2D[][src]

pub struct Axes2D { /* fields omitted */ }
Expand description

2D axes that is used for drawing 2D plots

Implementations

Sets the properties of the plot border

Arguments

  • front - Whether or not to draw the border above or below the plot contents
  • locations - Which locations of the border to draw
  • options - Array of PlotOption controlling the appearance of the border. Relevant options are:
    • Color - Specifies the color of the border
    • LineStyle - Specifies the style of the border
    • LineWidth - Specifies the width of the border

Sets the properties of x axis.

Arguments

  • show - Whether or not draw the axis
  • options - Array of PlotOption<&str> controlling the appearance of the axis. Relevant options are:
    • Color - Specifies the color of the border
    • LineStyle - Specifies the style of the border
    • LineWidth - Specifies the width of the border

Like set_x_axis but for the y axis.

Adds an arrow to the plot. The arrow is drawn from (x1, y1) to (x2, y2) with the arrow point towards (x2, y2).

Arguments

  • x1 - X coordinate of the arrow start
  • y1 - Y coordinate of the arrow start
  • x2 - X coordinate of the arrow end
  • y2 - Y coordinate of the arrow end
  • options - Array of PlotOption<&str> controlling the appearance of the arrowhead and arrow shaft. Relevant options are:
    • ArrowType - Specifies the style of the arrow head (or an option to omit it)
    • ArrowSize - Sets the size of the arrow head (in graph units)
    • Color - Specifies the color of the arrow
    • LineStyle - Specifies the style of the arrow shaft
    • LineWidth - Specifies the width of the arrow shaft

Specifies the location and other properties of the legend

Arguments

  • x - X coordinate of the legend
  • y - Y coordinate of the legend
  • legend_options - Array of LegendOption options
  • text_options - Array of LabelOption options specifying the appearance of the plot titles. Valid options are:
    • Font
    • TextColor
    • TextAlign(AlignLeft)
    • TextAlign(AlignRight)

Plot a 2D scatter-plot with lines connecting each data point

Arguments

  • x - x values
  • y - y values
  • options - Array of PlotOption<&str> controlling the appearance of the plot element. The relevant options are:
    • Caption - Specifies the caption for this dataset. Use an empty string to hide it (default).
    • LineWidth - Sets the width of the line
    • LineStyle - Sets the style of the line
    • Color - Sets the color

Plot a 2D scatter-plot with a point standing in for each data point

Arguments

  • x - x values
  • y - y values
  • options - Array of PlotOption<&str> controlling the appearance of the plot element. The relevant options are:
    • Caption - Specifies the caption for this dataset. Use an empty string to hide it (default).
    • PointSymbol - Sets symbol for each point
    • PointSize - Sets the size of each point
    • Color - Sets the color

A combination of lines and points methods (drawn in that order).

Arguments

  • x - x values
  • y - y values
  • options - Array of PlotOption<&str> controlling the appearance of the plot element

Plot a 2D scatter-plot with a point standing in for each data point. Additionally, error bars are attached to each data point in the X direction.

Arguments

  • x - x values
  • y - y values
  • x_error - Errors associated with the x value
  • options - Array of PlotOption controlling the appearance of the plot element. The relevant options are:
    • Caption - Specifies the caption for this dataset. Use an empty string to hide it (default).
    • PointSymbol - Sets symbol for each point
    • PointSize - Sets the size of each point
    • Color - Sets the color

Plot a 2D scatter-plot with a point standing in for each data point. Additionally, error bars are attached to each data point in the Y direction.

Arguments

  • x - x values
  • y - y values
  • y_error - Errors associated with the y values
  • options - Array of PlotOption<&str> controlling the appearance of the plot element. The relevant options are:
    • Caption - Specifies the caption for this dataset. Use an empty string to hide it (default).
    • PointSymbol - Sets symbol for each point
    • PointSize - Sets the size of each point
    • Color - Sets the color

Plot a 2D scatter-plot with a point standing in for each data point and lines connecting each data point. Additionally, error bars are attached to each data point in the X direction.

Arguments

  • x - x values
  • y - y values
  • x_error - Errors associated with the x value
  • options - Array of PlotOption controlling the appearance of the plot element. The relevant options are:
    • Caption - Specifies the caption for this dataset. Use an empty string to hide it (default).
    • PointSymbol - Sets symbol for each point
    • PointSize - Sets the size of each point
    • LineWidth - Sets the width of the line
    • LineStyle - Sets the style of the line
    • Color - Sets the color

Plot a 2D scatter-plot with a point standing in for each data point and lines connecting each data point. Additionally, error bars are attached to each data point in the Y direction.

Arguments

  • x - x values
  • y - y values
  • y_error - Errors associated with the y values
  • options - Array of PlotOption<&str> controlling the appearance of the plot element. The relevant options are:
    • Caption - Specifies the caption for this dataset. Use an empty string to hide it (default).
    • PointSymbol - Sets symbol for each point
    • PointSize - Sets the size of each point
    • LineWidth - Sets the width of the line
    • LineStyle - Sets the style of the line
    • Color - Sets the color

Plot a 2D scatter-plot of two curves (bound by y_lo and y_hi) with a filled region between them. FillRegion plot option can be used to control what happens when the curves intersect. If set to Above, then the y_lo < y_hi region is filled. If set to Below, then the y_lo > y_hi region is filled. Otherwise both regions are filled.

Arguments

  • x - x values
  • y_lo - Bottom y values
  • y_hi - Top y values
  • options - Array of PlotOption<&str> controlling the appearance of the plot element. The relevant options are:
    • Caption - Specifies the caption for this dataset. Use an empty string to hide it (default).
    • FillRegion - Specifies the region between the two curves to fill
    • Color - Sets the color of the filled region
    • FillAlpha - Sets the transparency of the filled region

Plot a 2D scatter-plot using boxes of automatic width. Box widths are set so that there are no gaps between successive boxes (i.e. each box may have a different width). Boxes start at the x-axis and go towards the y value of the datapoint.

Arguments

  • x - x values (center of the box)
  • y - y values
  • options - Array of PlotOption<&str> controlling the appearance of the plot element. The relevant options are:
    • Caption - Specifies the caption for this dataset. Use an empty string to hide it (default).
    • LineWidth - Sets the width of the border
    • LineStyle - Sets the style of the border
    • BorderColor - Sets the color of the border
    • Color - Sets the color of the box fill
    • FillAlpha - Sets the transparency of the box fill

Plot a 2D scatter-plot using boxes of set (per box) width. Boxes start at the x-axis and go towards the y value of the datapoint.

Arguments

  • x - x values (center of the box)
  • y - y values
  • w - Box width values
  • options - Array of PlotOption<&str> controlling the appearance of the plot element. The relevant options are:
    • Caption - Specifies the caption for this dataset. Use an empty string to hide it (default).
    • LineWidth - Sets the width of the border
    • LineStyle - Sets the style of the border
    • BorderColor - Sets the color of the border
    • Color - Sets the color of the box fill
    • FillAlpha - Sets the transparency of the box fill

Plot a 2D box-and-whisker plot using boxes of automatic width.

Arguments

  • x - x values (center of the box)
  • box_min - minimum box y value
  • whisker_min - minimum whisker y value
  • whisker_max - maximum whisker y value
  • box_max - maximum box y value
  • options - Array of PlotOption<&str> controlling the appearance of the plot element. The relevant options are:
    • Caption - Specifies the caption for this dataset. Use an empty string to hide it (default).
    • LineWidth - Sets the width of the border
    • LineStyle - Sets the style of the border
    • BorderColor - Sets the color of the border
    • Color - Sets the color of the box fill
    • FillAlpha - Sets the transparency of the box fill
    • WhiskerBars - Sets the width of the whisker bars

Plot a 2D box-and-whisker plot using boxes of set width.

Arguments

  • x - x values (center of the box)
  • box_min - minimum box y value
  • whisker_min - minimum whisker y value
  • whisker_max - maximum whisker y value
  • box_max - maximum box y value
  • box_width - width of the box (in x axis units)
  • options - Array of PlotOption<&str> controlling the appearance of the plot element. The relevant options are:
    • Caption - Specifies the caption for this dataset. Use an empty string to hide it (default).
    • LineWidth - Sets the width of the border
    • LineStyle - Sets the style of the border
    • BorderColor - Sets the color of the border
    • Color - Sets the color of the box fill
    • FillAlpha - Sets the transparency of the box fill
    • WhiskerBars - Sets the width of the whisker bars

Draws an image from a rectangular array of data by connecting the individual datapoints with polygons.

#Arguments:

  • mat - Row-major 2D array signifying the value of the datapoints. The X and Y coordinates of the datapoints are determined automatically, and optionally scaled using the dimensions argument.
  • num_rows - Number of rows in the data array
  • num_cols - Number of columns in the data array
  • dimensions - Optional X and Y coordinates of the first and last data points (with the rest of the coordinates spaced evenly between). By default this will be (0, 0) and (num_rows - 1, num_cols - 1).
  • options - Array of PlotOption<&str> controlling the appearance of the surface. Relevant options are:
    • Caption - Specifies the caption for this dataset. Use an empty string to hide it (default).

Trait Implementations

Set the position of the axes on the figure using grid coordinates. Read more

Set the position of the axes on the figure using screen coordinates. The coordinates refer to the bottom-left corner of the axes Read more

Set the size of the axes Read more

Set the aspect ratio of the axes Read more

Set the label for the X axis Read more

Like set_x_label, but for the Y axis

Like set_x_label, but for the secondary X axis

Like set_x_label, but for the secondary Y axis

Like set_x_label, but for the color bar

Set the title for the axes Read more

Adds a label to the plot, with an optional marker. Read more

Sets the properties of the ticks on the X axis. Read more

Like set_x_ticks but for the Y axis.

Like set_x_ticks but for the secondary X axis. Read more

Like set_x_ticks but for the secondary Y axis. Read more

Like set_x_ticks but for the color bar axis.

Sets ticks on the X axis with specified labels at specified positions. Read more

Like set_x_ticks_custom but for the the Y axis.

Like set_x_ticks_custom but for the the secondary X axis.

Like set_x_ticks_custom but for the the secondary Y axis.

Like set_x_ticks_custom but for the the color bar axis.

Set the range of values for the X axis. Read more

Set the range of values for the Y axis. Read more

Set the range of values for the secondary X axis. Read more

Set the range of values for the secondary Y axis. Read more

Sets X axis to reverse. Read more

Sets Y axis to reverse. Read more

Sets secondary X axis to reverse. Read more

Sets secondary Y axis to reverse. Read more

Set the range of values for the color bar axis. Read more

Sets the X axis be logarithmic. Note that the range must be non-negative for this to be valid. Read more

Sets the Y axis be logarithmic. Note that the range must be non-negative for this to be valid. Read more

Sets the secondary X axis be logarithmic. Note that the range must be non-negative for this to be valid. Read more

Sets the secondary Y axis be logarithmic. Note that the range must be non-negative for this to be valid. Read more

Sets the color bar axis be logarithmic. Note that the range must be non-negative for this to be valid. Read more

Shows the grid on the X axis. Read more

Shows the minor grid on the X axis. Read more

Shows the grid on the Y axis. Read more

Shows the minor grid on the Y axis. Read more

Shows the grid on the secondary X axis. Read more

Shows the minor grid on the secondary X axis. Read more

Shows the grid on the secondary Y axis. Read more

Shows the minor grid on the secondary Y axis. Read more

Shows the grid on the color bar axis. Read more

Set the grid options. Read more

Set the minor grid options. Read more

Sets the X axis be time. Read more

Sets the Y axis be time. Note that the range must be non-negative for this to be valid. Read more

Sets the secondary X axis be time. Read more

Sets the secondary Y axis be time. Note that the range must be non-negative for this to be valid. Read more

Sets the color bar axis be time. Note that the range must be non-negative for this to be valid. Read more

Sets the margins of the plot. Read more

Sets the palette used for 3D surface and image plots Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.