rL i 6ddlZddlmZddlmZddlmZdZ y)N) Triangulationcddl}tj|i|\}}}|j|j|j }}}|r|dnd}|j jj|\} } } tj|tj} td| | | fD]\} }| | j| || d} i| d| jddd }| d vrt!j"||d t j$d }t!j"||d t j$d }|j&|j)|j)fi|}n|j&ggfi|}| d } i| ddi}|j+dd| d vr|j&||fi|}||zS|j&ggfi|}||zS)a Draw an unstructured triangular grid as lines and/or markers. Call signatures:: triplot(triangulation, ...) triplot(x, y, [triangles], *, [mask=mask], ...) The triangular grid can be specified either by passing a `.Triangulation` object as the first parameter, or by passing the points *x*, *y* and optionally the *triangles* and a *mask*. If neither of *triangulation* or *triangles* are given, the triangulation is calculated on the fly. Parameters ---------- triangulation : `.Triangulation` An already created triangular grid. x, y, triangles, mask Parameters defining the triangular grid. See `.Triangulation`. This is mutually exclusive with specifying *triangulation*. other_parameters All other args and kwargs are forwarded to `~.Axes.plot`. Returns ------- lines : `~matplotlib.lines.Line2D` The drawn triangles edges. markers : `~matplotlib.lines.Line2D` The drawn marker nodes. rN) linestylemarkercolorrNonezorder)rr )Nr r )axisrlabel)matplotlib.axesrget_from_args_and_kwargsxyedgesaxes_base_process_plot_formatcbooknormalize_kwargsmlinesLine2Dzip setdefaultgetnpinsertnanplotravelpop)axargskwargs matplotlibtrirrrfmtrrrkwkeyvalkw_lines tri_lines_x tri_lines_y tri_lines kw_markers tri_markerss ]/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/matplotlib/tri/_triplot.pytriplotr5s>%>>OOCv55#%%%qA$q'rC)44II#NIvu    6B8"FE24$S ? MM#s #$;I &&1%H //ii%!RVV!< ii%!RVV!< BGGK--/1B1B1D(&( BGGB/h/ \F VJNN7D! ,,bgga1j1  { ""bggb"3 3 { "") numpyrmatplotlib.tri._triangulationrmatplotlib.cbookrmatplotlib.lineslinesrr5r6r4r=s7 !O#r6