Hi all. The position of an axes is fixed at creation, regardless of the what goes outside the plot area. If the numbers on the y-axis are big enough (say, 7 digits) and a label is added, the label gets out of the figure.
Example : -------------------------------------------------------------------------- import pylab data = [0,1,2,3000000] fig = pylab.figure() ax1 = fig.add_subplot(1,1,1) ax1.plot(data) ax1.set_ylabel('label_axis_y1') pylab.show() -------------------------------------------------------------------------- Is there a way to automatically resize the axis and nicely center the whole set {axes + ticklabels + labels} in the figure ? One could use add_axes and play with the coordinates until he gets something nice, but it gets complicated to have it automatic as things depends on - the number of digits of y-axis ticklabels - whether or not a secundary y-axis is added on the right (using twinx) Or did I miss something ? Thanks. -- Jérôme ------------------------------------------------------------------------------ Cloud Services Checklist: Pricing and Packaging Optimization This white paper is intended to serve as a reference, checklist and point of discussion for anyone considering optimizing the pricing and packaging model of a cloud services business. Read Now! http://www.accelacomm.com/jaw/sfnl/114/51491232/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users