Skip to content

Commit

Permalink
Add a conclusion to the app efficiency example
Browse files Browse the repository at this point in the history
- Adds a "Further Analysis" section linking to more complex examples.
- Modifies the sphinx-gallery configuration to support mini-galleries.

Signed-off-by: John Pennycook <[email protected]>
  • Loading branch information
Pennycook committed Jul 24, 2024
1 parent afe550a commit 5c1d53e
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions examples/metrics/application_efficiency.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,3 +305,22 @@
filtered = effs[(effs["application"]=="MyApp") & (effs["date"]==2024)]
filtered.plot(kind="bar", x="platform", y="app eff", xlabel="Platform", ylabel="Application Efficiency", legend=False)
plt.savefig("application_efficiency_bars_2024.png")

# %%
# Further Analysis
# ----------------
#
# Computing application efficiency is often simply the first step of a
# more detailed P3 analysis.
#
# The examples below show how we can use the visualization capabilities
# of the P3 Analysis Library to compare the efficiency of different
# applications running across the same platform set, or to gain insight
# into how an application's efficiency relates to the code it uses on each
# platform.
#
# .. minigallery::
# :add-heading: Examples
#
# ../../examples/cascade/plot_simple_cascade.py
# ../../examples/navchart/plot_simple_navchart.py

0 comments on commit 5c1d53e

Please sign in to comment.