Skip to content

Commit

Permalink
Mention assignment of colors, link to Kepler light curve, and be more…
Browse files Browse the repository at this point in the history
… explicit about label grouping
  • Loading branch information
astrofrog committed Jun 17, 2019
1 parent b7cd3fc commit 98bf0ed
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 5 deletions.
8 changes: 4 additions & 4 deletions docs/getting_started.ipynb

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/layers.ipynb
Expand Up @@ -229,7 +229,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"As for markers, the returned ``line`` object can be used to update properties of the line, e.g.:"
"Note that by using the same ``label`` as for the markers and error bars, this layer combined with the markers will appear as a single entry in the figure legend. As for markers, the returned ``line`` object can be used to update properties of the line, e.g.:"
]
},
{
Expand Down
17 changes: 17 additions & 0 deletions docs/saving.rst
Expand Up @@ -39,3 +39,20 @@ all formats that are supported by the Matplotlib package.
If you want to customize the appearance of the plot, such as the font type you
can make use of the `Matplotlib rcparams
<https://matplotlib.org/users/customizing.html#matplotlib-rcparams>`_ settings.

Colors
------

When contructing the figure, you can assign colors to specific layers (see the
layer documentation for more details). However, you can also not assign
colors, and instead let them be assigned automatically when saving the figure.
In this case, the colors will be chosen from the `Colorbrewer2 Paired
<http://colorbrewer2.org/#type=qualitative&scheme=Paired&n=3>`_ colormap, which
is colorblind safe.

If you already assigned colors to layers, but you want to override these and
replace them with colors taken from the above colormap, you can use the
``override_style=True`` option for the
:meth:`~aas_timeseries.InteractiveTimeSeriesFigure.save_vega_json`,
:meth:`~aas_timeseries.InteractiveTimeSeriesFigure.export_interactive_bundle`,
and :meth:`~aas_timeseries.InteractiveTimeSeriesFigure.save_static` methods.

0 comments on commit 98bf0ed

Please sign in to comment.