Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

matplotlib subplots share x axis

fig = plt.figure()
ax1 = plt.subplot2grid((6,1), (0,0), rowspan=1, colspan=1)
plt.title(stock)
plt.ylabel('H-L')
ax2 = plt.subplot2grid((6,1), (1,0), rowspan=4, colspan=1, sharex=ax1)
plt.ylabel('Price')
ax3 = plt.subplot2grid((6,1), (5,0), rowspan=1, colspan=1, sharex=ax1)
plt.ylabel('MAvgs')
Comment

PREVIOUS NEXT
Code Example
Python :: array and list in python 
Python :: bitwise operation in python 
Python :: mapping in python 
Python :: pandas remove duplicates 
Python :: group by data 
Python :: quiz game in python 
Python :: count python 
Python :: python if loop 
Python :: copy multiple files from one folder to another folder 
Python :: numpy difference between two arrays 
Python :: python elif 
Python :: abstract class in python 
Python :: selenium find element by link text 
Python :: axes_style seaborn 
Python :: jquery datepicker disable 
Python :: infinite for loop python 
Python :: do while loop python 
Python :: stringindexer pyspark 
Python :: how to transcode a video in python using ffmpeg 
Python :: get source selenium python 
Python :: csv to pdf python 
Python :: how to check if string ends with specific characters in python 
Python :: how to create a variable that represents any integer in python 
Python :: why is there a lot of numbers in python 
Python :: value_counts sort by index 
Python :: python << meaning 
Python :: import .dat python 
Python :: wxpython menu callback stackoverflow 
Python :: how to open a widget using sputil.get 
Shell :: install git on amazon linux 
ADD CONTENT
Topic
Content
Source link
Name
7+4 =