Skip to content Skip to sidebar Skip to footer

Add Boxplot To Other Graph In Python

These two graphs have exactly the same x axis value of each point, is it possible to display the box whisker on top of the first graph? I tried this: fig1 = plt.figure()

Solution 1:

If you want two graphs with comparable X and Y ranges to appear one on top of the other, you can try "Hold". For example:

import pylab

pylab.plot([1,2,3,4],[4,3,2,1]) 
pylab.hold(True) 
pylab.plot([1,2,3,4],[1,2,3,4])

Post a Comment for "Add Boxplot To Other Graph In Python"