python - Pylab: Bounding box despite frameon=False -
when set visibility of axis false, axis replaced bounding box. please able me remove bounding frame.
import pylab x=[0.1,0.2,0.3,0.4] y=[0.2,0.4,0.6,0.8] pylab.figure(num=1,frameon=false) circle = pylab.circle((0, 0), 1.025, color="black", fill=none) ax = pylab.subplot(111, aspect=1) ax.add_artist(circle) ax.scatter(x,y,s=30, c='red', marker='o', edgecolor='red') pylab.xlim([-1.1,1.1]) pylab.ylim([-1.1,1.1]) ax.xaxis.set_visible(false) ax.yaxis.set_visible(false) pylab.title("plot") pylab.show()
try ax.axison=false
, noticed axes "replaced" bounding box, looks has nothing figure. in ipython browsed through properties of ax
, found property axison
. turned false
, worked me
Comments
Post a Comment