.. _example_datasets_plot_sdss_galaxy_colors: SDSS Galaxy Colors ------------------ The function :func:`fetch_sdss_galaxy_colors` used below actually queries the SDSS CASjobs server for the colors of the 50,000 galaxies. Below we extract the :math:`u - g` and :math:`g - r` colors for 5000 stars, and scatter-plot the results .. image:: ../images/datasets/plot_sdss_galaxy_colors_1.png :scale: 100 :align: center .. raw:: html
**Code output:** .. raw:: html
.. literalinclude:: plot_sdss_galaxy_colors.txt .. raw:: html
**Python source code:** .. raw:: html
.. literalinclude:: plot_sdss_galaxy_colors.py :lines: 9- .. raw:: html
:download:`[download source: plot_sdss_galaxy_colors.py] ` .. raw:: html