more than 9 subplots in matplotlib


Question

Is it possible to get more than 9 subplots in matplotlib?

I am on the subplots command pylab.subplot(449); how can I get a 4410 to work?

Thank you very much.

1
41
6/5/2015 12:35:49 AM

Accepted Answer

It was easier than I expected, I just did: pylab.subplot(4,4,10) and it worked.

62
6/5/2015 12:35:59 AM

You can also do it like this with pyplot:

import matplotlib.pyplot as plt
oFig1 = plt.figure(1)

oFig1.add_subplot(4,4,11)      #(m,n,x) -> x starts with 1
...

Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow
Icon