Simple problem: With matplotlib, I want to have this style preset:
Bottom and left ticks: direction out, label on
top and right ticks: direction in, label off
I want to have this style as a preset, so I dont have to do it for every single plot. The following code gives me the top and right ticks, but I cant manage to change their direction.
import numpy as np
import matplotlib.pyplot as plt
plt.rcParams["xtick.top"] = True
plt.rcParams["ytick.right"] = True
somearray=np.arange(0.0, 1.0, 0.1)
plt.figure()
plt.plot(somearray[:], somearray[:])
plt.xlabel('x')
plt.ylabel('y')
plt.show()