Skip to content

Commit 2e2ddef

Browse files
committed
Use our custom x axis locator for major ticks
This makes ticks at Q values of 1, 2, 3, etc. Signed-off-by: Patrick Avery <[email protected]>
1 parent 74ecb4d commit 2e2ddef

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

hexrdgui/image_canvas.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1041,7 +1041,7 @@ def finish_show_polar(self, iviewer):
10411041
self.axis.yaxis.set_major_locator(AutoLocator())
10421042
self.axis.yaxis.set_minor_locator(AutoMinorLocator())
10431043

1044-
self.axis.xaxis.set_major_locator(AutoLocator())
1044+
self.axis.xaxis.set_major_locator(PolarXAxisTickLocator(self))
10451045
self.axis.xaxis.set_minor_locator(AutoMinorLocator())
10461046

10471047
kwargs = {
@@ -1102,7 +1102,7 @@ def finish_show_polar(self, iviewer):
11021102
axis.yaxis.set_major_locator(AutoLocator())
11031103
axis.yaxis.set_minor_locator(AutoMinorLocator())
11041104

1105-
axis.xaxis.set_major_locator(AutoLocator())
1105+
axis.xaxis.set_major_locator(PolarXAxisTickLocator(self))
11061106
axis.xaxis.set_minor_locator(AutoMinorLocator())
11071107

11081108
# change property of ticks
@@ -1149,10 +1149,6 @@ def finish_show_polar(self, iviewer):
11491149
kwargs['which'] = 'both'
11501150
kwargs['axis'] = 'x'
11511151
axis.grid(**kwargs)
1152-
1153-
# Set our custom tick locators as well
1154-
# self.axis.xaxis.set_major_locator(PolarXAxisTickLocator(self))
1155-
# axis.xaxis.set_major_locator(PolarXAxisTickLocator(self))
11561152
else:
11571153
self.update_azimuthal_integral_plot()
11581154
axis = self.azimuthal_integral_axis

0 commit comments

Comments
 (0)