Skip to content

Commit

Permalink
minor changes in documentation and docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
atharva-2001 committed Jul 19, 2021
1 parent a2a60d9 commit f624afc
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 50 deletions.
79 changes: 44 additions & 35 deletions docs/io/visualization/convergence_plot.ipynb

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion tardis/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ def run_tardis(
show_cplots : bool, default True, optional
option to enable tardis convergence plots
**kwargs : dict, optional
optional keyword arguments supported by :obj:`tardis.visualization.tools.convergence_plot.ConvergencePlots`
optional keyword arguments including those
supported by :obj:`tardis.visualization.tools.convergence_plot.ConvergencePlots`
Returns
Expand Down
28 changes: 14 additions & 14 deletions tardis/visualization/tools/convergence_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ def transition_colors(length, name="jet"):
----------
length : int
The length of the colorscale.
name : string, optional
Name of the colorscale. Defaults to "jet".
name : string, default: 'jet', optional
Name of the colorscale.
Returns
-------
Expand Down Expand Up @@ -57,14 +57,15 @@ class ConvergencePlots(object):
String defining cmap for luminosity and inner boundary temperature plot.
The list can be a list of colors in rgb, hex or css-names format as well.
export_cplots : bool, default: False, optional
If True, plots are displayed again using the ``notebook_connected`` renderer. This helps
display the plots in the documentation or in platforms like nbviewer.
If True, plots are displayed again using the `notebook_connected` renderer. This helps
to display the plots in the documentation or in platforms like nbviewer.
Notes
-----
When overriding plots using the ``plasma_plot_config`` and the ``t_inner_luminosities_config`` dictionaries,
data related properties are applied equally accross all traces.
The dictionary should have a structure like that of ``plotly.graph_objs.FigureWidget.to_dict()``,
When overriding plot's configuration using the `plasma_plot_config` and the
`t_inner_luminosities_config` dictionaries, data related properties are
applied equally accross all traces.
The dictionary should have a structure like that of `plotly.graph_objs.FigureWidget.to_dict()`,
for more information please see https://plotly.com/python/figure-structure/
"""

Expand Down Expand Up @@ -292,8 +293,8 @@ def build(self, display_plot=True):
Parameters
----------
display_plot : bool, optional
Displays empty plots. Defaults to True.
display_plot : bool, default: True, optional
Displays empty plots.
"""
self.create_plasma_plot()
self.create_t_inner_luminosities_plot()
Expand Down Expand Up @@ -395,12 +396,11 @@ def update(self, export_cplots=False, last=False):
Parameters
----------
export_cplots : bool
Displays the convergence plots again using plotly's ``notebook_connected`` renderer.
This helps display the plots in notebooks when shared on platforms like nbviewer.
export_cplots : bool, default: False, optional
Displays the convergence plots again using plotly's `notebook_connected` renderer.
This helps to display the plots in notebooks when shared on platforms like nbviewer.
Please see https://plotly.com/python/renderers/ for more information.
Defaults to False.
last : bool
last : bool, default: False, optional
True if it's last iteration.
"""
if self.iterable_data != {}:
Expand Down

0 comments on commit f624afc

Please sign in to comment.