.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "examples/navchart/plot_simple_navchart.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_examples_navchart_plot_simple_navchart.py: Simple Navigation Chart ======================= A simple navigation chart. The point in the top-right corner represents the ideal, where an application achieves the best performance across all platforms of interest using a single source code. The point in the top-left corner represents applications that achieve the best performance across all platforms of interest, but do so without reusing any code. Any point along the x-axis represents an application which is unportable (i.e. there is at least one platform of interest where it does not run). Real-life applications are expected to lie somewhere between these extremes. A navigation chart is a useful way to visualize the trade-offs between performance (portability) and programmer productivity, assisting in navigation of the P3 space and reasoning about how to reach development goals. .. GENERATED FROM PYTHON SOURCE LINES 27-38 .. image-sg:: /examples/navchart/images/sphx_glr_plot_simple_navchart_001.png :alt: plot simple navchart :srcset: /examples/navchart/images/sphx_glr_plot_simple_navchart_001.png :class: sphx-glr-single-img .. code-block:: Python # Initialize synthetic data # (not shown, but available in script download) # Read performance portability and code divergence data into pandas DataFrame pp = pd.DataFrame(pp_data) cd = pd.DataFrame(cd_data) # Generate a navigation chart navchart = p3analysis.plot.navchart(pp, cd, size=(5, 5)) navchart.save("navchart.png") .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.140 seconds) .. _sphx_glr_download_examples_navchart_plot_simple_navchart.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_simple_navchart.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_simple_navchart.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: plot_simple_navchart.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_