Wednesday, April 29, 2009

Matplotlib - how to define a size of figure

Users can manually setup the figure size by the 4 attributes when using matplotlib,
Left, Bottom, Width, Height.
This is a example to help users understand how to setup the variables.

Width and Height are easier to image.
They means the width and height of a figure.
Left means the figure(the figure is not including the axes and label) start from left.
Left is 0. You will see the figure is sticked on the left boundary.
Bottom means the figure start from the bottom.
Bottom is 0. You will see the figure is sticked on the bottom line.

Let's see the example figures.

Let's see the different one. You should understand how to control it.
All values of 4 variable is 0~1. Good luck and have fun!


No comments:

Clicky

Clicky Web Analytics