SurfaceChart3D

class qf_lib.plotting.charts.surface_chart_3d.SurfaceChart3D(x_vector: Sequence, y_vector: Sequence, z_matrix: array)[source]

Bases: object

Creates a 3D surface chart

Parameters:
  • x_vector (Sequence) – vector corresponding to points on X axis

  • y_vector (Sequence) – vector corresponding to points on Y axis

  • z_matrix (numpy.array) – matrix with values. The shape of the Z matrix has to be [len(Y), len(X)] X values correspond to COLUMNS Y values correspond to ROWS

Methods:

close()

Closes the window containing the figure.

plot([figsize, include_contour])

Plots the chart.

show()

Shows the chart.

close()[source]

Closes the window containing the figure.

plot(figsize: Optional[Tuple[float, float]] = None, include_contour: bool = False)[source]

Plots the chart. The underlying figure stays hidden until the show() method is called.

Parameters:
  • figsize (Tuple[float, float]) – The figure size to draw the chart at in inches. This is a tuple of (width, height) passed directly to matplotlib’s plot function. The values are expressed in inches.

  • include_contour (bool) –

show()[source]

Shows the chart. It is necessary to call the plot function first.