# Scatter with size and color
(data)
| 160 | |
| 161 | @_print_source |
| 162 | def _scatter_example_3(data): |
| 163 | """# Scatter with size and color""" |
| 164 | # Plot the data |
| 165 | ch = chartify.Chart(blank_labels=True, x_axis_type="datetime") |
| 166 | ch.plot.scatter( |
| 167 | data_frame=data, |
| 168 | x_column="date", |
| 169 | y_column="unit_price", |
| 170 | size_column="quantity", |
| 171 | color_column="fruit", |
| 172 | ) |
| 173 | ch.set_title("Scatterplot") |
| 174 | ch.set_subtitle("Optional 'color_column' argument for grouping by color.") |
| 175 | ch.show(_OUTPUT_FORMAT) |
| 176 | |
| 177 | |
| 178 | plot_scatter.__doc__ = _core.plot.PlotNumericXY.scatter.__doc__ |
no test coverage detected