DIsplay_images_new: Bug
Found a bug, with the code such that if the axis are equal, the code terminates
for image in images: # Run though each non-EDS signal in the list
if image.axes_manager[0].scale != image.axes_manager[1].scale:
dict_x_axis = {'name' :image.axes_manager[0].name, # Creates a new x-axis with identical information except
'offset':image.axes_manager[0].offset, # a new scale value that matches the y-axis otherwise
'scale' :image.axes_manager[1].scale, # there would be a deviation on the 15th decimal.
'size' :image.axes_manager[0].size,
'units' :image.axes_manager[0].units}
image.axes_manager.remove(0) # Removes original x-axis
image.axes_manager.create_axes([dict_x_axis]) # Adds the new x-axis
This code, gives only a condition if the axis are not equal, however it should include something like "else: continue" for the code to work propperly