Trait gnuplot::AxesCommon[][src]

pub trait AxesCommon: AxesCommonPrivate {
Show methods fn set_pos_grid<'l>(
        &'l mut self,
        nrow: u32,
        ncol: u32,
        pos: u32
    ) -> &'l mut Self { ... }
fn set_pos<'l>(&'l mut self, x: f64, y: f64) -> &'l mut Self { ... }
fn set_size<'l>(&'l mut self, w: f64, h: f64) -> &'l mut Self { ... }
fn set_aspect_ratio<'l>(
        &'l mut self,
        ratio: AutoOption<f64>
    ) -> &'l mut Self { ... }
fn set_x_label<'l>(
        &'l mut self,
        text: &str,
        options: &[LabelOption<&str>]
    ) -> &'l mut Self { ... }
fn set_y_label<'l>(
        &'l mut self,
        text: &str,
        options: &[LabelOption<&str>]
    ) -> &'l mut Self { ... }
fn set_x2_label<'l>(
        &'l mut self,
        text: &str,
        options: &[LabelOption<&str>]
    ) -> &'l mut Self { ... }
fn set_y2_label<'l>(
        &'l mut self,
        text: &str,
        options: &[LabelOption<&str>]
    ) -> &'l mut Self { ... }
fn set_cb_label<'l>(
        &'l mut self,
        text: &str,
        options: &[LabelOption<&str>]
    ) -> &'l mut Self { ... }
fn set_title<'l>(
        &'l mut self,
        text: &str,
        options: &[LabelOption<&str>]
    ) -> &'l mut Self { ... }
fn label<'l>(
        &'l mut self,
        text: &str,
        x: Coordinate,
        y: Coordinate,
        options: &[LabelOption<&str>]
    ) -> &'l mut Self { ... }
fn set_x_ticks<'l>(
        &'l mut self,
        tick_placement: Option<(AutoOption<f64>, u32)>,
        tick_options: &[TickOption<&str>],
        label_options: &[LabelOption<&str>]
    ) -> &'l mut Self { ... }
fn set_y_ticks<'l>(
        &'l mut self,
        tick_placement: Option<(AutoOption<f64>, u32)>,
        tick_options: &[TickOption<&str>],
        label_options: &[LabelOption<&str>]
    ) -> &'l mut Self { ... }
fn set_x2_ticks<'l>(
        &'l mut self,
        tick_placement: Option<(AutoOption<f64>, u32)>,
        tick_options: &[TickOption<&str>],
        label_options: &[LabelOption<&str>]
    ) -> &'l mut Self { ... }
fn set_y2_ticks<'l>(
        &'l mut self,
        tick_placement: Option<(AutoOption<f64>, u32)>,
        tick_options: &[TickOption<&str>],
        label_options: &[LabelOption<&str>]
    ) -> &'l mut Self { ... }
fn set_cb_ticks<'l>(
        &'l mut self,
        tick_placement: Option<(AutoOption<f64>, u32)>,
        tick_options: &[TickOption<&str>],
        label_options: &[LabelOption<&str>]
    ) -> &'l mut Self { ... }
fn set_x_ticks_custom<'l, T: DataType, S: ToString, TickT: Borrow<Tick<T, S>>, TL: IntoIterator<Item = TickT>>(
        &'l mut self,
        ticks: TL,
        tick_options: &[TickOption<&str>],
        label_options: &[LabelOption<&str>]
    ) -> &'l mut Self { ... }
fn set_y_ticks_custom<'l, T: DataType, S: ToString, TickT: Borrow<Tick<T, S>>, TL: IntoIterator<Item = TickT>>(
        &'l mut self,
        ticks: TL,
        tick_options: &[TickOption<&str>],
        label_options: &[LabelOption<&str>]
    ) -> &'l mut Self { ... }
fn set_x2_ticks_custom<'l, T: DataType, S: ToString, TickT: Borrow<Tick<T, S>>, TL: IntoIterator<Item = TickT>>(
        &'l mut self,
        ticks: TL,
        tick_options: &[TickOption<&str>],
        label_options: &[LabelOption<&str>]
    ) -> &'l mut Self { ... }
fn set_y2_ticks_custom<'l, T: DataType, S: ToString, TickT: Borrow<Tick<T, S>>, TL: IntoIterator<Item = TickT>>(
        &'l mut self,
        ticks: TL,
        tick_options: &[TickOption<&str>],
        label_options: &[LabelOption<&str>]
    ) -> &'l mut Self { ... }
