Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions notebooks/2CUM.ipynb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 7 additions & 3 deletions notebooks/2CXM.ipynb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 7 additions & 3 deletions notebooks/DSC_pars.ipynb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 7 additions & 3 deletions notebooks/ExtendedToftsModel.ipynb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 7 additions & 3 deletions notebooks/GeorgiouAIF.ipynb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 7 additions & 3 deletions notebooks/ParkerAIF.ipynb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 7 additions & 3 deletions notebooks/PatlakModel.ipynb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 7 additions & 3 deletions notebooks/PreclinicalAIF.ipynb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 7 additions & 3 deletions notebooks/SItoC.ipynb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 7 additions & 3 deletions notebooks/ToftsModel.ipynb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions notebooks/VariableFlipAngle.ipynb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 16 additions & 2 deletions notebooks/plotting_results_nb.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,25 @@ def make_catplot(x, y, data, ylabel, **plotopts):
g.set_ylabels(ylabel, clear_inner=False);
g.set_xticklabels(rotation=45, fontsize=16, ha='right', rotation_mode='anchor')
g._legend.set_title('ContributionID')
# Add vertical add midpoints between each major tick
# Add vertical grid lines at midpoints between each major tick
for ax in g.axes.flatten():
ax.xaxis.set_minor_locator(AutoMinorLocator(2))
ax.grid(which="minor", axis='x', linestyle=":")
# Hide the minor ticks (distracting) by making it white
ax.tick_params(axis='x', which='minor', colors='white')
plt.show() # Could also do `return g` for more flexibility



def make_contribution_label(row):
"""Build a display label combining author and fitting method.

For contributions where a fitting method is specified in the metadata,
this appends the fitting method to the author name so that different
fitting approaches from the same author are displayed separately in plots.

:param row: a pandas Series (one row of the dataframe)
:return: string label, e.g. 'OGJ_OsloU_Norway (LLSQ)'
"""
if 'fitting_method' in row and row['fitting_method']:
return f"{row['author']} ({row['fitting_method']})"
return row['author']
Loading