MCPcopy
hub / github.com/ContextLab/hypertools / plot

Function plot

hypertools/plot/plot.py:17–598  ·  view source on GitHub ↗

Plots dimensionality reduced data and parses plot arguments Parameters ---------- x : Numpy array, DataFrame, String, Geo or mixed list Data for the plot. The form should be samples (rows) by features (cols). fmt : str or list of strings A list of format string

(
    x,
    fmt="-",
    marker=None,
    markers=None,
    linestyle=None,
    linestyles=None,
    color=None,
    colors=None,
    palette="hls",
    group=None,
    hue=None,
    labels=None,
    legend=None,
    title=None,
    size=None,
    elev=10,
    azim=-60,
    ndims=3,
    model=None,
    model_params=None,
    reduce="IncrementalPCA",
    cluster=None,
    align=None,
    normalize=None,
    n_clusters=None,
    save_path=None,
    animate=False,
    duration=30,
    tail_duration=2,
    rotations=2,
    zoom=1,
    chemtrails=False,
    precog=False,
    bullettime=False,
    frame_rate=50,
    interactive=False,
    explore=False,
    mpl_backend="auto",
    show=True,
    transform=None,
    vectorizer="CountVectorizer",
    semantic="LatentDirichletAllocation",
    corpus="wiki",
    ax=None,
    frame_kwargs=None,
)

Source from the content-addressed store, hash-verified

15
16@manage_backend
17def plot(
18 x,
19 fmt="-",
20 marker=None,
21 markers=None,
22 linestyle=None,
23 linestyles=None,
24 color=None,
25 colors=None,
26 palette="hls",
27 group=None,
28 hue=None,
29 labels=None,
30 legend=None,
31 title=None,
32 size=None,
33 elev=10,
34 azim=-60,
35 ndims=3,
36 model=None,
37 model_params=None,
38 reduce="IncrementalPCA",
39 cluster=None,
40 align=None,
41 normalize=None,
42 n_clusters=None,
43 save_path=None,
44 animate=False,
45 duration=30,
46 tail_duration=2,
47 rotations=2,
48 zoom=1,
49 chemtrails=False,
50 precog=False,
51 bullettime=False,
52 frame_rate=50,
53 interactive=False,
54 explore=False,
55 mpl_backend="auto",
56 show=True,
57 transform=None,
58 vectorizer="CountVectorizer",
59 semantic="LatentDirichletAllocation",
60 corpus="wiki",
61 ax=None,
62 frame_kwargs=None,
63):
64 """
65 Plots dimensionality reduced data and parses plot arguments
66
67 Parameters
68 ----------
69 x : Numpy array, DataFrame, String, Geo or mixed list
70 Data for the plot. The form should be samples (rows) by features (cols).
71
72 fmt : str or list of strings
73 A list of format strings. All matplotlib format strings are supported.
74

Callers 10

test_normalize_geoFunction · 0.90
test_reduce_geoFunction · 0.90
test_geoFunction · 0.90
test_missing_dataFunction · 0.90
test_geo.pyFile · 0.90
test_geo_text_dataFunction · 0.90
test_describe_geoFunction · 0.90
loadFunction · 0.90

Calls 15

format_dataFunction · 0.90
analyzeFunction · 0.90
default_paramsFunction · 0.85
reshape_dataFunction · 0.85
vals2binsFunction · 0.85
group_by_categoryFunction · 0.85
is_lineFunction · 0.85
patch_linesFunction · 0.85
interp_array_listFunction · 0.85
centerFunction · 0.85
scaleFunction · 0.85
parse_kwargsFunction · 0.85

Tested by 8

test_normalize_geoFunction · 0.72
test_reduce_geoFunction · 0.72
test_geoFunction · 0.72
test_missing_dataFunction · 0.72
test_geo_text_dataFunction · 0.72
test_describe_geoFunction · 0.72