How can I make the tick markers point outwards in matplotlib?

How can I make the tick markers point outwards in matplotlib?

Based on your comment more than your initial question, I think what you want to do is:
ax.tick_params(axis="both",direction="out")
Have a look at matplotlib documentation for more details.