Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

python matplotlib pyplot set axis equals

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()
Comment

PREVIOUS NEXT
Code Example
Python :: print with color python 
Python :: music distorted on discord 
Python :: read csv limit rows python 
Python :: function annotation 
Python :: python code style 
Python :: fixed size list in python 
Python :: python dictionary get vs setdefault 
Python :: contextlib closing python file 
Python :: import excel 
Python :: django request.data 
Python :: pandas transform count where condition 
Python :: python source code 
Python :: Python NumPy stack Function Example with 2d array 
Python :: open file in python 
Python :: split() vs split() 
Python :: pydrive download by url 
Python :: python child class call parent method 
Python :: Palindrome in Python Using while loop for string 
Python :: remove occurence of character from string python 
Python :: python library 
Python :: python get pattern from string 
Python :: is python easy or hard to learn 
Python :: model.predict Decision Tree Model 
Python :: python edit item in list 
Python :: pandas remove multi header from dataframe 
Python :: convert pandas data frame to latex file 
Python :: python list remove duplicates keep order 
Python :: how to make a random number generator in python 
Python :: Reverse an string Using Loop in Python 
Python :: how to take screenshot with python 
ADD CONTENT
Topic
Content
Source link
Name
8+1 =