WL iddlmZddlmZmZddlmZmZddlZ erddl Z ddl m Z ddl mZmZmZmZmZGddeZy) ) annotations)ABCabstractmethod) TYPE_CHECKINGAnyN) ArrayLike)CoordinateArray FillReturnFillType LineReturnLineTypeceZdZdZddZe d ddZe d ddZe d ddZe d ddZ d ddZ d dd Z eddd Z edd Z edd Zeddd Ze d d!dZy)"Rendererz"Abstract base class for renderers.ctj|}tj|}|jdk(rtj||\}}||fS)N)npasarrayndimmeshgrid)selfxys ]/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/contourpy/util/renderer.py _grid_as_2dzRenderer._grid_as_2dsD JJqM JJqM 66Q;;;q!$DAq!t cyN)rfilled fill_typeaxcoloralphas rrzRenderer.filled rNcyrr)rrrr!r"r# point_colorquad_as_tri_alphas rgridz Renderer.grid% rcyrr)rlines line_typer!r"r# linewidths rr+zRenderer.lines2s rcyrr)rrrzr!r"s rmaskz Renderer.mask>r$rc ||||d<t|D]'\}}| d|dz|d<|j|||fi|)y)aPlot multiple sets of filled contours on a single axes. Args: multi_filled (list of filled contour arrays): Multiple filled contour sets as returned by :meth:`.ContourGenerator.multi_filled`. fill_type (FillType or str): Type of filled data as returned by :attr:`~.ContourGenerator.fill_type`, or string equivalent. ax (int or Renderer-specific axes or figure object, optional): Which axes to plot on, default ``0``. color (str or None, optional): If a string color then this same color is used for all filled contours. If ``None``, the default, then the filled contour sets use colors from the ``tab10`` colormap in order, wrapping around to the beginning if more than 10 sets of filled contours are rendered. kwargs: All other keyword argument are passed on to :meth:`.Renderer.filled` unchanged. .. versionadded:: 1.3.0 Nr"C ) enumerater)r multi_filledr r!r"kwargsirs rr5zRenderer.multi_filledIsZ4  #F7O"<0 9IAv}$%a"fX,w DKK 2 8 8 9rc ||||d<t|D]'\}}| d|dz|d<|j|||fi|)y)aPlot multiple sets of contour lines on a single axes. Args: multi_lines (list of contour line arrays): Multiple contour line sets as returned by :meth:`.ContourGenerator.multi_lines`. line_type (LineType or str): Type of line data as returned by :attr:`~.ContourGenerator.line_type`, or string equivalent. ax (int or Renderer-specific axes or figure object, optional): Which axes to plot on, default ``0``. color (str or None, optional): If a string color then this same color is used for all lines. If ``None``, the default, then the line sets use colors from the ``tab10`` colormap in order, wrapping around to the beginning if more than 10 sets of lines are rendered. kwargs: All other keyword argument are passed on to :meth:`Renderer.lines` unchanged. .. versionadded:: 1.3.0 Nr"r2r3)r4r+)r multi_linesr,r!r"r6r7r+s rr9zRenderer.multi_linesjsZ4  #F7O!+. 7HAu}$%a"fX,w DJJui 6v 6 7rcyrr)rfilename transparents rsavez Renderer.save rcyrrrs rsave_to_bufferzRenderer.save_to_bufferr>rcyrrr@s rshowz Renderer.showr>rcyrr)rtitler!r"s rrEzRenderer.titler>rcyrr)rrrr/r!r"fmt quad_as_tris rz_valueszRenderer.z_valuesr)r)rrrrreturnz'tuple[CoordinateArray, CoordinateArray])rC0gffffff?) rr r FillType | strr!rr"strr#floatrJNone)rblackg?Nr)rrrrr!rr"rMr#rNr& str | Noner'rNrJrO)rrKg?r)r+r r,LineType | strr!rr"rMr#rNr-rNrJrO)rrP) rrrrr/z'ArrayLike | np.ma.MaskedArray[Any, Any]r!rr"rMrJrO)rN) r5zlist[FillReturn]r rLr!rr"rQr6rrJrO) r9zlist[LineReturn]r,rRr!rr"rQr6rrJrO)F)r;rMr<boolrJrO)rJz io.BytesIO)rJrO)rErMr!rr"rQrJrO)rgreenz.1fF)rrrrr/rr!rr"rMrGrMrHrSrJrO)__name__ __module__ __qualname____doc__rrrr(r+r0r5r9r=rArCrErIrrrrrs,    "            "&#$                 !            "                       3          9&9"9  9  9  9 9J 7%7"7  7  7  7 7B         !                       rr) __future__rabcrrtypingrrnumpyrio numpy.typingrcontourpy._contourpyr r r r r rrrrr`s."#% &``V sV r