VOOZH about

URL: https://www.geeksforgeeks.org/python/matplotlib-artist-artist-set_url-in-python/

⇱ Matplotlib.artist.Artist.set_url() in Python - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Matplotlib.artist.Artist.set_url() in Python

Last Updated : 12 Jul, 2025

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.set_url() Method

The set_url() method in artist module of matplotlib library is used to set the url for the artist.

Syntax: Artist.set_url(self, url)

Parameters: This method accepts only one parameters.

  • url : This parameter is the string containing the url.

Returns: This method does not return any value.

Below examples illustrate the matplotlib.artist.Artist.set_url() function in matplotlib:

Example 1:

Output:

👁 Image

Example 2:

Output:

👁 Image
Comment