Skip to content

Commit db24b67

Browse files
committed
Fix to iguape.py
1 parent dbd3ee8 commit db24b67

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Iguape/iguape.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,9 +199,9 @@ def update_colormap(color_map_type, label):
199199
norm_col = 'temp' if self.plot_with_temp else 'file_index' #Flag for chosing the XRD pattern index
200200
color = self.cmap(self.norm(self.plot_data[norm_col][i])) #Selecting the pattern's color based on the colormap
201201
mask = self._get_mask(i)
202-
self.ax_main.plot(self.plot_data['theta'][i][mask], self.plot_data['intensity'][i][mask] + offset, color=color, label=f'XRD pattern #{self.plot_data['file_index'][i]} - Blower temperature {self.plot_data["temp"][i]} K'
202+
self.ax_main.plot(self.plot_data['theta'][i][mask], self.plot_data['intensity'][i][mask] + offset, color=color, label=f'XRD pattern #{self.plot_data["file_index"][i]} - Blower temperature {self.plot_data["temp"][i]} K'
203203
if self.monitor.kelvin_sginal else f'XRD pattern #{self.plot_data["file_index"][i]} - Blower temperature {self.plot_data["temp"][i]} °C'
204-
if self.plot_with_temp else f'XRD pattern #{self.plot_data['file_index'][i]}')
204+
if self.plot_with_temp else f'XRD pattern #{self.plot_data["file_index"][i]}')
205205
offset += self.spacing
206206

207207
self.ax_main.set_xlabel('2θ (°)')

0 commit comments

Comments
 (0)