fn set_cb_ticks_custom<'l, T: DataType, S: ToString, TickT: Borrow<Tick<T, S>>, TL: IntoIterator<Item = TickT>>(
        &'l mut self,
        ticks: TL,
        tick_options: &[TickOption<&str>],
        label_options: &[LabelOption<&str>]
    ) -> &'l mut Self { ... }
fn set_x_range<'l>(
        &'l mut self,
        min: AutoOption<f64>,
        max: AutoOption<f64>
    ) -> &'l mut Self { ... }
fn set_y_range<'l>(
        &'l mut self,
        min: AutoOption<f64>,
        max: AutoOption<f64>
    ) -> &'l mut Self { ... }
fn set_x2_range<'l>(
        &'l mut self,
        min: AutoOption<f64>,
        max: AutoOption<f64>
    ) -> &'l mut Self { ... }
fn set_y2_range<'l>(
        &'l mut self,
        min: AutoOption<f64>,
        max: AutoOption<f64>
    ) -> &'l mut Self { ... }
fn set_x_reverse<'l>(&'l mut self, reverse: bool) -> &'l mut Self { ... }
fn set_y_reverse<'l>(&'l mut self, reverse: bool) -> &'l mut Self { ... }
fn set_x2_reverse<'l>(&'l mut self, reverse: bool) -> &'l mut Self { ... }
fn set_y2_reverse<'l>(&'l mut self, reverse: bool) -> &'l mut Self { ... }
fn set_cb_range<'l>(
        &'l mut self,
        min: AutoOption<f64>,
        max: AutoOption<f64>
    ) -> &'l mut Self { ... }
fn set_x_log<'l>(&'l mut self, base: Option<f64>) -> &'l mut Self { ... }
fn set_y_log<'l>(&'l mut self, base: Option<f64>) -> &'l mut Self { ... }
fn set_x2_log<'l>(&'l mut self, base: Option<f64>) -> &'l mut Self { ... }
fn set_y2_log<'l>(&'l mut self, base: Option<f64>) -> &'l mut Self { ... }
fn set_cb_log<'l>(&'l mut self, base: Option<f64>) -> &'l mut Self { ... }
fn set_x_grid<'l>(&'l mut self, show: bool) -> &'l mut Self { ... }
fn set_x_minor_grid<'l>(&'l mut self, show: bool) -> &'l mut Self { ... }
fn set_y_grid<'l>(&'l mut self, show: bool) -> &'l mut Self { ... }
fn set_y_minor_grid<'l>(&'l mut self, show: bool) -> &'l mut Self { ... }
fn set_x2_grid<'l>(&'l mut self, show: bool) -> &'l mut Self { ... }
fn set_x2_minor_grid<'l>(&'l mut self, show: bool) -> &'l mut Self { ... }
fn set_y2_grid<'l>(&'l mut self, show: bool) -> &'l mut Self { ... }
fn set_y2_minor_grid<'l>(&'l mut self, show: bool) -> &'l mut Self { ... }
fn set_cb_grid<'l>(&'l mut self, show: bool) -> &'l mut Self { ... }
fn set_grid_options<'l>(
        &'l mut self,
        front: bool,
        options: &[PlotOption<&str>]
    ) -> &'l mut Self { ... }
fn set_minor_grid_options<'l>(
        &'l mut self,
        options: &[PlotOption<&str>]
    ) -> &'l mut Self { ... }
fn set_x_time<'l>(&'l mut self, is_time: bool) -> &'l mut Self { ... }
fn set_y_time<'l>(&'l mut self, is_time: bool) -> &'l mut Self { ... }
fn set_x2_time<'l>(&'l mut self, is_time: bool) -> &'l mut Self { ... }
fn set_y2_time<'l>(&'l mut self, is_time: bool) -> &'l mut Self { ... }
fn set_cb_time<'l>(&'l mut self, is_time: bool) -> &'l mut Self { ... }
fn set_margins<'l>(&'l mut self, margins: &[MarginSide]) -> &'l mut Self { ... }
fn set_palette(&mut self, palette: PaletteType) -> &mut Self { ... }
}

Provided methods

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

Arguments

  • nrow - Number of rows in the grid. Must be greater than 0.
  • ncol - Number of columns in the grid. Must be greater than 0.
  • pos - Which grid cell to place this axes in, counting from top-left corner, going left and then down, starting at 0.

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

Arguments

  • x - X position. Ranges from 0 to 1
  • y - Y position. Ranges from 0 to 1

Set the size of the axes

Arguments

  • w - Width. Ranges from 0 to 1
  • h - Height. Ranges from 0 to 1

Set the aspect ratio of the axes

