These were not correct when the plot did not start at 0, because they were using a MultipleLocator, which does not have an offset. Instead, we are now using a FixedLocator and calculating all of the positions manually.
This assumes that the major ticks start at the lower-most position of the view.
These were not correct when the plot did not start at 0, because they were using a MultipleLocator, which does not have an offset. Instead, we are now using a FixedLocator and calculating all of the positions manually.
This assumes that the major ticks start at the lower-most position of the view.