Python matplotlib Drawing

Source: Internet
Author: User

Matplotlib: clearing a plot, when to use CLA (), CLF () or close ()?  matplotlib offers three Functions:cla () # Clea R Axis CLF () # Clear Figure close () # Close a Figure windowthe documentation doesn ' t offer a lot of insight into what the Difference between these functions is. When should I with each function and what exactly does it do? they all do different things, since Matplotlib uses a hi Erarchical order in which a figure window contains a figure which may consist of many axes. The three commands you mention therefore does the FOLLOWING:CLA () clears an axis, i.e. the currently active axis in the Current figure. It leaves the other axes untouched.clf () clears the entire of current figure with all its axes, but leaves the window opened, such that it is reused for other plots.close () closes a window, which'll be is the current window and if not specified OT Herwise. Which functions suits you the best depends thus on your use-case. The Close () function furthermore allows one to specify which window should be closed. The argument can either is a number or name given to a window when it is created using figure (number_or_name) or it can B E a figure instance fig obtained, i.e., Usingfig = figure (). If no argument is given to close (), the currently active window would be closed. Furthermore, there is the syntax close ("All"), which closes all figures.  http://www.ibm.com/developerworks/ Cn/linux/l-matplotlib/index.html There are a lot of things to learn here too   http://www.w3school.com.cn/xmldom/dom_element.asp   In fact, no matter what the language, the structure and functions of XML are these, next time you don't have to go around. Alas, the previous use of Java, is also the old run here to find, Python and here, next time remember the point ah, a long memory.

Python matplotlib drawing

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.