{"id":171001,"date":"2023-10-19T11:25:31","date_gmt":"2023-10-19T10:25:31","guid":{"rendered":"https:\/\/liora.io\/en\/?p=171001"},"modified":"2026-02-23T13:38:51","modified_gmt":"2026-02-23T12:38:51","slug":"matplotlib-master-data-visualization-in-python","status":"publish","type":"post","link":"https:\/\/liora.io\/en\/matplotlib-master-data-visualization-in-python","title":{"rendered":"Matplotlib: Master Data Visualization in Python"},"content":{"rendered":"\n<p><strong>Matplotlib is an open-source Python library for creating data visualizations. Discover everything you need to know: definition, how it works, challenges, and training&#8230;<\/strong><\/p>\n\n\n\n<p>Data visualization is a key step in data analysis. After collecting, storing, and analyzing data, it&#8217;s essential to transform the results of these analyses into reports and graphical visualizations. This is because the human brain understands a chart more quickly than a series of statistics in tabular form. Therefore,<a href=\"https:\/\/liora.io\/en\/dataviz-definition-objectives-and-uses\"> &#8220;DataViz&#8221; allows sharing the results of an analysis with non-technical<\/a> teams within a company, including its executives.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-what-is-matplotlib\">What is Matplotlib ?<\/h2>\n\n\n\n<p>Matplotlib is an open-source Python library originally developed by neurobiologist John Hunter in 2002. Its initial purpose was to visualize the brain signals of epileptic individuals. To achieve this, Hunter aimed to replicate the graphic creation<a href=\"https:\/\/liora.io\/en\/python-all-you-need-to-know\"> capabilities of MATLAB using Python.<\/a><\/p>\n\n\n\n<p>Following John Hunter&#8217;s passing in 2012, Matplotlib has been continually improved over time by numerous contributors from the open-source community. It is used to create high-quality graphs and charts and serves as an open-source alternative to MATLAB. For instance, you can create plots, histograms, bar charts, and various types of graphs with just a few lines of code. It&#8217;s a comprehensive tool that enables the generation o<strong>f highly detailed data visualizations.<\/strong><\/p>\n\n\n\n<p>This library is especially valuable for individuals working with Python or <a href=\"https:\/\/liora.io\/en\/numpy-the-python-library-in-data-science\">NumPy.<\/a> It finds application in web application servers, Python shells, and scripts. With Matplotlib&#8217;s APIs, developers can also integrate charts into graphical interface applications.<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe title=\"All Top 40 Python Libraries EXPLAINED in 20 minutes\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/-29x_deQQus?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-matplotlib-s-main-concepts\">Matplotlib&#8217;s main concepts<\/h2>\n\n\n\n<p><strong>Matplotlib<\/strong> relies on several key elements. A &#8220;figure&#8221; represents a complete illustration, and each plot within that figure is referred to as an &#8220;axis.&#8221; <strong>&#8220;Plotting&#8221;<\/strong> involves creating a graph, for which you need data in the form of key-value pairs representing the X and Y axes. Functions like &#8220;scatter,&#8221; &#8220;bar,&#8221; and &#8220;pie&#8221; are then used to create the chart.<\/p>\n\n\n\n<p>You can create basic graphs like bar charts or histograms, as well as more complex three-dimensional figures using Matplotlib.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/liora.io\/app\/uploads\/sites\/9\/2023\/09\/matplotlib-graphs-1024x576.png\" alt=\"\" \/><\/figure>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex is-content-justification-center\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/liora.io\/en\/courses\/data-ai\/\">Learn more about Python libraries<\/a><\/div>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-4-things-you-need-to-know-about-matplotlib\">4 things you need to know about Matplotlib<\/h2>\n\n\n\n<p>With Matplotlib, you can <strong>enhance the visual appearance<\/strong> of your graphs by adding a title, legends, and by choosing the style and color of visualizations. You can also adjust the size of the figures and choose the layout of the graphs if you decide to display multiple graphs in a single figure.<\/p>\n\n\n\n<p>Matplotlib also offers a function for annotating graphs freely and for saving an image in jpg format.<\/p>\n\n\n\n<p>Additionally, you can <strong>add a digital watermark<\/strong> to a graph to include copyright information.<br>Now, let&#8217;s explore some examples of graphs that you can create with Matplotlib along with the few lines of code to plot them.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-1-tracing-functions\">1. Tracing functions<\/h3>\n\n\n\n<p><strong>Matplotlib<\/strong> is primarily a library for plotting functions and displaying their curves in graphs. We can visualize trigonometric functions like sine and cosine by specifying the interval over which we want to observe these functions.<\/p>\n\n\n\n<p>Here&#8217;s an example of plotting the sine and cosine functions between 0 and 6. The function used is `plot()`, which is a basic function in Matplotlib.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter is-resized\" style=\"margin-top:var(--wp--preset--spacing--columns);margin-bottom:var(--wp--preset--spacing--columns)\"><img decoding=\"async\" src=\"https:\/\/liora.io\/app\/uploads\/sites\/9\/2023\/09\/image6.png\" alt=\"\" style=\"width:auto;height:500px\" \/><\/figure>\n\n\n\n<p>To create this graph, we use two libraries, Matplotlib and NumPy. NumPy is used to calculate the sine and cosine values, and the `arange` function generates a list from 0 to 2 Pi with an interval of 0.1 between each value.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-2-creating-2d-graphs\">2. Creating 2D Graphs<\/h3>\n\n\n\n<p><strong>Another feature of Matplotlib<\/strong> is the creation of 2D graphs, which is very useful for a Data Scientist in the data visualization step. Indeed, it is possible to display histograms, pie charts, box plots, scatter plots, stack plots (for stacked data visualization), and more.<\/p>\n\n\n\n<p>These graphs can be used, for example, to display data distribution, statistical indicators, trends over a certain period if dealing with time series data, and more.<\/p>\n\n\n\n<p>The main functions used are:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>hist() to plot a histogram.<\/li>\n\n\n\n<li>bar() to plot a bar chart.<\/li>\n\n\n\n<li>pie() to plot a pie chart.<\/li>\n\n\n\n<li>box() to plot box plots.<\/li>\n\n\n\n<li>scatter() to plot a scatter plot.<\/li>\n\n\n\n<li>stackplot() to plot a stacked area chart.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image aligncenter\" style=\"margin-top:var(--wp--preset--spacing--columns);margin-bottom:var(--wp--preset--spacing--columns)\"><img decoding=\"async\" src=\"https:\/\/liora.io\/app\/uploads\/sites\/9\/2023\/09\/image1-1.png\" alt=\"\" \/><figcaption class=\"wp-element-caption\">exe de pie()<\/figcaption><\/figure>\n\n\n\n<p>This example is inspired by the &#8220;Matplotlib &#8211; Box Plots and Pie Charts&#8221; module from our <a href=\"https:\/\/liora.io\/en\/data-scientist-job-all-about\">Data Scientist and Data Analyst training!<\/a><\/p>\n\n\n\n<p>Here, we use the labels, colors, and autopct functions of the pie chart. Labels, as the name suggests, allows you to choose the labels for the segments, colors can be used in various ways, either with keywords like &#8220;Yellow&#8221; or &#8220;Red&#8221; or by using Hex codes, as shown in our example.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\" style=\"margin-top:var(--wp--preset--spacing--columns);margin-bottom:var(--wp--preset--spacing--columns)\"><img decoding=\"async\" src=\"https:\/\/liora.io\/app\/uploads\/sites\/9\/2023\/09\/image3.png\" alt=\"\" \/><\/figure>\n\n\n\n<p>Here, we use two lists, Pda and Pds, which we created beforehand to create our bar chart. First, we create the first bar chart, and then we add the second one by specifying &#8220;bottom=Pda&#8221; to indicate that the second bar chart is stacked on top of the first one.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\" style=\"margin-top:var(--wp--preset--spacing--columns);margin-bottom:var(--wp--preset--spacing--columns)\"><img decoding=\"async\" src=\"https:\/\/liora.io\/app\/uploads\/sites\/9\/2023\/09\/image9-1.png\" alt=\"\" \/><figcaption class=\"wp-element-caption\">exemple de bar()<\/figcaption><\/figure>\n\n\n\n<p>For this bar chart, we decided to place the two bars side by side. To achieve this, we use two sets of values for the X-axis. First, we use &#8220;x1,&#8221; which ranges from 0 to 11 with a step, and then &#8220;x2,&#8221; which ranges from 0.4 to 11.4 with a step of 1. We do this to offset the second column by 0.4, which will also be the width of our bars.<\/p>\n\n\n\n<p>These two charts are inspired by the &#8220;Matplotlib \u2013 Bar Charts&#8221; module in the Data Scientist and Data Analyst course.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\" style=\"margin-top:var(--wp--preset--spacing--columns);margin-bottom:var(--wp--preset--spacing--columns)\"><img decoding=\"async\" src=\"https:\/\/liora.io\/app\/uploads\/sites\/9\/2023\/09\/image8-1.png\" alt=\"\" \/><\/figure>\n\n\n\n<p>For this graph, we use lists for the axes. Both groups of scatter plots share the same X-axis but have different values on the Y-axis. We can also see that we use the &#8220;s&#8221; argument to vary the size of our points.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-3-display-3d-graphics\">3. Display 3D graphics<\/h3>\n\n\n\n<p>It&#8217;s also possible to create 3D graphs using Matplotlib. To do this, you need to use a special Matplotlib library called <code>mpl_toolkits.mplot3d<\/code> (often renamed to <code>Axes3D<\/code>).<\/p>\n\n\n\n<p>3D graphs can simplify certain visualizations and make a report more enjoyable to read.<\/p>\n\n\n\n<p>In general, the functions used include <code>Axes3D.plot()<\/code>, <code>Axes3D.scatter()<\/code>, <code>Axes3D.plot_wireframe()<\/code>, <code>Axes3D.plot_surface()<\/code>, and <code>Axes3D.bar()<\/code>.<\/p>\n\n\n\n<p>Here&#8217;s an example of what can be displayed using these functions. This example is from the official documentation.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter is-resized\" style=\"margin-top:var(--wp--preset--spacing--columns);margin-bottom:var(--wp--preset--spacing--columns)\"><img decoding=\"async\" src=\"https:\/\/liora.io\/app\/uploads\/sites\/9\/2023\/09\/image2-1.png\" alt=\"\" style=\"width:auto;height:500px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-4-creating-widgets\">4. Creating widgets<\/h3>\n\n\n\n<p>The last feature of <strong>Matplotlib<\/strong> that we will discuss is the creation of widgets. These are interactive visualizations on which the user can take action. For a data scientist, this can be very useful, for example, to see how changing a parameter influences a function or a <a href=\"https:\/\/liora.io\/en\/survival-analysis-beyond-machine-learning\">Machine Learning model.<\/a><\/p>\n\n\n\n<p>All the necessary classes for implementing a widget can be found in the `matplotlib.widgets` module.<\/p>\n\n\n\n<p>Creating a widget requires creating objects and functions that describe the action of one object on another. Objects could be things like a slider (of the Slider class) or a button (of the Button class), which could, for example, cover a range of values that a function&#8217;s parameter might take. Thus, depending on the value of this parameter, the user sees the graph of the function change instantly.<\/p>\n\n\n\n<p>This widget is from the &#8220;<a href=\"https:\/\/liora.io\/en\/all-about-deep-learning\">Introduction to Deep Learning with Keras<\/a>&#8221; module in the Data Scientist and Data Analyst tracks.<\/p>\n\n\n\n<p>By adjusting the parameters w1 and w2, we can adjust the red line to find the boundary that separates the green data from the orange data. This is called a classification problem using a linear method: we separate data into two categories using a linear decision boundary.<\/p>\n\n\n\n<div class=\"wp-block-buttons is-content-justification-center is-layout-flex wp-container-core-buttons-is-layout-a89b3969 wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/liora.io\/en\/courses\/data-ai\/\">Learn how to use Python<\/a><\/div>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-what-is-pyplot\">What is PyPlot?<\/h2>\n\n\n\n<p>Pyplot is a Matplotlib module that offers several simple functions for adding elements such as lines, images, or text to the axes of a graph. Its interface is very convenient, which is why this module is widely used.<\/p>\n\n\n\n<p>There is also an <a href=\"https:\/\/liora.io\/en\/api-the-path-to-seamless-integration\">Object-Oriented (OO) API<\/a> that provides more flexibility and customization by allowing objects to be assembled more freely. However, it is more challenging to use.<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe title=\"Matplotlib Tutorial (Part 1): Creating and Customizing Our First Plots\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/UO98lJQ3QGI?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-matplotlib-numpy-and-pandas\">Matplotlib, Numpy and Pandas<\/h2>\n\n\n\n<p>Numpy is a Python package dedicated to scientific computing. It is an essential dependency for Matplotlib since Matplotlib uses Numpy functions for numerical data and multi-dimensional arrays.<\/p>\n\n\n\n<p>On the other hand, <a href=\"https:\/\/liora.io\/en\/pandas-the-python-library\">Pandas is a Python library<\/a> also used by Matplotlib for data manipulation and analysis. It is not an essential dependency like Numpy, but it is often used in conjunction with Matplotlib.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-matplotlib-and-data-science\">Matplotlib and Data Science<\/h2>\n\n\n\n<p>Python is the most widely used programming language for <a href=\"https:\/\/liora.io\/en\/machine-learning-engineer-all-about-the-job\">Data Science and Machine Learning.<\/a> As a result, <strong>resources like NumPy and Matplotlib<\/strong> are very valuable for building machine learning models.<\/p>\n\n\n\n<p>Programmers can access these libraries to perform crucial tasks within the Python environment. It is then possible to integrate the results with other elements and functionalities of a machine learning program or neural network.<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe title=\"Intro to Data Visualization in Python with Matplotlib! (line graph, bar chart, title, labels, size)\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/DAQNHzOcO5A?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-what-are-the-difficulties-with-matplotlib\">What are the difficulties with Matplotlib?<\/h2>\n\n\n\n<p>Learning Matplotlib can be challenging. There are many tutorials available, but several difficulties may arise for beginners.<\/p>\n\n\n\n<p>Firstly, this library is extremely extensive, comprising over 70,000 lines of code in total. It also hosts multiple different interfaces and has the capability<strong> to interact with various backends for rendering graphics.<\/strong><\/p>\n\n\n\n<p>Moreover, while publicly accessible documentation on Matplotlib is understandable, some documents are simply outdated. This tool continues to evolve over time, and some examples available on the internet can actually be achieved with 70% fewer lines of code on modern versions.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-how-do-i-learn-matplotlib\">How do I learn Matplotlib?<\/h2>\n\n\n\n<p><strong>Matplotlib<\/strong> offers many possibilities for data visualization but can be challenging to master due to its technical complexity and heavy syntax. Learning it on your own can be difficult because much of the online documentation is outdated.<\/p>\n\n\n\n<p>To learn how to use this library effectively, you can consider Liora&#8217;s training programs. We offer courses that cover various roles in data science,<a href=\"https:\/\/liora.io\/en\/data-analyst-salary-average-salary-revealed\"> including Data Analyst<\/a>, Data Scientist, Data Engineer, ML Engineer, and Data Manager.<\/p>\n\n\n\n<p>Python is the preferred programming language for all our programs, and you will learn to use this language and its various data science libraries, including Matplotlib for data visualization. <strong>This tool is part of the curriculum in our &#8220;data visualization&#8221;<\/strong> module for Data Analyst, Data Scientist, and Data Management training programs.<\/p>\n\n\n\n<p>All our training programs follow a Blended Learning approach, combining an online platform with coaching and in-person masterclasses. They can be completed through Continuous Training or in an intensive BootCamp format in just a few weeks.<\/p>\n\n\n\n<p>Upon completion of these programs, learners receive a diploma certified by the University of Sorbonne and can quickly enter the job market. Over 90% of our graduates secure employment after their training.<\/p>\n\n\n\n<p>Therefore, Liora is the best way to learn how to master Matplotlib, Python, and various data science resources. Don&#8217;t wait any longer and explore our training programs today.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-conclusion\">Conclusion<\/h2>\n\n\n\n<p>Matplotlib allows you to create a wide variety of visualizations, but there are other libraries that can also create impressive visuals. Some of these libraries include Seaborn, Bokeh, and Ggplot, among others.<\/p>\n\n\n\n<p>Data visualization is at the core of all the challenges addressed by Data Scientists and Data Analysts. To learn how to master these techniques, several modules are dedicated to Matplotlib, Bokeh, and <a href=\"https:\/\/liora.io\/en\/seaborn_and_data_visualization\">Seaborn in our Data Scientist and Data Analyst training programs.<\/a><\/p>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex is-content-justification-center\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/liora.io\/en\/courses\/data-ai\/\">Data Training Courses<\/a><\/div>\n<\/div>\n\n\n\n<script type=\"application\/ld+json\">\n{\n  \"@context\": \"https:\/\/schema.org\",\n  \"@type\": \"FAQPage\",\n  \"mainEntity\": [\n    {\n      \"@type\": \"Question\",\n      \"name\": \"What is Matplotlib?\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"Matplotlib is an open-source Python library used for creating data visualizations such as plots, histograms, bar charts, and more. It was originally developed by John Hunter in 2002.\"\n      }\n    },\n    {\n      \"@type\": \"Question\",\n      \"name\": \"How do I create graphs with Matplotlib?\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"Matplotlib allows users to create graphs by using functions like plot(), scatter(), bar(), pie(), and more. You provide data in the form of key-value pairs for the X and Y axes.\"\n      }\n    },\n    {\n      \"@type\": \"Question\",\n      \"name\": \"Can I customize the appearance of graphs in Matplotlib?\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"Yes, Matplotlib allows you to customize the appearance of your graphs by adding titles, legends, changing colors, adjusting figure sizes, and even annotating graphs.\"\n      }\n    },\n    {\n      \"@type\": \"Question\",\n      \"name\": \"What types of graphs can I create with Matplotlib?\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"With Matplotlib, you can create various types of graphs such as line graphs, histograms, pie charts, box plots, scatter plots, and more.\"\n      }\n    },\n    {\n      \"@type\": \"Question\",\n      \"name\": \"What is the role of NumPy in Matplotlib?\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"NumPy is often used alongside Matplotlib to handle numerical operations, such as generating data for plotting, like calculating sine and cosine functions.\"\n      }\n    }\n  ]\n}\n<\/script>\n\n","protected":false},"excerpt":{"rendered":"<p>Matplotlib is an open-source Python library for creating data visualizations. Discover everything you need to know: definition, how it works, challenges, and training\u2026<\/p>\n","protected":false},"author":50,"featured_media":207897,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"editor_notices":[],"footnotes":""},"categories":[2433],"class_list":["post-171001","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-data-ai"],"acf":[],"_links":{"self":[{"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/posts\/171001","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/users\/50"}],"replies":[{"embeddable":true,"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/comments?post=171001"}],"version-history":[{"count":4,"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/posts\/171001\/revisions"}],"predecessor-version":[{"id":206657,"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/posts\/171001\/revisions\/206657"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/media\/207897"}],"wp:attachment":[{"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/media?parent=171001"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/categories?post=171001"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}