graphinglib.Scatter.create_slice_y#
- Scatter.create_slice_y(y_min: float, y_max: float, label: str | None = None, face_color: str | ArrayLike | NoneType = 'default', edge_color: str | ArrayLike | NoneType = 'default', color_map: str | Colormap | Literal['default'] = 'default', show_color_bar: bool | Literal['default'] = 'default', marker_size: float | Literal['default'] = 'default', marker_style: str = 'default', copy_first: bool = False) Self [source]#
Creates a slice of the scatter plot between two y values.
- Parameters:
- y_min, y_maxfloat
The slice will be created between y_min and y_max.
- labelstr, optional
Label to be displayed in the legend.
- face_colorstr or ArrayLike or None
Face color of the points. If an array of intensities is provided, the values are mapped to the specified color map. If None, marker faces are transparent. Default depends on the
figure_style
configuration.- edge_colorstr or ArrayLike or None
Edge color of the points. If an array of intensities is provided, the values are mapped to the specified color map. If None, marker edges are transparent. Default depends on the
figure_style
configuration.- color_mapstr or Colormap
Color map of the stream lines, to be used in combination with the color parameter to specify intensity. Default depends on the
figure_style
configuration.- show_color_barbool
Whether or not to display the color bar next to the plot. Default depends on the
figure_style
configuration.- marker_sizefloat
Size of the points. Default depends on the
figure_style
configuration.- marker_stylestr
Style of the points. Default depends on the
figure_style
configuration.- copy_firstbool
If
True
, a copy of the scatter plot (with all its parameters) will be returned with the slice applied. Any other parameters passed to this method will also be applied to the copied scatter plot. IfFalse
, a new scatter plot will be created with the slice applied and the parameters passed to this method.
- Returns: