Skip to content

Commit

Permalink
Merge pull request #353 from jadball/master
Browse files Browse the repository at this point in the history
Tiny notebook bugfixes
  • Loading branch information
jadball authored Nov 19, 2024
2 parents 1a4388a + f6fb025 commit e55196f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
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

0 comments on commit e55196f

Please sign in to comment.