|
35 | 35 | ) |
36 | 36 | from hexrdgui.utils.tth_distortion import apply_tth_distortion_if_needed |
37 | 37 |
|
38 | | -FONTSIZE_LABEL=15 |
39 | | -FONTSIZE_TICKS=15 |
| 38 | +FONTSIZE_LABEL = 15 |
| 39 | +FONTSIZE_TICKS = 15 |
| 40 | + |
40 | 41 |
|
41 | 42 | class ImageCanvas(FigureCanvas): |
42 | 43 |
|
@@ -1089,7 +1090,9 @@ def finish_show_polar(self, iviewer): |
1089 | 1090 | HexrdConfig().last_unscaled_azimuthal_integral_data = unscaled |
1090 | 1091 |
|
1091 | 1092 | self.azimuthal_integral_axis = axis |
1092 | | - axis.set_ylabel(r'Azimuthal Average', fontsize=FONTSIZE_LABEL, family='serif') |
| 1093 | + axis.set_ylabel(r'Azimuthal Average', |
| 1094 | + fontsize=FONTSIZE_LABEL, family='serif') |
| 1095 | + |
1093 | 1096 | self.update_azimuthal_plot_overlays() |
1094 | 1097 | self.update_wppf_plot() |
1095 | 1098 |
|
@@ -1170,13 +1173,15 @@ def finish_show_polar(self, iviewer): |
1170 | 1173 | 'interpolation': 'none', |
1171 | 1174 | } |
1172 | 1175 | self.axes_images.append(self.axis.imshow(**kwargs)) |
1173 | | - self.axis.set_ylabel(r'$\phi$ [deg]', fontsize=FONTSIZE_LABEL, family='serif') |
| 1176 | + self.axis.set_ylabel(r'$\phi$ [deg]', |
| 1177 | + fontsize=FONTSIZE_LABEL, family='serif') |
1174 | 1178 | else: |
1175 | 1179 | rescale_image = False |
1176 | 1180 | self.axes_images[0].set_data(img) |
1177 | 1181 |
|
1178 | 1182 | # Update the xlabel in case it was modified (via tth distortion) |
1179 | | - self.axis.set_xlabel(self.polar_xlabel, fontsize=FONTSIZE_LABEL, family='serif') |
| 1183 | + self.axis.set_xlabel(self.polar_xlabel, |
| 1184 | + fontsize=FONTSIZE_LABEL, family='serif') |
1180 | 1185 |
|
1181 | 1186 |
|
1182 | 1187 | if rescale_image: |
@@ -1277,8 +1282,9 @@ def polar_x_axis_type(self): |
1277 | 1282 |
|
1278 | 1283 | def on_polar_x_axis_type_changed(self): |
1279 | 1284 | # Update the x-label |
1280 | | - self.azimuthal_integral_axis.set_xlabel(self.polar_xlabel, |
1281 | | - fontsize=FONTSIZE_LABEL, family='serif') |
| 1285 | + self.azimuthal_integral_axis.set_xlabel( |
| 1286 | + self.polar_xlabel, fontsize=FONTSIZE_LABEL, |
| 1287 | + family='serif') |
1282 | 1288 |
|
1283 | 1289 | # Still need to draw if the x-label was modified |
1284 | 1290 | self.draw_idle() |
|
0 commit comments