Y axis labeled correctly
This commit is contained in:
@@ -86,9 +86,11 @@ class SlamShow(object):
|
||||
|
||||
# Hence we must relabel the axis ticks to show millimeters
|
||||
ticks = np.arange(0,self.map_size_pixels+100,100)
|
||||
labels = [str(map_scale_mm_per_pixel * tick) for tick in ticks]
|
||||
labels = [str(self.map_scale_mm_per_pixel * tick) for tick in ticks]
|
||||
self.ax.xaxis.set_ticks(ticks)
|
||||
self.ax.set_xticklabels(labels)
|
||||
self.ax.yaxis.set_ticks(ticks)
|
||||
self.ax.set_yticklabels(labels)
|
||||
|
||||
self.ax.set_xlabel('X (mm)')
|
||||
self.ax.set_ylabel('Y (mm)')
|
||||
|
||||
Reference in New Issue
Block a user