Matplotlib.axis.Axis.get_url() in function 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.get_url() Function The Axis.get_url() function in axis module of matplotlib library is used to get the url. Syntax: Axis.get_url(self) Parameters: This method does not accepts any parameter. Return value: This method return the url. Below examples illustrate the matplotlib.axis.Axis.get_url() 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 X = np.arange(-40, 40, 0.5) Y = np.arange(-40, 40, 0.5) U, V = np.meshgrid(X, Y) fig, ax = plt.subplots() ax.plot(U, V) ax.set_url('http://www.google.com') fig.canvas.print_figure('scatter.svg') ax.text(1.5, 5.5, "URL : " + str( Axis.get_url(ax)), fontweight ="bold") fig.suptitle('matplotlib.axis.Axis.get_url() \ function Example\n', fontweight ="bold") plt.show() Output: Example 2: Python3 # Implementation of matplotlib function from matplotlib.axis import Axis import matplotlib.pyplot as plt import numpy as np fig, ax = plt.subplots() delta = 0.025 x = y = np.arange(-3.0, 3.0, delta) X, Y = np.meshgrid(x, y) Z1 = np.exp(-X**2 - Y**2) Z2 = np.exp(-(X - 1)**2 - (Y - 1)**2) Z = (Z1 - Z2) * 2 ax.imshow(Z, interpolation ='bilinear', cmap = "BuGn", origin ='lower', extent =[-3, 3, -3, 3]) ax.set_url('https://www.geeksforgeeks.org/') ax.set_title("URL : "+str(Axis.get_url(ax)), fontweight ="bold") fig.suptitle('matplotlib.axis.Axis.get_url() \ function Example\n', fontweight ="bold") plt.show() Output: Comment More infoAdvertise with us Next Article Matplotlib.axis.Axis.get_url() in function Python S SHUBHAMSINGH10 Follow Improve Article Tags : Python Python-matplotlib Matplotlib-Axis Class Practice Tags : python Similar Reads Matplotlib.axis.Axis.get_units() 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.get_units() Function The Axis.get_units() function in axi 2 min read Matplotlib.axis.Axis.get_visible() 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.get_visible() Function The Axis.get_visible() function in 2 min read Matplotlib.axis.Axis.set_url() 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.set_url() Function The Axis.set_url() function in axis mod 2 min read Matplotlib.axis.Axis.get_transform() 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.get_transform() Function The Axis.get_transform() function 2 min read Matplotlib.axis.Axis.get_label() 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.get_label() Function The Axis.get_label() function in axis 2 min read Like