Hi,
It is quite some time ago since I was intensively using MPL. Perhaps I will not get the terminology right anymore. And now I hope to get some pointer for this particular problem:
I would like to arange some line plots using a grid from left to right in a single plot / figure instance. Each of these plots is created from vectors (numpy arrays) of a different length. If I would place subplots of equal size to place these individual plots from left to right, all will appear with a different "stretch/squeeze".
My question now is: Is there a way to place different subplots of different sizes automatically? For all my plots I will encounter different number of individual line plots of different size.
My approach so far (pseudocode):
from mpl_toolkits.axes_grid1 import Grid
import pylab as plt
import pylab as plt
fig = plt.figure(1, (5.5, 3.5))
grid = Grid(fig, 111, # similar to subplot(111)
nrows_ncols = (1, number_of_subplots),
axes_pad = 0.1,
add_all=True,
label_mode = "L",
)
grid = Grid(fig, 111, # similar to subplot(111)
nrows_ncols = (1, number_of_subplots),
axes_pad = 0.1,
add_all=True,
label_mode = "L",
)
for index in xrange(number_of_subplots):
grid[index].???
And now I just do not know how to get any further? How will I get the necessary extension for each subfigure/plot? Which is the most efficient way to accomplish all this? Should I import a different class, other than Grid?
TIA
Regards,
Christian
------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users