Issue
I have two plots
import matplotlib.pyplot as plt
plt.subplot(121)
plt.subplot(122)
I want plt.subplot(122)
to be half as wide as plt.subplot(121)
. Is there a straightforward way to set the height and width parameters for a subplot?
Solution
By simply specifying the geometry with “122
”, you're implicitly getting the automatic, equal-sized columns-and-rows layout.
To customise the layout grid, you need to get a little more specific. See “Customizing Location of Subplot Using GridSpec” in the Matplotlib docs.
Answered By - bignose
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.