Struct gnuplot::Axes3D[][src]

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

3D axes that is used for drawing 3D plots

Implementations

Draws a 3D surface from a rectangular array of data by connecting the individual datapoints with polygons.

#Arguments:

  • mat - Row-major 2D array signifying the Z coordinate 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 controlling the appearance of the surface. Relevant options are:
    • Caption - Specifies the caption for this dataset. Use an empty string to hide it (default).

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

Arguments

  • x - x values
  • y - y values
  • z - z 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 3D scatter-plot with lines connecting each data point

Arguments

  • x - x values
  • y - y values
  • z - z 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
  • z - z values
  • options - Array of PlotOption<&str> controlling the appearance of the plot element

Sets the 3D view.

#Arguments:

  • pitch - Pitch, in degrees. Value of 0 is looking straight down on the XY plane, Z pointing out of the screen.
  • yaw - Yaw, in degrees. Value of 0 is looking at the XZ plane, Y point into the screen.

Sets the view to be a map. Useful for images and contour plots.

Set the label for the Z axis

Arguments

  • text - Text of the label. Pass an empty string to hide the label
  • options - Array of LabelOption controlling the appearance of the label. Relevant options are:
    • Offset - Specifies the offset of the label
    • Font - Specifies the font of the label
    • TextColor - Specifies the color of the label
    • Rotate - Specifies the rotation of the label
    • Align - Specifies how to align the label

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.

Like set_x_axis but for the z axis.

Like set_x_ticks but for the Z axis.

Like set_x_ticks_custom but for the the Y axis.

Set the range of values for the Z axis

Arguments

  • min - Minimum Z value
  • max - Maximum Z value

Sets z axis to reverse.

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

Arguments

  • base - If Some, then specifies base of the logarithm, if None makes the axis not be logarithmic

Shows the grid on the Z axis.

Arguments

  • show - Whether to show the grid.

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

If true, the axis is interpreted as seconds from the Unix epoch. Use the Format TickOption to specify the formatting of the ticks (see strftime format spec for valid values).

Arguments

  • is_time - Whether this axis is time or not.

Show contours (lines of equal Z value) at automatically determined levels.

Arguments

  • base - Show contours on the base of the plot (XY plane)
  • surface - Show the contours on the surface itself
  • style - Style of the contours
  • label - Auto sets the label automatically and enables the legend, Fix() allows you specify a format string (using C style formatting), otherwise an empty string disables the legend and labels.
  • levels - Auto picks some default number of levels, otherwise you can pass a set nominal number instead. The number is nominal as contours are placed at nice values of Z, and thus there may be fewer of them than this number.

Show contours (lines of equal Z value) at specific levels.

Arguments

  • base - Show contours on the base of the plot (XY plane)
  • surface - Show the contours on the surface itself
  • style - Style of the contours
  • label - Auto sets the label automatically and enables the legend, Fix() allows you specify a format string (using C style formatting), otherwise an empty string disables the legend and labels.
  • levels - A set of levels.

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.