.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_tutorials/hrds/hrd_plotting.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code. .. rst-class:: sphx-glr-example-title .. _sphx_glr_auto_tutorials_hrds_hrd_plotting.py: ################# HRD Customisation ################# Combining Multiple HRDs ======================= By default, plotting a :class:`~ATK.Models.DataSet` that contains multiple :class:`~ATK.Models.HRD` objects generates multiple figures. To instead combine all sources into a single figure, pass ``split=False`` to :meth:`~ATK.Models.DataSet.plot` or :meth:`~ATK.Models.DataSet.open`: .. GENERATED FROM PYTHON SOURCE LINES 9-15 .. code-block:: Python from ATK import query hrd_query = query("hrd", targets=[587316166180416640, 6050296829033196032], path="example_hrd_2.fits.gz") hrd_query.open(split=False) .. raw:: html
Bokeh Figure


.. GENERATED FROM PYTHON SOURCE LINES 31-40 .. note:: The above is an example of a multi-target query. For more information, see the :doc:`next section <../multiple_targets/multi_target_query>`. | Reducing the Background ======================= Due to the number of background data points, plotted :class:`~ATK.Models.HRD` objects can be expensive in terms of browser performance. This can be avoided by passing ``background`` as a ``float`` between ``0`` and ``1`` (default = ``1``): .. GENERATED FROM PYTHON SOURCE LINES 41-45 .. code-block:: Python hrd_query = query("hrd", targets=587316166180416640, path="example_hrd.fits.gz") hrd_query.open(background=0.25) .. raw:: html
Bokeh Figure


.. GENERATED FROM PYTHON SOURCE LINES 55-60 | | | .. rubric:: Download this Tutorial .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 3.788 seconds) .. _sphx_glr_download_auto_tutorials_hrds_hrd_plotting.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: hrd_plotting.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: hrd_plotting.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: hrd_plotting.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_