python - How do I remove the y-axis from a Pylab-generated picture? -


import pylab  # matplotlib  x_list = [1,1,1,1,5,4] y_list = [1,2,3,4,5,4]  pylab.plot(x_list, y_list, 'bo')  pylab.show() 

what want remove y-axis diagram, keeping x-axis. , adding more margin diagram, can see lot of dots on edge of canvas , don't good.

ax = pylab.gca() ax.yaxis.set_visible(false) pylab.show() 

Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -