y = x**2 sizes = np.linspace(10, 20, N) source = ColumnDataSource(dict(x=x, y=y, sizes=sizes)) plot = Plot(title=None, plot_width=300, plot_height=300, h_symmetry=False, v_symmetry=False, min_border=0, toolbar_location=None) glyph = CircleCross(x="x", y="y", size="sizes", line_color="#fb8072", fill_color=None, line_width=2) plot.add_glyph(source, glyph) xaxis = LinearAxis() plot.add_layout(xaxis, 'below') yaxis = LinearAxis() plot.add_layout(yaxis, 'left') plot.add_layout(Grid(dimension=0, ticker=xaxis.ticker)) plot.add_layout(Grid(dimension=1, ticker=yaxis.ticker)) curdoc().add_root(plot)
></img> </div> <div> <span style="font-size: 17px; font-weight: bold;">@desc</span> <span style="font-size: 15px; color: #966;">[$index]</span> </div> </div> """ p = figure(x_range=(-2500000, -1000000), y_range=(7500000, 15000000),plot_width=1900, plot_height=900,\ x_axis_type="mercator", y_axis_type="mercator",tools='pan,box_zoom, reset,\ wheel_zoom,hover',tooltips= TOOLTIPS) p.add_tile(tile_providers) sw = CircleCross(x='x',y='y', size=10, line_color="#355C7D", fill_color=None, line_width=2) p.add_glyph(source_sw,sw) nw = CircleCross(x='x',y= 'y', size=10, line_color="#008080", fill_color=None, line_width=2) p.add_glyph(source_nw,nw) n= CircleCross(x='x',y='y', size=10, line_color="#F8B195",fill_color=None, line_width=2) p.add_glyph(source_n, n) ne = CircleCross(x='x',y='y' ,size=10, line_color="#C06C84", fill_color=None, line_width=2) p.add_glyph(source_ne, ne) se = CircleCross(x='x',y='y', size=10, line_color="#F67280",fill_color=None, line_width=2) p.add_glyph(source_se,se) l = layout(row(p) curdoc().add_root(l)