Skip to content

Commit 51c079b

Browse files
committed
Correct powder pattern plotting with a non-empty name
1 parent 04d78d1 commit 51c079b

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Release notes
22

3+
## Version 2024.X.X
4+
5+
### Changes
6+
7+
### Fixes:
8+
9+
- correct powder pattern plotting with a non-empty name
10+
311
## Version 2024.2.1
412

513
### Changes

src/pyobjcryst/powderpattern.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def plot(self, diff=None, hkl=None, figsize=(9, 4), fontsize_hkl=6, reset=False,
145145

146146
ax.legend(loc='upper right')
147147
if self.GetName() != "":
148-
self._plot_fig.title("PowderPattern: %s" % self.GetName())
148+
self._plot_fig.suptitle("PowderPattern: %s" % self.GetName())
149149

150150
if self._plot_ylim is not None:
151151
ax.set_ylim(self._plot_ylim)

0 commit comments

Comments
 (0)