Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tiny notebook bugfixes #353

Merged
merged 2 commits into from
Nov 19, 2024
Merged
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
2 changes: 2 additions & 0 deletions ImageD11/nbGui/S3DXRD/tomo_2_map.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,8 @@
"\n",
"fig, ax = plt.subplots(figsize=(10, 5), constrained_layout=True)\n",
"\n",
"ucell.makerings(cf_4d.ds.max())\n",
"\n",
"ax.plot(cf_4d.ds, cf_4d.sum_intensity,',', label='cf_4d')\n",
"ax.plot(cf_strong.ds, cf_strong.sum_intensity,',', label='cf_strong')\n",
"ax.plot(ucell.ringds, [1e4,]*len(ucell.ringds), '|', ms=90, c=\"red\")\n",
Expand Down
2 changes: 1 addition & 1 deletion ImageD11/nbGui/nb_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ def plot_grain_positions(grains, colour='npks', centre_plot=False, size_scaling=
# will still fail if we don't have reference unitcells
get_rgbs_for_grains(grains)
col = [getattr(grain, rgbattr) for grain in grains] # IPF colour
ax.set_title("Grains coloured by IPF", colour.lower())
ax.set_title("Grains coloured by IPF " + colour.lower())
# sizes in MPL 3D scale the area of the plot
# intensity info is proportional to volume
# decrease to radius then scale to area with power(x, 2/3)
Expand Down
Loading