« Return to Thread: Labels end up outside figure

Labels end up outside figure

by acoffeemug :: Rate this Message:

| View in Thread

Hi,

I have tried to make a plot using the twinx() method to get different left and right scales in the same plot.

The plot looks fine, but the y labels end up outside the figure. The same problem can be seen in the example from the matplot homepage:

http://matplotlib.sourceforge.net/examples/api/two_scales.html

Here the y labels 'exp' and 'sin' are outside the plot.

Does anyone know a good fix for this? Preferably one which doesn't involve manual resizing?

I use ipython with -pylab to generate the plots.

Best regards,
Jóan Petur

 « Return to Thread: Labels end up outside figure