xlim(min,max), ylim(min,max) |
pylab (matplotlib.pyplot) |
Sets the size of the plot region for the horizontal and vertical axes from min to max. |
axis(arg) |
pylab, (matplotlib.pyplot) |
Used to get or set axis properties.
arg |
Result |
'tight' |
Makes the axes just fit the data range |
'equal' |
Forces both axes to have the same scaling. |
'off' |
Turns off the axis lines and labels. |
| No argument |
Returns the current axis limits in a list of the form [x_min,x_max,y_min,y_max]. |
[x_min,x_max,y_min,y_max] |
Sets the axis limits to the values in the list. |
|
scatter(x,y) |
pylab, (matplotlib.pyplot) |
Produces a scatter plot, but allows more control over size, color, and style of individual symbols than plot(). |
ax = gca() |
pylab, (matplotlib.pyplot) |
The command will set ax to the current Axes object. This allows access to all of the ax object's attributes and methods. |