python 1/x plot scale formatting, tick position
问题 I have plotted some data with Python and tried to change the ticks with FuncFormatter . Now I want to change the segmentation into round numbers. I also want minor ticks in the same formation, in my case it would be a 1/x segmentation. I want the scaling to spread. The pictures will help you to imagine my issue. import numpy as np import matplotlib.pyplot as plt import matplotlib.ticker as tick x = np.array([805.92055,978.82006,564.88627,813.70311,605.73361,263.27184,169.40317]) y = np.array(