Skip to content
Pcolormesh

Pcolormesh

Mojo struct 🡭

Pcolormesh

@memory_only
struct Pcolormesh

Mark.PCOLORMESH as a type. Built by Plot.mark_pcolormesh().

Aliases

  • id = Mark.PCOLORMESH
  • supports_tooltips = False
  • supports_data_labels = False
  • supports_horizontal = False
  • supports_annotations_y = True
  • supports_annotations_x = True
  • supports_annotations_xy = True
  • supports_log_x = True
  • supports_log_y = True
  • supports_color_size = False
  • straight_edged = True
  • continuous_path = False
  • layerable = False
  • color_is_value = True
  • categorical_bars = False
  • bar_combo_overlay = False
  • continuous_error_bars = False

Fields

  • image (_ImageData)

Implemented traits

AnyType, Copyable, Deinitable, MarkType, Movable

Methods

__init__

fn def __init__(out self)

Args:

  • self (Self)

Returns:

Self

render

fn def render[T: DrawTarget](self, mut target: T, style: _MarkStyle, annotations: _AnnotationData, settings: _ChartSettings, ox0: Int, oy0: Int, ox1: Int, oy1: Int, has_shared_y_domain: Bool, shared_y_min: Float64, shared_y_max: Float64, shared_y_is_log: Bool, *, mut cache: FontCache, vector_target: Bool) -> _RenderResult

Parameters:

  • T (DrawTarget)

Args:

  • self (Self)
  • target (T)
  • style (_MarkStyle)
  • annotations (_AnnotationData)
  • settings (_ChartSettings)
  • ox0 (Int)
  • oy0 (Int)
  • ox1 (Int)
  • oy1 (Int)
  • has_shared_y_domain (Bool)
  • shared_y_min (Float64)
  • shared_y_max (Float64)
  • shared_y_is_log (Bool)
  • cache (FontCache)
  • vector_target (Bool)

Returns:

_RenderResult

Raises:

encode_pcolormesh

fn def encode_pcolormesh(mut self, mut settings: _ChartSettings, x_edges: List[Float64], y_edges: List[Float64], z: List[List[Float64]])

Args:

  • self (Self)
  • settings (_ChartSettings)
  • x_edges (List[Float64])
  • y_edges (List[Float64])
  • z (List[List[Float64]])

Raises:

fn def encode_pcolormesh(mut self, mut settings: _ChartSettings, x_corners: List[List[Float64]], y_corners: List[List[Float64]], z: List[List[Float64]])

Args:

  • self (Self)
  • settings (_ChartSettings)
  • x_corners (List[List[Float64]])
  • y_corners (List[List[Float64]])
  • z (List[List[Float64]])

Raises: