matplotlib command and format: Axis Axis Object Command collection

Source: Internet
Author: User
Tags inheritance
Detailed reference official documents: http://matplotlib.org/api/axis_api.html
Classes for the ticks and x and Y axis Inheritance
Inheritance diagram of Tick, ticker, Xaxis, YAxis, XTick Axis ObjectsClass Matplotlib.axis. Axis (axes, pickradius=15) public attributes Axes.transdata-transform data coords to display coords axes.transaxes- Transform axis coords to display coords Labelpad-number of points between the Axis and its label Init the axis with the Parent Axes Instance
Class Matplotlib.axis. Xaxis (axes, pickradius=15) Init the axis with the parent axes instance
Class Matplotlib.axis. YAxis (axes, pickradius=15) Init the axis with the parent axes instance
Class Matplotlib.axis. Ticker
Axis.cla Clear the current axis
Axis.get_scale

formatters and Locators "set the primary sub-scale"
Axis.get_major_formatter Get the formatter of the major ticker
Axis.get_major_locator Get the locator of the major ticker
Axis.get_minor_formatter Get the formatter of the minor ticker
Axis.get_minor_locator Get the locator of the minor ticker
Axis.set_major_formatter Set the formatter of the major ticker
Axis.set_major_locator Set the locator of the major ticker
Axis.set_minor_formatter Set the formatter of the minor ticker
Axis.set_minor_locator Set the locator of the minor ticker

axis Label "axis labels"
Axis.set_label_coords Set the coordinates of the label.
Axis.set_label_position Set the label position (top or bottom)
Axis.set_label_text Sets the text value of the axis label
Axis.get_label_position Return the label position (top or bottom)
Axis.get_label_text Get the text of the label

Ticks, tick labels and offset text "tick, tick label, offset text"
Axis.get_major_ticks Get the tick instances; Grow as necessary
Axis.get_majorticklabels Return a list of Text instances for the major ticklabels
Axis.get_majorticklines Return the major tick lines as a list of line2d instances
Axis.get_majorticklocs Get the major tick locations in data coordinates as a numpy array
Axis.get_minor_ticks Get the minor tick instances; Grow as necessary
Axis.get_minorticklabels Return a list of Text instances for the minor TickLabels
Axis.get_minorticklines Return the minor tick lines as a list of line2d instances
Axis.get_minorticklocs Get the minor tick locations in data coordinates as a numpy array
Axis.get_offset_text Return the Axis Offsettext as a Text instance
Axis.get_tick_padding
Axis.get_ticklabels Get the x tick labels as a list of Text instances.
Axis.get_ticklines Return the tick lines as a list of line2d instances
Axis.get_ticklocs Get the tick locations in data coordinates as a numpy array
Axis.get_gridlines Return the grid lines as a list of Line2D instance
Axis.grid Set the axis grid on or off; B is a Boolean.
Data and view intervals tr>
axis.get_data_interval Return the interval instance to this Axis data li MITs
axis.get_view_interval Return the interval instance to this Axis view Limits
axis.set_data_interval Set the Axis data limits

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.