Use. ax.xaxis.tick_top() to place the tick marks at the top of the image. The command. ax.set_xlabel('X LABEL') ax.xaxis.set_label_position('top') More @Wikipedia
Hover over any link to get a description of the article. Please note that search keywords are sometimes hidden within the full article and don't appear in the description or title.