Since they are drawn inside the plot area, axis ticks are obscured by data in many matplotlib plots. The best approach is to draw ticks going from the axis outwards, as by default in ggplot , the R build system.
In theory, this can be done by redrawing the tick lines using the TICKDOWN and TICKLEFT for ticks of the x-axis and y-axis, respectively:
import matplotlib.pyplot as plt import matplotlib.ticker as mplticker import matplotlib.lines as mpllines
But in practice, this is only half the solution, because the get_xticklines and get_yticklines return only the main tick lines. Small ticks continue to point inward.
What work for minor ticks?
python matplotlib plot
pash Jun 07 2018-11-11T00: 00Z
source share