Table of Contents

Interface IPlotAxes

Namespace
Gym.Utils
Assembly
Gym.Rendering.dll

One plot of an IPlotFigure: matplotlib's Axes as PlayPlot uses it.

public interface IPlotAxes
Extension Methods

Methods

Scatter(IReadOnlyList<double>, IReadOnlyList<double>, string)

Adds a scatter of points (scatter(x, y, c=color)).

IPlotArtist Scatter(IReadOnlyList<double> x, IReadOnlyList<double> y, string color)

Parameters

x IReadOnlyList<double>

The x values, the steps.

y IReadOnlyList<double>

The y values, as many as x.

color string

The colour's name; PlayPlot passes blue.

Returns

IPlotArtist

The scatter, to remove before the next.

SetTitle(string)

Sets the title (set_title).

void SetTitle(string title)

Parameters

title string

The title.

SetXLim(double, double)

Sets the x range shown (set_xlim(left, right)).

void SetXLim(double left, double right)

Parameters

left double

The left limit.

right double

The right limit.