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

drupal - using views argument in the view tpl.php file -

php - Posting PHPBB Forum Thread/Post info in a website -

php - Add a blog by sending a mail to a certain emailadress -