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

Function create_scatterplotmatrix

plotly/figure_factory/_scatterplot.py:836–1135  ·  view source on GitHub ↗

Returns data for a scatterplot matrix; **deprecated**, use instead the plotly.graph_objects trace :class:`plotly.graph_objects.Splom`. :param (array) df: array of the data with column headers :param (str) index: name of the index column in data array :param (list|tuple)

(
    df,
    index=None,
    endpts=None,
    diag="scatter",
    height=500,
    width=500,
    size=6,
    title="Scatterplot Matrix",
    colormap=None,
    colormap_type="cat",
    dataframe=None,
    headers=None,
    index_vals=None,
    **kwargs,
)

Source from the content-addressed store, hash-verified

834
835
836def create_scatterplotmatrix(
837 df,
838 index=None,
839 endpts=None,
840 diag="scatter",
841 height=500,
842 width=500,
843 size=6,
844 title="Scatterplot Matrix",
845 colormap=None,
846 colormap_type="cat",
847 dataframe=None,
848 headers=None,
849 index_vals=None,
850 **kwargs,
851):
852 """
853 Returns data for a scatterplot matrix;
854 **deprecated**,
855 use instead the plotly.graph_objects trace
856 :class:`plotly.graph_objects.Splom`.
857
858 :param (array) df: array of the data with column headers
859 :param (str) index: name of the index column in data array
860 :param (list|tuple) endpts: takes an increasing sequece of numbers
861 that defines intervals on the real line. They are used to group
862 the entries in an index of numbers into their corresponding
863 interval and therefore can be treated as categorical data
864 :param (str) diag: sets the chart type for the main diagonal plots.
865 The options are 'scatter', 'histogram' and 'box'.
866 :param (int|float) height: sets the height of the chart
867 :param (int|float) width: sets the width of the chart
868 :param (float) size: sets the marker size (in px)
869 :param (str) title: the title label of the scatterplot matrix
870 :param (str|tuple|list|dict) colormap: either a plotly scale name,
871 an rgb or hex color, a color tuple, a list of colors or a
872 dictionary. An rgb color is of the form 'rgb(x, y, z)' where
873 x, y and z belong to the interval [0, 255] and a color tuple is a
874 tuple of the form (a, b, c) where a, b and c belong to [0, 1].
875 If colormap is a list, it must contain valid color types as its
876 members.
877 If colormap is a dictionary, all the string entries in
878 the index column must be a key in colormap. In this case, the
879 colormap_type is forced to 'cat' or categorical
880 :param (str) colormap_type: determines how colormap is interpreted.
881 Valid choices are 'seq' (sequential) and 'cat' (categorical). If
882 'seq' is selected, only the first two colors in colormap will be
883 considered (when colormap is a list) and the index values will be
884 linearly interpolated between those two colors. This option is
885 forced if all index values are numeric.
886 If 'cat' is selected, a color from colormap will be assigned to
887 each category from index, including the intervals if endpts is
888 being used
889 :param (dict) **kwargs: a dictionary of scatterplot arguments
890 The only forbidden parameters are 'size', 'color' and
891 'colorscale' in 'marker'
892
893 Example 1: Vanilla Scatterplot Matrix

Callers 1

Calls 7

scatterplotFunction · 0.85
scatterplot_dictFunction · 0.85
scatterplot_themeFunction · 0.85
tolistMethod · 0.80
keysMethod · 0.45
formatMethod · 0.45

Tested by

no test coverage detected