MCPcopy Index your code
hub / github.com/plotly/plotly.py / add_carpet

Method add_carpet

plotly/graph_objs/_figure.py:2729–3014  ·  view source on GitHub ↗

Add a new Carpet trace The data describing carpet axis layout is set in `y` and (optionally) also `x`. If only `y` is present, `x` the plot is interpreted as a cheater plot and is filled in using the `y` values. `x` and `y` may either be 2D arrays matching w

(
        self,
        a=None,
        a0=None,
        aaxis=None,
        asrc=None,
        b=None,
        b0=None,
        baxis=None,
        bsrc=None,
        carpet=None,
        cheaterslope=None,
        color=None,
        customdata=None,
        customdatasrc=None,
        da=None,
        db=None,
        font=None,
        ids=None,
        idssrc=None,
        legend=None,
        legendgrouptitle=None,
        legendrank=None,
        legendwidth=None,
        meta=None,
        metasrc=None,
        name=None,
        opacity=None,
        stream=None,
        uid=None,
        uirevision=None,
        visible=None,
        x=None,
        xaxis=None,
        xsrc=None,
        y=None,
        yaxis=None,
        ysrc=None,
        zorder=None,
        row=None,
        col=None,
        secondary_y=None,
        **kwargs,
    )

Source from the content-addressed store, hash-verified

2727 return self.add_trace(new_trace, row=row, col=col, secondary_y=secondary_y)
2728
2729 def add_carpet(
2730 self,
2731 a=None,
2732 a0=None,
2733 aaxis=None,
2734 asrc=None,
2735 b=None,
2736 b0=None,
2737 baxis=None,
2738 bsrc=None,
2739 carpet=None,
2740 cheaterslope=None,
2741 color=None,
2742 customdata=None,
2743 customdatasrc=None,
2744 da=None,
2745 db=None,
2746 font=None,
2747 ids=None,
2748 idssrc=None,
2749 legend=None,
2750 legendgrouptitle=None,
2751 legendrank=None,
2752 legendwidth=None,
2753 meta=None,
2754 metasrc=None,
2755 name=None,
2756 opacity=None,
2757 stream=None,
2758 uid=None,
2759 uirevision=None,
2760 visible=None,
2761 x=None,
2762 xaxis=None,
2763 xsrc=None,
2764 y=None,
2765 yaxis=None,
2766 ysrc=None,
2767 zorder=None,
2768 row=None,
2769 col=None,
2770 secondary_y=None,
2771 **kwargs,
2772 ) -> "Figure":
2773 """
2774 Add a new Carpet trace
2775
2776 The data describing carpet axis layout is set in `y` and
2777 (optionally) also `x`. If only `y` is present, `x` the plot is
2778 interpreted as a cheater plot and is filled in using the `y`
2779 values. `x` and `y` may either be 2D arrays matching with each
2780 dimension matching that of `a` and `b`, or they may be 1D
2781 arrays with total length equal to that of `a` and `b`.
2782
2783 Parameters
2784 ----------
2785 a
2786 An array containing values of the first parameter value

Callers

nothing calls this directly

Calls 2

add_traceMethod · 0.95
CarpetClass · 0.90

Tested by

no test coverage detected