You need to dig a bit deeper into the api to do this:
from matplotlib import pyplot as plt
plt.plot(range(5))
plt.xlim(-3, 3)
plt.ylim(-3, 3)
plt.gca().set_aspect('equal', adjustable="box")
plt.draw()
More Related Contents:
- After conda update, python kernel crashes when matplotlib is used
- ImportError: DLL load failed: The specified module could not be found
- Plotting a 3d cube, a sphere and a vector in Matplotlib
- Matplotlib scatter plot legend
- Matplotlib: Annotating a 3D scatter plot
- vary the color of each bar in bargraph using particular value
- Shifted colorbar matplotlib
- Why do many examples use `fig, ax = plt.subplots()` in Matplotlib/pyplot/python
- Expand the line with specified width in data unit
- How do I plot only a table in Matplotlib?
- Axes class – set explicitly size (width/height) of axes in given units
- Get matplotlib color cycle state
- Reverse colormap in matplotlib
- Annotate Time Series plot in Matplotlib
- Changing plot scale by a factor in matplotlib
- plotting unix timestamps in matplotlib
- Matplotlib python show() returns immediately
- How to clear memory completely of all matplotlib plots
- How do I equalize the scales of the x-axis and y-axis?
- How to set ticks on Fixed Position , matplotlib
- (python) plot 3d surface with colormap as 4th dimension, function of x,y,z
- pandas bar plot combined with line plot shows the time axis beginning at 1970
- Named colors in matplotlib
- making matplotlib scatter plots from dataframes in Python’s pandas
- view and then close the figure automatically in matplotlib?
- How to use Matplotlib in Django?
- Matplotlib FuncAnimation only draws one frame
- Set line colors according to colormap
- How to shade region under the curve in matplotlib
- Setting different color for each series in scatter plot