Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

matplotlib x axis at the top

import matplotlib.pyplot as plt
import matplotlib

fig = plt.figure()
ax = fig.add_axes([0.12,0.15,0.75,0.8])
ax.set_xlabel("X")
#Set axis to top
ax.xaxis.tick_top()
#Set x axis lable to top
ax.xaxis.set_label_position('top') 
Comment

PREVIOUS NEXT
Code Example
Python :: how to get the angle of mouse from the center formulae 
Python :: multipl excel sheets in pandas 
Python :: python list ascii 
Python :: matplotlib wrap title 
Python :: convert integer to datetime in python 
Python :: generate random characters in python 
Python :: python how to unnest a nested list 
Python :: python random from normal distribution 
Python :: cv2 load image 
Python :: how to add two different times in python 
Python :: how to concat csv files python 
Python :: pandas read csv without header 
Python :: python get args 
Python :: area of a circle in python 
Python :: random .randint renpy 
Python :: string pick the first 2 characters python 
Python :: plt.xlabel not working 
Python :: get file extension python 
Python :: calculate market value crsp pandas 
Python :: keyboard listener python 
Python :: python clear screen 
Python :: install python homebrew 
Python :: python convert 1 to 01 
Python :: python - subset specific columns name in a dataframe 
Python :: django related_name abstract class 
Python :: pandas dataframe column rename 
Python :: python how often character ins tring 
Python :: how to make a multichoice in python 
Python :: pause program python 
Python :: bubble sort python 
ADD CONTENT
Topic
Content
Source link
Name
1+7 =