Skip to content

Commit 23173ce

Browse files
author
David Turner
committed
Was accidentally setting up a figure twice in the 'view' method of Spectrum
Signed-off-by: David Turner <djturner@umbc.edu>
1 parent c18778e commit 23173ce

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

xga/products/spec.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# This code is part of X-ray: Generate and Analyse (XGA), a module designed for the XMM Cluster Survey (XCS).
2-
# Last modified by David J Turner (djturner@umbc.edu) 5/22/26, 9:39 AM. Copyright (c) The Contributors.
2+
# Last modified by David J Turner (djturner@umbc.edu) 5/22/26, 9:40 AM. Copyright (c) The Contributors.
33

44
import os
55
from copy import deepcopy
@@ -2038,7 +2038,6 @@ def view(self, figsize: Tuple = (10, 7), lo_lim: Quantity = Quantity(0.3, "keV")
20382038

20392039
# Create figure object
20402040
plt.figure(figsize=figsize)
2041-
fig = plt.figure(figsize=figsize)
20422041
ax = plt.gca()
20432042

20442043
ax = self.get_view(ax, lo_lim, hi_lim, back_sub, energy, src_colour, bck_colour, grouped, xscale, yscale,

0 commit comments

Comments
 (0)