def test_Triangle() -> None: marker = Triangle() check_marker_properties(marker) check_line_properties(marker) check_fill_properties(marker) check_hatch_properties(marker) check_properties_existence(marker, MARKER, LINE, FILL, HATCH, GLYPH, ["marker"])
def add_trips_to_plot(p, trips): """Add trip glyphs to plot `p`.""" data_source = ColumnDataSource( pd.concat( [ trips, pd.DataFrame({ "marker_size": 8 * trips["n_passengers"], "marker_angle": marker_angle(trips), }), ], axis=1, )) p.add_glyph( data_source, Segment( x0="pick_lon", y0="pick_lat", x1="drop_lon", y1="drop_lat", line_color="black", line_width=1, ), ) p.add_glyph( data_source, Circle( x="pick_lon", y="pick_lat", size="marker_size", fill_color="blue", fill_alpha=0.6, ), ) p.add_glyph( data_source, Triangle( x="drop_lon", y="drop_lat", size="marker_size", angle="marker_angle", fill_color="red", fill_alpha=0.6, ), )
def test_Triangle(): marker = Triangle() yield check_marker, marker yield check_fill, marker yield check_line, marker yield check_props, marker, MARKER, FILL, LINE
def test_Triangle() -> None: marker = Triangle() check_marker_properties(marker) check_fill_properties(marker) check_line_properties(marker) check_properties_existence(marker, MARKER, FILL, LINE, GLYPH)
def test_Triangle(): marker = Triangle() yield check_marker_properties, marker yield check_fill_properties, marker yield check_line_properties, marker yield check_properties_existence, marker, MARKER, FILL, LINE, GLYPH
y="y", size="sizes", line_color="#7FC97F", fill_color=None, line_width=2)), ("diamond", Diamond(x="x", y="y", size="sizes", line_color="#1C9099", line_width=2)), ("diamond_cross", DiamondCross(x="x", y="y", size="sizes", line_color="#386CB0", fill_color=None, line_width=2)), ("triangle", Triangle(x="x", y="y", size="sizes", line_color="#99D594", line_width=2)), ("inverted_triangle", InvertedTriangle(x="x", y="y", size="sizes", line_color="#DE2D26", line_width=2)), ("cross", Cross(x="x", y="y", size="sizes", line_color="#E6550D", fill_color=None, line_width=2)), ("asterisk", Asterisk(x="x",