From: John H. <jdh...@ac...> - 2004-03-18 14:45:16
|
>>>>> "Jean-Baptiste" =3D=3D Jean-Baptiste Cazier <Jean-Baptiste.cazier@d= ecode.is> writes: Jean-Baptiste> S=E6ll ! Jean-Baptiste> I followed you advice to use directly axes to Jean-Baptiste> define my subplots fig =3D Figure(figsize=3D(8,4), Jean-Baptiste> dpi=3D100) #ax =3D Subplot(fig, 211) ax =3D Plot.axes([0.1,0.3,0.8,0.7]) fig.add_axis(ax) #mrks =3D Subplot(fig, 212) mrks =3D Plot.axes([0.1,0.1,0.8,0.15], axisbg=3D'c') fig.add_axis(mrks) "Plot" is not from matplotlib. Please post a complete working matplotlib example that replicates your problem and I'll take a look. It looks like you are mixing the matlab interface with the OO interface. axes is from matplotlib.matlab. If you want to use the OO interface, use =20 from matplotlib.figure import Figure =20 from matplotlib.axes import Axes, Subplot # etc, etc ax =3D Axes(fig, [0.1, 0.3, 0.8, 0.7]) fig.add_axis(ax) mrks =3D Axes(fig, [0.1, 0.1, 0.8, 0.15], axisbg=3D'c') fig.add_axis(mrks) JDH |