.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "generated_examples\ifrs17sim\plot_csm_waterfall.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note Click :ref:`here ` to download the full example code .. rst-class:: sphx-glr-example-title .. _sphx_glr_generated_examples_ifrs17sim_plot_csm_waterfall.py: ifrs17sim: CSM waterfall chart ==================================== The script draws a CSM waterfall chart. The script is broken down into pieces of code, and explained in a Jupyter notebook, :doc:`/projects/ifrs17sim_csm_waterfall`. The live version of the notebook is available online. *Launch this notebook online!* |binder ifrs17sim_csm_waterfall| .. include:: /binderlinks.rst :start-after: Begin binder ifrs17sim_csm_waterfall :end-before: End binder ifrs17sim_csm_waterfall .. seealso:: * The :mod:`~ifrs17sim` library .. GENERATED FROM PYTHON SOURCE LINES 20-38 .. image-sg:: /generated_examples/ifrs17sim/images/sphx_glr_plot_csm_waterfall_001.png :alt: plot csm waterfall :srcset: /generated_examples/ifrs17sim/images/sphx_glr_plot_csm_waterfall_001.png :class: sphx-glr-single-img .. code-block:: default import modelx as mx from draw_charts import draw_waterfall, get_waterfalldata import seaborn as sns sns.set_theme(style="darkgrid") model = mx.read_model("model") proj = model.OuterProj[1] csmrf = get_waterfalldata( proj, items=['CSM', 'IntAccrCSM', 'AdjCSM_FlufCF', 'TransServices'], length=15, reverseitems=['TransServices']) draw_waterfall(csmrf) .. rst-class:: sphx-glr-timing **Total running time of the script:** ( 0 minutes 1.133 seconds) .. _sphx_glr_download_generated_examples_ifrs17sim_plot_csm_waterfall.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_csm_waterfall.py ` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_csm_waterfall.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_