コード例 #1
0
def test_multiple_axes():
    return pbp.Plot([
        pbp.Plot(a),
        pbp.Plot(b, pbp.YAxis(pbp.Title(text="B Axis"), opposite=True)),
        pbp.Plot(c,
                 pbp.YAxis(pbp.Title(text="C Axis"), opposite=True, offset=40))
    ])
コード例 #2
0
def test_separate_subplots():
    return pbp.Plot([
        pbp.Plot(a, pbp.Line(), pbp.YAxis(pbp.Title(text="a only"),
                                          height=200)),
        pbp.Plot(
            b, pbp.Column(),
            pbp.YAxis(pbp.Title(text="b only"), top=250, height=100, offset=0))
    ],
                    pbp.Tooltip(value_decimals=2),
                    height="400px")
コード例 #3
0
def _create_dynamic_content():
    d = pd.date_range("2012-01-01", periods=10)
    s = pd.Series(range(len(d)), d)

    return pbp.Plot(s, width="100%", height="100%")
コード例 #4
0
ファイル: test_plot.py プロジェクト: ceallen/PyBloqs
def test_cumulative_difference():
    return pbp.Plot(df_cr,
                    pbp.PlotOptions(pbp.Series(compare="percent")),
                    pbp.TooltipPct(),
                    pbp.YAxisPct())
コード例 #5
0
ファイル: test_plot.py プロジェクト: ceallen/PyBloqs
def test_bar_chart_composite():
    return pbp.Plot([pbp.Plot(a, pbp.Column(bar_grouping)),
                     pbp.Plot(b, pbp.Column(bar_grouping))])
コード例 #6
0
ファイル: test_plot.py プロジェクト: ceallen/PyBloqs
def test_bar_chart_stacked():
    return pbp.Plot(df, pbp.Column(bar_grouping, stacking="normal"))
コード例 #7
0
ファイル: test_plot.py プロジェクト: ceallen/PyBloqs
def test_bar_chart():
    return pbp.Plot(df, pbp.Column(bar_grouping))
コード例 #8
0
ファイル: test_plot.py プロジェクト: ceallen/PyBloqs
def test_scatter_plot():
    return pbp.Plot(df.values[:, :2], pbp.Scatter(pbp.Marker(enabled=True)), pbp.Chart(zoom_type="xy"))
コード例 #9
0
ファイル: test_plot.py プロジェクト: ceallen/PyBloqs
def test_dataframe():
    return pbp.Plot(df)
コード例 #10
0
ファイル: test_plot.py プロジェクト: ceallen/PyBloqs
def test_series():
    return pbp.Plot(a)
コード例 #11
0
ファイル: test_plot.py プロジェクト: tobyatgithub/PyBloqs
def test_widepanel_plot():
    return pbp.Plot(wp, pbp.Areasplinerange)