def get_scatter_plot(): boston = datasets.load_boston() prices = boston['target'] lower_status = boston['data'][:,-1] x, y = get_data_sources(x=lower_status, y=prices) x_mapper, y_mapper = get_mappers(x, y) scatter_plot = ScatterPlot( index=x, value=y, index_mapper=x_mapper, value_mapper=y_mapper, marker='circle', **PLOT_DEFAULTS ) scatter_plot.line_width = 1.0 add_axes(scatter_plot, x_label='Percent lower status in the population', y_label='Median house prices') return scatter_plot