Matplotlib.axis.Axis.format_cursor_data() function in Python Last Updated : 08 Jun, 2020 Comments Improve Suggest changes Like Article Like Report Matplotlib is a library in Python and it is numerical – mathematical extension for NumPy library. It is an amazing visualization library in Python for 2D plots of arrays and used for working with the broader SciPy stack. matplotlib.axis.Axis.format_cursor_data() Function The Axis.format_cursor_data() function in axis module of matplotlib library is used to get the string representation of data. Syntax: Axis.format_cursor_data(self, data) Parameters: This method accepts the following parameters. data: This parameter is the data which is used to be used. Return value: This method return the string representation of data. Below examples illustrate the matplotlib.axis.Axis.format_cursor_data() function in matplotlib.axis: Example 1: Python3 # Implementation of matplotlib function from matplotlib.axis import Axis import numpy as np import matplotlib.pyplot as plt np.random.seed(10**7) geeksx = np.random.randn(10) fig, ax = plt.subplots() ax.plot(geeksx) ax.text(1.5, 0.85, "Value return by format_cursor_data():", fontweight ="bold") ax.text(0, 0.7, Axis.format_cursor_data(ax, data = geeksx)) fig.suptitle("""matplotlib.axis.Axis.format_cursor_data() function Example\n""", fontweight ="bold") plt.show() Output: Example 2: Python3 # Implementation of matplotlib function from matplotlib.axis import Axis import numpy as np import matplotlib.pyplot as plt geeksx = np.array([24.40, 110.25, 20.05, 22.00, 61.90, 7.80, 15.00]) fig, ax = plt.subplots() ax.plot(geeksx, 'go-') ax.text(1, 95, "Value return by format_cursor_data():", fontweight ="bold") ax.text(1.3, 85, Axis.format_cursor_data(ax, data = geeksx)) fig.suptitle("""matplotlib.axis.Axis.format_cursor_data() function Example\n""", fontweight ="bold") plt.show() Output: Comment More infoAdvertise with us Next Article Matplotlib.axis.Axis.format_cursor_data() function in Python S SHUBHAMSINGH10 Follow Improve Article Tags : Python Python-matplotlib Matplotlib-Axis Class Practice Tags : python Similar Reads Matplotlib.axes.Axes.format_cursor_data() in Python Matplotlib is a library in Python and it is numerical â mathematical extension for NumPy library. The Axes Class contains most of the figure elements: Axis, Tick, Line2D, Text, Polygon, etc., and sets the coordinate system. And the instances of Axes supports callbacks through a callbacks attribute. 2 min read Matplotlib.artist.Artist.format_cursor_data() in Python Matplotlib is a library in Python and it is numerical â mathematical extension for NumPy library. The Artist class contains Abstract base class for objects that render into a FigureCanvas. All visible elements in a figure are subclasses of Artist. matplotlib.artist.Artist.format_cursor_data() method 2 min read Matplotlib.axis.Axis.draw() function in Python Matplotlib is a library in Python and it is numerical â mathematical extension for NumPy library. It is an amazing visualization library in Python for 2D plots of arrays and used for working with the broader SciPy stack. Matplotlib.axis.Axis.draw() Function The Axis.draw() function in axis module of 1 min read Matplotlib.axis.Axis.axis_date() function in Python Matplotlib is a library in Python and it is numerical â mathematical extension for NumPy library. It is an amazing visualization library in Python for 2D plots of arrays and used for working with the broader SciPy stack. matplotlib.axis.Axis.axis_date() Function The Axis.axis_date() function in axis 2 min read Matplotlib.axis.Axis.cla() function in Python Matplotlib is a library in Python and it is numerical â mathematical extension for NumPy library. It is an amazing visualization library in Python for 2D plots of arrays and used for working with the broader SciPy stack. matplotlib.axis.Axis.cla() Function The Axis.cla() function in axis module of m 1 min read Like