Arguments

  • ratio - The aspect ratio. Set to Auto to return the ratio to default

Set the label for the X 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

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

Arguments

  • text - Text of the title. Pass an empty string to hide the title
  • options - Array of LabelOption<&str> controlling the appearance of the title. 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

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

Arguments

  • text - Text of the label
  • x - X coordinate of the label
  • y - Y coordinate of the label
  • options - Array of LabelOption<&str> 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
    • MarkerSymbol - Specifies the symbol for the marker. Omit to hide the marker
    • MarkerSize - Specifies the size for the marker
    • MarkerColor - Specifies the color for the marker

Sets the properties of the ticks on the X axis.

Arguments

  • tick_placement - Controls the placement of the ticks. Pass None to hide the ticks. Otherwise, the first tuple value controls the spacing of the major ticks (in axes units), otherwise set it to Auto to let gnuplot decide the spacing automatically. The second tuple value specifies the number of minor ticks. For logarithmic axes, non-zero values mean that the number of ticks usually equals to ceil(log_base) - 2.
  • tick_options - Array of TickOption controlling the appearance of the ticks
  • label_options - Array of LabelOption<&str> controlling the appearance of the tick labels. 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

Like set_x_ticks but for the Y axis.

Like set_x_ticks but for the secondary X axis.

Note that by default, these are hidden.

Like set_x_ticks but for the secondary Y axis.

Note that by default, these are hidden.

Like set_x_ticks but for the color bar axis.

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

Arguments

  • ticks - The locations and labels of the added ticks. The label can contain a single C printf style floating point formatting specifier which will be replaced by the location of the tic.
  • tick_options - Array of TickOption controlling the appearance of the ticks
  • label_options - Array of LabelOption<&str> controlling the appearance of the tick labels. 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

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.

Arguments

  • min - Minimum X value
  • max - Maximum X value

Set the range of values for the Y axis.

Arguments

  • min - Minimum Y value
  • max - Maximum Y value

Set the range of values for the secondary X axis.

Arguments

  • min - Minimum X value
  • max - Maximum X value

Set the range of values for the secondary Y axis.

Arguments

  • min - Minimum Y value
  • max - Maximum Y value

Sets X axis to reverse.

Arguments

  • reverse - Boolean, true to reverse axis, false will not reverse

Sets Y axis to reverse.

Arguments

  • reverse - Boolean, true to reverse axis, false will not reverse

Sets secondary X axis to reverse.

Arguments

  • reverse - Boolean, true to reverse axis, false will not reverse

Sets secondary Y axis to reverse.

Arguments

  • reverse - Boolean, true to reverse axis, false will not reverse

Set the range of values for the color bar axis.

Arguments

  • min - Minimum Y value
  • max - Maximum Y value

Sets the X 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

Sets the Y 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

Sets the secondary X 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

Sets the secondary Y 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

Sets the color bar 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 X axis.

Arguments

  • show - Whether to show the grid.

Shows the minor grid on the X axis.

Arguments

  • show - Whether to show the grid.

Shows the grid on the Y axis.

Arguments

  • show - Whether to show the grid.

Shows the minor grid on the Y axis.

Arguments

  • show - Whether to show the grid.

Shows the grid on the secondary X axis.

Arguments

  • show - Whether to show the grid.

Shows the minor grid on the secondary X axis.

Arguments

  • show - Whether to show the grid.

Shows the grid on the secondary Y axis.

Arguments

  • show - Whether to show the grid.

Shows the minor grid on the secondary Y axis.

Arguments

  • show - Whether to show the grid.

Shows the grid on the color bar axis.

Arguments

  • show - Whether to show the grid.

Set the grid options.

Arguments

  • front - Whether the grid should be in the front of the plot elements or behind them.
  • options - Styling options of the grid. Relevant options are:
    • Color - Specifies the color of the grid lines
    • LineStyle - Specifies the style of the grid lines
    • LineWidth - Specifies the width of the grid lines

Set the minor grid options.

Arguments

  • options - Styling options of the grid. Relevant options are:
    • Color - Specifies the color of the grid lines
    • LineStyle - Specifies the style of the grid lines
    • LineWidth - Specifies the width of the grid lines

Sets the X axis be time.

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.

Sets the Y 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.

Sets the secondary X axis be time.

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.

Sets the secondary Y 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.

Sets the color bar 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.

Sets the margins of the plot.

Arguments

  • margins - The values of margins to be overriden. Specified as a fraction of the full drawing area, ranging from 0 to 1

Sets the palette used for 3D surface and image plots

Arguments

  • palette - What palette type to use

Implementors