Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set bottom, top, left, right tick visibility in matplotlibrc

Here is a question about turning off the ticks on a given side of a set of axes by using the tick_params method. I want to change the top and right properties to off by default in my matplotlibrc but I don't see how that is to be done, as the ticks section of the matplotlibrc file deals with things in terms of xtick and ytick. What am I missing?

like image 418
Alton Campbell Avatar asked Oct 18 '22 04:10

Alton Campbell


1 Answers

After sleuthing around on the matplotlib github, I found what I was looking for: the upcoming version 2.x branch, at the time I am writing this, has xtick.top, etcetera, as parameters in the new matplotlibrc template.

So the answer is that at the time of this writing, that functionality may not be available for templates, and @user2927356's method may be all I can use until matplotlib 2.x comes out.

like image 133
Alton Campbell Avatar answered Oct 22 '22 10:10

Alton Campbell