plotting_scatter_square.py — Anaconda Enterprise 4.4 documentation

Anaconda Enterprise: Documentation

# plotting_scatter_square.py

    from bokeh.plotting import figure, output_file, show

    # output to static HTML file
    output_file("square.html")

    p = figure(plot_width=400, plot_height=400)

    # add a square renderer with a size, color, and alpha
    p.square([1, 2, 3, 4, 5], [6, 7, 2, 4, 5], size=20, color="olive", alpha=0.5)

    # show the results
    show(p)