<jupyter_start><jupyter_text>Convergence Plots The Convergence Plots consist of two Plotly FigureWidget Subplots, the `plasma_plot` and the `t_inner_luminosities_plot`. The plots are stored in the `convergence_plots` attribute of the simulation object `sim` and can be accessed using `sim.convergence_plots.plasma_plot` and `sim.convergence_plots.t_inner_luminosities_plot`.The Convergence Plots are shown by default when you running TARDIS because `show_convergence_plots` parameter of the `run_tardis()` function is set to `True`. If you don't want to do this, set it to `False`.  Note    You only need to include `export_convergence_plots=True` in the `run_tardis` function when you want to share the notebook. The function shows the plot using the Plotly `notebook_connected` renderer, which helps display the plot online. You don't need to do it when running the notebook locally.<jupyter_code>from tardis import run_tardis
from tardis.io.atom_data.util import download_atom_data

# We download the atomic data needed to run the simulation
download_atom_data('kurucz_cd23_chianti_H_He')

# We run a simulation
sim = run_tardis('tardis_example.yml', export_convergence_plots=True)<jupyter_output><empty_output><jupyter_text>Displaying Convergence PlotsYou can also call the plots outside of `run_tardis` function.<jupyter_code>sim.convergence_plots.plasma_plot.show(renderer="notebook_connected")
sim.convergence_plots.t_inner_luminosities_plot.show(renderer="notebook_connected")<jupyter_output><empty_output><jupyter_text>Changing Line ColorsThe default line-colors of the plasma plots can be changed by passing the name of the cmap in the `plasma_cmap` option. ```pysim = run_tardis("tardis_example.yml",plasma_cmap= "viridis")```Alongwith the cmap name, one can also provide a list of colors in rgb, hex or css-names format in the `t_inner_luminosities_colors` option to change the default colors of the luminosity and inner boundary temperature plots. ```py hex colors example listcolors = [    '8c564b',   chestnut brown    'e377c2',   raspberry yogurt pink    '7f7f7f',   middle gray    'bcbd22',   curry yellow-green    '17becf'    blue-teal] rgb colors example listcolors = ['rgb(31, 119, 180)',          'rgb(255, 127, 14)',          'rgb(44, 160, 44)',           'rgb(214, 39, 40)',          'rgb(148, 103, 189)',]           css colorscolors = ["indigo","lightseagreen", "midnightblue",  "pink", "teal"]```For more css-names please see [this](https://www.w3schools.com/colors/colors_names.asp).<jupyter_code>sim = run_tardis(
    "tardis_example.yml",
    plasma_cmap= "viridis", 
    t_inner_luminosities_colors = ['rgb(102, 197, 204)',
                         'rgb(246, 207, 113)',
                         'rgb(248, 156, 116)',
                         'rgb(220, 176, 242)',
                         'rgb(135, 197, 95)'],
    export_convergence_plots = True
)<jupyter_output><empty_output><jupyter_text>Changing the default layout You can override the default layout by passing dictionaries as arguments in `t_inner_luminosities_config` and `plasma_plot_config`  in the `run_tardis` function. The dictionaries should have the format of `plotly.graph_objects.FigureWidget().to_dict()`. For more information on the structure of the dictionary, please see the [plotly documentation](https://plotly.com/python/figure-structure/). For sake of simplicity, all properties in the data dictionary are applied equally across all traces, meaning traces-specific properties can't be changed from the function. They however be changed after the simulation has finished, for example:```pysim.convergence_plots.t_inner_luminosities_plot.data[0].line.dash = "dashdot"```You can investigate more about the layout/data of any plots by calling `sim.convergence_plots.t_inner_luminosities_plot.layout` or `sim.convergence_plots.t_inner_luminosities_plot.data`. Here is an example:<jupyter_code>sim = run_tardis(
    "tardis_example.yml",
    plasma_plot_config={
        "layout": {
            "template": "ggplot2",
            "xaxis1": {
                "nticks": 20
            },
            "xaxis2": {
                "title": {"text": "new changed title of x axis2"},
                "nticks": 20
            },
        },
    },
    t_inner_luminosities_config={
        "data": {
            "line":{
                "dash":"dot"
            },
            "mode": "lines+markers",
        },
        "layout": {
            "template": "plotly_dark",
            "hovermode":"x",
            "xaxis":{"showgrid":False},
            "xaxis2":{"showgrid":False},
            "xaxis3":{"showgrid":False},
            
        },
    },
    export_convergence_plots = True)
from tardis.visualization import ConvergencePlots
help(ConvergencePlots)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1005644992682417, 'fraction_numerical': 0.023416265941877484, 'mean_word_length': 3.6856023506366307, 'pattern_counts': {'":': 21, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 2, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '4', 'dir': 'jupyter-structured-clean-dedup', 'id': '203560', 'license': 'BSD-3-Clause', 'n_tokens_mistral': 1576, 'n_tokens_neox': 1408, 'n_words': 422, 'path': 'docs/io/visualization/convergence_plot.ipynb', 'repo_name': 'ahmedo42/tardis', 'size': '4783'}