Set the bottom, top, left, right tick mark in matplotlibrc

Here is the question of disabling ticks on a given side of a set of axes using the tick_params method. I want to change the top and right properties to the default in my matplotlibrc , but I don’t see how to do this, since the matplotlibrc section of the matplotlibrc file deals with things in terms of xtick and ytick . What am I missing?

+5
source share
2 answers

After I came across matplotlib github, I found what I was looking for: the upcoming version 2.x branch , while I am writing this, has xtick.top , etc. as parameters in the new matplotlibrc template.

So, the answer is that at the time of this writing, these functions may not be available for templates, and the @ user2927356 method may be all that I can use before matplotlib 2.x is released.

+2
source

I am new to matplotlib, but I believe you can do something like this:

 pl.tick_params(bottom="off", top="off") 
+1
source

All Articles