{"id":19281,"date":"2024-07-18T06:15:11","date_gmt":"2024-07-18T06:15:11","guid":{"rendered":"https:\/\/www.prepbytes.com\/blog\/?p=19281"},"modified":"2024-07-18T06:15:11","modified_gmt":"2024-07-18T06:15:11","slug":"scatter-plot-in-matplotlib","status":"publish","type":"post","link":"https:\/\/prepbytes.com\/blog\/scatter-plot-in-matplotlib\/","title":{"rendered":"Scatter Plot in Matplotlib"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1721283303423-Scatter%20Plot%20in%20Matplotlib.png\" alt=\"\" \/><\/p>\n<p>Scatter plots are a fundamental tool for visualizing the relationship between two continuous variables. By plotting data points on a two-dimensional plane, scatter plots help identify patterns, trends, and potential correlations within the data. In this article, we&#8217;ll explore how to create and customize scatter plots using Matplotlib, a popular plotting library in Python.<\/p>\n<h2>What is Matplotlib?<\/h2>\n<p>Before diving into scatter plots, you need to install Matplotlib if you haven&#8217;t already:<\/p>\n<pre><code>pip install matplotlib<\/code><\/pre>\n<h3>Creating a Basic Scatter Plot<\/h3>\n<p>Let&#8217;s start with a simple example to create a basic scatter plot. We&#8217;ll generate some random data for demonstration purposes.<\/p>\n<pre><code>import matplotlib.pyplot as plt\nimport numpy as np\n\n# Generate random data\nnp.random.seed(0)\nx = np.random.rand(50)\ny = np.random.rand(50)\n\n# Create a scatter plot\nplt.scatter(x, y)\nplt.title('Basic Scatter Plot')\nplt.xlabel('X-axis Label')\nplt.ylabel('Y-axis Label')\nplt.show()<\/code><\/pre>\n<p><strong>In this example:<\/strong><\/p>\n<ul>\n<li>np.random.rand(50) generates 50 random numbers between 0 and 1 for both x and y coordinates.<\/li>\n<li>plt.scatter(x, y) creates the scatter plot.<\/li>\n<li>plt.title, plt.xlabel, and plt.ylabel set the title and axis labels of the plot.<\/li>\n<\/ul>\n<p><strong>Customizing the Scatter Plot<\/strong><br \/>\nMatplotlib provides various options to customize the appearance of scatter plots, including colors, markers, sizes, and more.<\/p>\n<p><strong>Changing Marker Colors and Sizes<\/strong><br \/>\nYou can change the colors and sizes of the markers using the c and s parameters, respectively.<\/p>\n<pre><code>colors = np.random.rand(50)\nsizes = 1000 * np.random.rand(50)\n\nplt.scatter(x, y, c=colors, s=sizes, alpha=0.5, cmap='viridis')\nplt.title('Customized Scatter Plot')\nplt.xlabel('X-axis Label')\nplt.ylabel('Y-axis Label')\nplt.colorbar()  # Show color scale\nplt.show()<\/code><\/pre>\n<p><strong>In this example:<\/strong><\/p>\n<ul>\n<li>c=colors sets the colors of the markers based on the colors array.<\/li>\n<li>s=sizes sets the sizes of the markers based on the sizes array.<\/li>\n<li>alpha=0.5 sets the transparency of the markers.<\/li>\n<li>cmap=&#8217;viridis&#8217; specifies the colormap for the marker colors.<\/li>\n<li>plt.colorbar() adds a color bar to the plot.<\/li>\n<\/ul>\n<p><strong>Using Different Marker Styles<\/strong><br \/>\nYou can change the style of the markers using the marker parameter.<\/p>\n<pre><code>plt.scatter(x, y, marker='^')\nplt.title('Scatter Plot with Different Marker Style')\nplt.xlabel('X-axis Label')\nplt.ylabel('Y-axis Label')\nplt.show()<\/code><\/pre>\n<p>In this example, marker=&#8217;^&#8217; sets the marker style to an upward-pointing triangle.<\/p>\n<p><strong>Adding Annotations<\/strong><br \/>\nAnnotations can help highlight specific data points or provide additional context in the scatter plot.<\/p>\n<pre><code>plt.scatter(x, y)\n\n# Annotate a specific point\nplt.annotate('Important Point', xy=(x[10], y[10]), xytext=(x[10]+0.1, y[10]+0.1),\n             arrowprops=dict(facecolor='black', shrink=0.05))\n\nplt.title('Scatter Plot with Annotation')\nplt.xlabel('X-axis Label')\nplt.ylabel('Y-axis Label')\nplt.show()<\/code><\/pre>\n<p><strong>In this example:<\/strong><\/p>\n<ul>\n<li>plt.annotate adds an annotation for the point at index 10.<\/li>\n<li>xy specifies the coordinates of the point to annotate.<\/li>\n<li>xytext specifies the position of the annotation text.<\/li>\n<li>arrowprops defines the properties of the arrow pointing to the annotated point.<\/li>\n<\/ul>\n<p><strong>Creating Scatter Plots with Multiple Data Sets<\/strong><br \/>\nScatter plots can also be used to compare multiple datasets by plotting them on the same figure.<\/p>\n<pre><code># Generate more random data\nx1 = np.random.rand(50)\ny1 = np.random.rand(50)\nx2 = np.random.rand(50)\ny2 = np.random.rand(50)\n\nplt.scatter(x1, y1, color='red', label='Dataset 1')\nplt.scatter(x2, y2, color='blue', label='Dataset 2')\nplt.title('Scatter Plot with Multiple Datasets')\nplt.xlabel('X-axis Label')\nplt.ylabel('Y-axis Label')\nplt.legend()\nplt.show()<\/code><\/pre>\n<p><strong>In this example:<\/strong><\/p>\n<ul>\n<li>We generate two sets of random data (x1, y1 and x2, y2).<\/li>\n<li>We plot both datasets on the same figure using different colors and labels.<\/li>\n<li>plt.legend() adds a legend to distinguish between the datasets.<\/li>\n<\/ul>\n<p><strong>Adding Regression Line<\/strong><br \/>\nTo visualize the trend in the data, you can add a regression line to the scatter plot.<\/p>\n<pre><code># Generate random data with a linear trend\nnp.random.seed(0)\nx = np.random.rand(50)\ny = 2 * x + 1 + np.random.normal(0, 0.1, 50)\n\n# Scatter plot\nplt.scatter(x, y)\n\n# Fit and plot a regression line\nm, b = np.polyfit(x, y, 1)\nplt.plot(x, m*x + b, color='red')\n\nplt.title('Scatter Plot with Regression Line')\nplt.xlabel('X-axis Label')\nplt.ylabel('Y-axis Label')\nplt.show()<\/code><\/pre>\n<p><strong>In this example:<\/strong><\/p>\n<ul>\n<li>np.polyfit(x, y, 1) fits a linear regression model to the data.<\/li>\n<li>plt.plot(x, m*x + b, color=&#8217;red&#8217;) plots the regression line.<\/li>\n<\/ul>\n<p><strong>Conclusion<\/strong><br \/>\nScatter plots are a versatile tool for visualizing the relationship between two continuous variables. Matplotlib provides extensive customization options to create informative and aesthetically pleasing scatter plots. Whether you&#8217;re exploring data patterns, comparing multiple datasets, or highlighting specific points, scatter plots offer a clear and effective way to present your data.<\/p>\n<h2>FAQs on Scatter Plots in Matplotlib<\/h2>\n<p>Here are some FAQs on Scatter Plots in Matplotlib:<\/p>\n<p><strong>1. What is a scatter plot?<\/strong><br \/>\nA scatter plot is a type of data visualization that displays individual data points on a two-dimensional plane, showing the relationship between two continuous variables. Each point represents an observation in the dataset, with its position determined by the values of the two variables.<\/p>\n<p><strong>2. How do I create a basic scatter plot in Python using Matplotlib?<\/strong><br \/>\nYou can create a basic scatter plot using the following code:<\/p>\n<pre><code>import matplotlib.pyplot as plt\nimport numpy as np\n\n# Generate random data\nnp.random.seed(0)\nx = np.random.rand(50)\ny = np.random.rand(50)\n\n# Create a scatter plot\nplt.scatter(x, y)\nplt.title('Basic Scatter Plot')\nplt.xlabel('X-axis Label')\nplt.ylabel('Y-axis Label')\nplt.show()<\/code><\/pre>\n<p><strong>3. How can I customize the colors and sizes of the markers in a scatter plot?<\/strong><br \/>\nYou can customize the colors and sizes of the markers using the c and s parameters:<\/p>\n<pre><code>colors = np.random.rand(50)\nsizes = 1000 * np.random.rand(50)\n\nplt.scatter(x, y, c=colors, s=sizes, alpha=0.5, cmap='viridis')\nplt.title('Customized Scatter Plot')\nplt.xlabel('X-axis Label')\nplt.ylabel('Y-axis Label')\nplt.colorbar()  # Show color scale\nplt.show()<\/code><\/pre>\n<p><strong>4. How do I change the marker style in a scatter plot?<\/strong><br \/>\nYou can change the marker style using the marker parameter:<\/p>\n<pre><code>plt.scatter(x, y, marker='^')\nplt.title('Scatter Plot with Different Marker Style')\nplt.xlabel('X-axis Label')\nplt.ylabel('Y-axis Label')\nplt.show()<\/code><\/pre>\n<p><strong>5. How do I add annotations to specific points in a scatter plot?<\/strong><br \/>\nYou can add annotations using the plt.annotate function:<\/p>\n<pre><code>plt.scatter(x, y)\n\n# Annotate a specific point\nplt.annotate('Important Point', xy=(x[10], y[10]), xytext=(x[10]+0.1, y[10]+0.1),\n             arrowprops=dict(facecolor='black', shrink=0.05))\n\nplt.title('Scatter Plot with Annotation')\nplt.xlabel('X-axis Label')\nplt.ylabel('Y-axis Label')\nplt.show()<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Scatter plots are a fundamental tool for visualizing the relationship between two continuous variables. By plotting data points on a two-dimensional plane, scatter plots help identify patterns, trends, and potential correlations within the data. In this article, we&#8217;ll explore how to create and customize scatter plots using Matplotlib, a popular plotting library in Python. What [&hellip;]<\/p>\n","protected":false},"author":52,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[236],"tags":[],"class_list":["post-19281","post","type-post","status-publish","format-standard","hentry","category-data-science"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Scatter Plot in Matplotlib<\/title>\n<meta name=\"description\" content=\"A scatter plot is a type of data visualization that displays individual data points on a two-dimensional plane\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/prepbytes.com\/blog\/scatter-plot-in-matplotlib\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Scatter Plot in Matplotlib\" \/>\n<meta property=\"og:description\" content=\"A scatter plot is a type of data visualization that displays individual data points on a two-dimensional plane\" \/>\n<meta property=\"og:url\" content=\"https:\/\/prepbytes.com\/blog\/scatter-plot-in-matplotlib\/\" \/>\n<meta property=\"og:site_name\" content=\"PrepBytes Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prepbytes0211\/\" \/>\n<meta property=\"article:published_time\" content=\"2024-07-18T06:15:11+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1721283303423-Scatter%20Plot%20in%20Matplotlib.png\" \/>\n<meta name=\"author\" content=\"Prepbytes\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Prepbytes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/prepbytes.com\/blog\/scatter-plot-in-matplotlib\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/prepbytes.com\/blog\/scatter-plot-in-matplotlib\/\"},\"author\":{\"name\":\"Prepbytes\",\"@id\":\"http:\/\/43.205.93.38\/#\/schema\/person\/3f7dc4ae851791d5947a7f99df363d5e\"},\"headline\":\"Scatter Plot in Matplotlib\",\"datePublished\":\"2024-07-18T06:15:11+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/prepbytes.com\/blog\/scatter-plot-in-matplotlib\/\"},\"wordCount\":651,\"commentCount\":0,\"publisher\":{\"@id\":\"http:\/\/43.205.93.38\/#organization\"},\"image\":{\"@id\":\"https:\/\/prepbytes.com\/blog\/scatter-plot-in-matplotlib\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1721283303423-Scatter%20Plot%20in%20Matplotlib.png\",\"articleSection\":[\"Data Science\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/prepbytes.com\/blog\/scatter-plot-in-matplotlib\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/prepbytes.com\/blog\/scatter-plot-in-matplotlib\/\",\"url\":\"https:\/\/prepbytes.com\/blog\/scatter-plot-in-matplotlib\/\",\"name\":\"Scatter Plot in Matplotlib\",\"isPartOf\":{\"@id\":\"http:\/\/43.205.93.38\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/prepbytes.com\/blog\/scatter-plot-in-matplotlib\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/prepbytes.com\/blog\/scatter-plot-in-matplotlib\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1721283303423-Scatter%20Plot%20in%20Matplotlib.png\",\"datePublished\":\"2024-07-18T06:15:11+00:00\",\"description\":\"A scatter plot is a type of data visualization that displays individual data points on a two-dimensional plane\",\"breadcrumb\":{\"@id\":\"https:\/\/prepbytes.com\/blog\/scatter-plot-in-matplotlib\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/prepbytes.com\/blog\/scatter-plot-in-matplotlib\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/prepbytes.com\/blog\/scatter-plot-in-matplotlib\/#primaryimage\",\"url\":\"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1721283303423-Scatter%20Plot%20in%20Matplotlib.png\",\"contentUrl\":\"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1721283303423-Scatter%20Plot%20in%20Matplotlib.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/prepbytes.com\/blog\/scatter-plot-in-matplotlib\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\/\/43.205.93.38\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Data Science\",\"item\":\"https:\/\/prepbytes.com\/blog\/category\/data-science\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Scatter Plot in Matplotlib\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\/\/43.205.93.38\/#website\",\"url\":\"http:\/\/43.205.93.38\/\",\"name\":\"PrepBytes Blog\",\"description\":\"ONE-STOP RESOURCE FOR EVERYTHING RELATED TO CODING\",\"publisher\":{\"@id\":\"http:\/\/43.205.93.38\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/43.205.93.38\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"http:\/\/43.205.93.38\/#organization\",\"name\":\"Prepbytes\",\"url\":\"http:\/\/43.205.93.38\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/43.205.93.38\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/blog.prepbytes.com\/wp-content\/uploads\/2025\/07\/uzxxllgloialmn9mhwfe.webp\",\"contentUrl\":\"https:\/\/blog.prepbytes.com\/wp-content\/uploads\/2025\/07\/uzxxllgloialmn9mhwfe.webp\",\"width\":160,\"height\":160,\"caption\":\"Prepbytes\"},\"image\":{\"@id\":\"http:\/\/43.205.93.38\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/prepbytes0211\/\",\"https:\/\/www.instagram.com\/prepbytes\/\",\"https:\/\/www.linkedin.com\/company\/prepbytes\/\",\"https:\/\/www.youtube.com\/channel\/UC0xGnHDrjUM1pDEK2Ka5imA\"]},{\"@type\":\"Person\",\"@id\":\"http:\/\/43.205.93.38\/#\/schema\/person\/3f7dc4ae851791d5947a7f99df363d5e\",\"name\":\"Prepbytes\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/43.205.93.38\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/232042cd1a1ea0e982c96d2a2ec93fb70a8e864e00784491231e7bfe5a9e06b5?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/232042cd1a1ea0e982c96d2a2ec93fb70a8e864e00784491231e7bfe5a9e06b5?s=96&d=mm&r=g\",\"caption\":\"Prepbytes\"},\"url\":\"https:\/\/prepbytes.com\/blog\/author\/gourav-jaincollegedekho-com\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Scatter Plot in Matplotlib","description":"A scatter plot is a type of data visualization that displays individual data points on a two-dimensional plane","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/prepbytes.com\/blog\/scatter-plot-in-matplotlib\/","og_locale":"en_US","og_type":"article","og_title":"Scatter Plot in Matplotlib","og_description":"A scatter plot is a type of data visualization that displays individual data points on a two-dimensional plane","og_url":"https:\/\/prepbytes.com\/blog\/scatter-plot-in-matplotlib\/","og_site_name":"PrepBytes Blog","article_publisher":"https:\/\/www.facebook.com\/prepbytes0211\/","article_published_time":"2024-07-18T06:15:11+00:00","og_image":[{"url":"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1721283303423-Scatter%20Plot%20in%20Matplotlib.png","type":"","width":"","height":""}],"author":"Prepbytes","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Prepbytes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/prepbytes.com\/blog\/scatter-plot-in-matplotlib\/#article","isPartOf":{"@id":"https:\/\/prepbytes.com\/blog\/scatter-plot-in-matplotlib\/"},"author":{"name":"Prepbytes","@id":"http:\/\/43.205.93.38\/#\/schema\/person\/3f7dc4ae851791d5947a7f99df363d5e"},"headline":"Scatter Plot in Matplotlib","datePublished":"2024-07-18T06:15:11+00:00","mainEntityOfPage":{"@id":"https:\/\/prepbytes.com\/blog\/scatter-plot-in-matplotlib\/"},"wordCount":651,"commentCount":0,"publisher":{"@id":"http:\/\/43.205.93.38\/#organization"},"image":{"@id":"https:\/\/prepbytes.com\/blog\/scatter-plot-in-matplotlib\/#primaryimage"},"thumbnailUrl":"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1721283303423-Scatter%20Plot%20in%20Matplotlib.png","articleSection":["Data Science"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/prepbytes.com\/blog\/scatter-plot-in-matplotlib\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/prepbytes.com\/blog\/scatter-plot-in-matplotlib\/","url":"https:\/\/prepbytes.com\/blog\/scatter-plot-in-matplotlib\/","name":"Scatter Plot in Matplotlib","isPartOf":{"@id":"http:\/\/43.205.93.38\/#website"},"primaryImageOfPage":{"@id":"https:\/\/prepbytes.com\/blog\/scatter-plot-in-matplotlib\/#primaryimage"},"image":{"@id":"https:\/\/prepbytes.com\/blog\/scatter-plot-in-matplotlib\/#primaryimage"},"thumbnailUrl":"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1721283303423-Scatter%20Plot%20in%20Matplotlib.png","datePublished":"2024-07-18T06:15:11+00:00","description":"A scatter plot is a type of data visualization that displays individual data points on a two-dimensional plane","breadcrumb":{"@id":"https:\/\/prepbytes.com\/blog\/scatter-plot-in-matplotlib\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/prepbytes.com\/blog\/scatter-plot-in-matplotlib\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/prepbytes.com\/blog\/scatter-plot-in-matplotlib\/#primaryimage","url":"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1721283303423-Scatter%20Plot%20in%20Matplotlib.png","contentUrl":"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1721283303423-Scatter%20Plot%20in%20Matplotlib.png"},{"@type":"BreadcrumbList","@id":"https:\/\/prepbytes.com\/blog\/scatter-plot-in-matplotlib\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/43.205.93.38\/"},{"@type":"ListItem","position":2,"name":"Data Science","item":"https:\/\/prepbytes.com\/blog\/category\/data-science\/"},{"@type":"ListItem","position":3,"name":"Scatter Plot in Matplotlib"}]},{"@type":"WebSite","@id":"http:\/\/43.205.93.38\/#website","url":"http:\/\/43.205.93.38\/","name":"PrepBytes Blog","description":"ONE-STOP RESOURCE FOR EVERYTHING RELATED TO CODING","publisher":{"@id":"http:\/\/43.205.93.38\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/43.205.93.38\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"http:\/\/43.205.93.38\/#organization","name":"Prepbytes","url":"http:\/\/43.205.93.38\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/43.205.93.38\/#\/schema\/logo\/image\/","url":"https:\/\/blog.prepbytes.com\/wp-content\/uploads\/2025\/07\/uzxxllgloialmn9mhwfe.webp","contentUrl":"https:\/\/blog.prepbytes.com\/wp-content\/uploads\/2025\/07\/uzxxllgloialmn9mhwfe.webp","width":160,"height":160,"caption":"Prepbytes"},"image":{"@id":"http:\/\/43.205.93.38\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/prepbytes0211\/","https:\/\/www.instagram.com\/prepbytes\/","https:\/\/www.linkedin.com\/company\/prepbytes\/","https:\/\/www.youtube.com\/channel\/UC0xGnHDrjUM1pDEK2Ka5imA"]},{"@type":"Person","@id":"http:\/\/43.205.93.38\/#\/schema\/person\/3f7dc4ae851791d5947a7f99df363d5e","name":"Prepbytes","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/43.205.93.38\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/232042cd1a1ea0e982c96d2a2ec93fb70a8e864e00784491231e7bfe5a9e06b5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/232042cd1a1ea0e982c96d2a2ec93fb70a8e864e00784491231e7bfe5a9e06b5?s=96&d=mm&r=g","caption":"Prepbytes"},"url":"https:\/\/prepbytes.com\/blog\/author\/gourav-jaincollegedekho-com\/"}]}},"_links":{"self":[{"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/posts\/19281","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/users\/52"}],"replies":[{"embeddable":true,"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/comments?post=19281"}],"version-history":[{"count":1,"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/posts\/19281\/revisions"}],"predecessor-version":[{"id":19282,"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/posts\/19281\/revisions\/19282"}],"wp:attachment":[{"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/media?parent=19281"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/categories?post=19281"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/tags?post=19281"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}