With a little code change and using the trick (or hack?) From this link , this works:
import numpy as np import matplotlib.pyplot as plt
If you want external ticks on all your charts, it might be easier to set the direction of the tick in the rc file - on this page search for xtick.direction
ev-br source share