Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

tadjust margines automatically matplotlib

import matplotlib.pyplot as plt
import numpy as np

fig = plt.figure()
ax = fig.add_subplot(111)
ax.plot(range(10),range(10))
ax.set_aspect('equal')
plt.tight_layout() # This is the key!
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #tadjust #margines #automatically #matplotlib
ADD COMMENT
Topic
Name
1+8 =