{"id":9711,"date":"2020-04-23T12:55:00","date_gmt":"2020-04-23T07:25:00","guid":{"rendered":"http:\/\/ivyproschool.com\/blog\/?p=9711"},"modified":"2021-06-10T17:38:26","modified_gmt":"2021-06-10T12:08:26","slug":"how-to-create-scatter-plot-in-python","status":"publish","type":"post","link":"https:\/\/ivyproschool.com\/blog\/how-to-create-scatter-plot-in-python\/","title":{"rendered":"How to create Scatter Plot in Python?"},"content":{"rendered":"<p><a href=\"https:\/\/ivyproschool.com\/blog\/how-to-create-scatter-plot-in-python\/\"><\/a><\/p>\n<p><a href=\"https:\/\/ivyproschool.com\/blog\/how-to-create-scatter-plot-in-python\/\"><\/p>\n<h2><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-9735 aligncenter\" src=\"https:\/\/ivyproschool.com\/blog\/wp-content\/uploads\/2015\/08\/Blog-Cover-300x139.png\" alt=\"How to create a scatter plot in python cover image\" width=\"300\" height=\"139\" srcset=\"https:\/\/ivyproschool.com\/blog\/wp-content\/uploads\/2015\/08\/Blog-Cover-300x139.png 300w, https:\/\/ivyproschool.com\/blog\/wp-content\/uploads\/2015\/08\/Blog-Cover-768x356.png 768w, https:\/\/ivyproschool.com\/blog\/wp-content\/uploads\/2015\/08\/Blog-Cover-1024x474.png 1024w, https:\/\/ivyproschool.com\/blog\/wp-content\/uploads\/2015\/08\/Blog-Cover.png 1080w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/h2>\n<p><\/a><a href=\"https:\/\/ivyproschool.com\/blog\/how-to-create-scatter-plot-in-python\/\"><\/a><\/p>\n<h2>Introduction &#8211;<\/h2>\n<p><a href=\"\">Data Visualization is necessary and indeed a very interesting scope of work while solving any Data Science problem. There are several licensed and open-source Data Visualization tools available in the market like Tableau, Power BI, DataWrapper, Infogram, etc. Having said that, Python is in no way behind and provides some amazing libraries to perform Data Visualization activities. In relation to Python Programming Language, we have established some fundamental concepts in our previous few tutorials like <\/a><a href=\"https:\/\/ivyproschool.com\/blog\/2020\/03\/20\/top-5-python-data-types-that-you-should-know\/\">Python Data Types<\/a>, <a href=\"https:\/\/ivyproschool.com\/blog\/2020\/03\/26\/python-loop\/\">Loops in Python<\/a>. There are various ways to visualize data by creating Histogram, Bar Plot, Scatter Plot, Box Plot, Heat Map, Line Chart, etc. In this article, we are going to look at how to create a scatter plot in Python using the widely used libraries like Pandas, Seaborn, Matplotlib, etc.<\/p>\n<p>The data set we are going to use for our charts is the Diamond data from the <a href=\"https:\/\/www.kaggle.com\/shivam2503\/diamonds\">Kaggle website<\/a>. Let us import the diamonds.csv and create a data frame out of it in Python using Pandas. We can see the first few rows of the data frame as well using the head command.<\/p>\n<div>\n<pre>import pandas as pd\r\nimport&nbsp;seaborn&nbsp;as&nbsp;sns\r\n!pip&nbsp;install&nbsp;matplotlib\r\nimport&nbsp;matplotlib.pyplot&nbsp;as&nbsp;plt\r\nfrom&nbsp;pandas&nbsp;import&nbsp;ExcelWriter\r\nfrom pandas import ExcelFile\r\n\r\n%matplotlib&nbsp;inline\r\n\r\nDiamondPrices = pd.read_csv(r'diamonds.csv')\r\nDiamondPrices = DiamondPrices.drop('Unnamed: 0', axis =1)\r\nDiamondPrices.head(10)<\/pre>\n<pre><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-9712\" src=\"https:\/\/ivyproschool.com\/blog\/wp-content\/uploads\/2015\/08\/Data_Frame_head-300x173.png\" alt=\"Diamonds Data Frame Head\" width=\"300\" height=\"173\" srcset=\"https:\/\/ivyproschool.com\/blog\/wp-content\/uploads\/2015\/08\/Data_Frame_head-300x173.png 300w, https:\/\/ivyproschool.com\/blog\/wp-content\/uploads\/2015\/08\/Data_Frame_head.png 747w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/pre>\n<p>The &#8216;Price&#8217; column is our target variable or the dependent variable. Other columns are the independent variables in this data set.<\/p>\n<h2>Scatter Plot &#8211;<\/h2>\n<p>We begin our Data Visualization with Scatter Plot which can be created using Pandas, Matplotlib or even Seaborn library. Let us generate the scatter plot using the libraries one by one.<\/p>\n<h3>Scatter Plot using Matplotlib &#8211;<\/h3>\n<div>\n<pre>#&nbsp;create&nbsp;a&nbsp;figure&nbsp;and&nbsp;axis\r\nfig,&nbsp;ax&nbsp;=&nbsp;plt.subplots()\r\n\r\nx&nbsp;=&nbsp;DiamondPrices['price']\r\ny&nbsp;=&nbsp;DiamondPrices['carat']\r\n\r\n#&nbsp;scatter&nbsp;the&nbsp;price&nbsp;against&nbsp;the&nbsp;carat\r\nax.scatter(x,y)\r\n\r\n#&nbsp;set&nbsp;a&nbsp;title&nbsp;and&nbsp;labels\r\nax.set_title('Diamond&nbsp;Dataset')\r\nax.set_xlabel('Price')\r\nax.set_ylabel('Carat')\r\n\r\n#save the plot figure \r\nfig.savefig('scatter_plot_matplotlib.png')<\/pre>\n<pre>#display the plot\r\nplt.show()<\/pre>\n<\/div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-9714\" src=\"https:\/\/ivyproschool.com\/blog\/wp-content\/uploads\/2015\/08\/scatter_plot_matplotlib-1-300x200.png\" alt=\"Matplotlib Scatter plot\" width=\"300\" height=\"200\" srcset=\"https:\/\/ivyproschool.com\/blog\/wp-content\/uploads\/2015\/08\/scatter_plot_matplotlib-1-300x200.png 300w, https:\/\/ivyproschool.com\/blog\/wp-content\/uploads\/2015\/08\/scatter_plot_matplotlib-1.png 432w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>Can you recognize the correlation between Carat and Price?<\/p>\n<\/div>\n<h3>Scatter Plot Using Pandas &#8211;<\/h3>\n<div>\n<pre>DiamondPrices.plot.scatter(x='carat',&nbsp;y='price',&nbsp;title='Diamond&nbsp;Price',&nbsp;marker='*',&nbsp;color='green').get_figure().savefig(r'Pandas&nbsp;Scatter&nbsp;Plot.png')<\/pre>\n<\/div>\n<div><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-9716\" src=\"https:\/\/ivyproschool.com\/blog\/wp-content\/uploads\/2015\/08\/Pandas-Scatter-Plot-300x200.png\" alt=\"Pandas scatter plot\" width=\"300\" height=\"200\" srcset=\"https:\/\/ivyproschool.com\/blog\/wp-content\/uploads\/2015\/08\/Pandas-Scatter-Plot-300x200.png 300w, https:\/\/ivyproschool.com\/blog\/wp-content\/uploads\/2015\/08\/Pandas-Scatter-Plot.png 432w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/div>\n<div>As is seen, it is a very simple one-line command which helps us generate the plot. We are also able to save the plot figure. Now let us see another beauty of the Pandas library in creating a scatter matrix of all the quantitative columns in the data frame. We pass the whole data frame as an argument in the scatter_matrix command. It considers only the numerical columns for plotting by default.<\/div>\n<div>\n<div>\n<pre>pd.plotting.scatter_matrix(DiamondPrices, figsize=[15,10], marker ='*', color = 'yellow')\r\nplt.savefig(r'Pandas Scatter Matrix Plot.png')<\/pre>\n<\/div>\n<\/div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-9717\" src=\"https:\/\/ivyproschool.com\/blog\/wp-content\/uploads\/2015\/08\/Pandas-Scatter-Matrix-Plot-300x200.png\" alt=\"Pandas Scatter Matrix Plot\" width=\"300\" height=\"200\" srcset=\"https:\/\/ivyproschool.com\/blog\/wp-content\/uploads\/2015\/08\/Pandas-Scatter-Matrix-Plot-300x200.png 300w, https:\/\/ivyproschool.com\/blog\/wp-content\/uploads\/2015\/08\/Pandas-Scatter-Matrix-Plot-768x512.png 768w, https:\/\/ivyproschool.com\/blog\/wp-content\/uploads\/2015\/08\/Pandas-Scatter-Matrix-Plot-1024x683.png 1024w, https:\/\/ivyproschool.com\/blog\/wp-content\/uploads\/2015\/08\/Pandas-Scatter-Matrix-Plot-450x300.png 450w, https:\/\/ivyproschool.com\/blog\/wp-content\/uploads\/2015\/08\/Pandas-Scatter-Matrix-Plot.png 1080w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<h3>Scatter Plot Using Seaborn &#8211;<\/h3>\n<div>\n<pre>sns.scatterplot(x='carat',&nbsp;y='price',&nbsp;data=DiamondPrices)\r\nplt.savefig('seaborn&nbsp;scatter&nbsp;plot.png')<\/pre>\n<\/div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-9719\" src=\"https:\/\/ivyproschool.com\/blog\/wp-content\/uploads\/2015\/08\/seaborn-scatter-plot-300x200.png\" alt=\"Seaborn Scatter Plot\" width=\"300\" height=\"200\" srcset=\"https:\/\/ivyproschool.com\/blog\/wp-content\/uploads\/2015\/08\/seaborn-scatter-plot-300x200.png 300w, https:\/\/ivyproschool.com\/blog\/wp-content\/uploads\/2015\/08\/seaborn-scatter-plot.png 432w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>To create a scatter matrix plot similar to what we created for all the quantitative variables in the data frame using the Pandas library, we can use the below command.<\/p>\n<div>\n<pre>sns.set(style=\"ticks\")\r\nsns.set_palette(\"husl\")\r\nsns.pairplot(DiamondPrices)\r\nplt.savefig('seaborn&nbsp;scatter&nbsp;pair&nbsp;plot.png')<\/pre>\n<h2><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-9733\" src=\"https:\/\/ivyproschool.com\/blog\/wp-content\/uploads\/2015\/08\/seaborn-scatter-pair-plot-1-300x279.png\" alt=\"seaborn scatter pair plot \" width=\"300\" height=\"279\" srcset=\"https:\/\/ivyproschool.com\/blog\/wp-content\/uploads\/2015\/08\/seaborn-scatter-pair-plot-1-300x279.png 300w, https:\/\/ivyproschool.com\/blog\/wp-content\/uploads\/2015\/08\/seaborn-scatter-pair-plot-1-768x714.png 768w, https:\/\/ivyproschool.com\/blog\/wp-content\/uploads\/2015\/08\/seaborn-scatter-pair-plot-1-1024x952.png 1024w, https:\/\/ivyproschool.com\/blog\/wp-content\/uploads\/2015\/08\/seaborn-scatter-pair-plot-1.png 1356w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/h2>\n<h2>Conclusion &#8211;<\/h2>\n<p>Do read the documentation of these commands to get a clear understanding of various arguments one can pass. Like <a href=\"https:\/\/seaborn.pydata.org\/generated\/seaborn.pairplot.html\">Seaborn Scatter Pair Plot documentation<\/a>. I hope that you practice these scatter plot commands on your own data sets and get a grip on them. Next, we are going to create Histogram and Bar Plots using various libraries. Stay Tuned!<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Introduction &#8211; Data Visualization is necessary and indeed a very interesting scope of work while solving any Data Science problem. There are several licensed and open-source Data Visualization tools available in the market like Tableau, Power BI, DataWrapper, Infogram, etc. Having said that, Python is in no way behind and provides some amazing libraries to perform Data Visualization activities. In relation to Python Programming Language, we have established some fundamental concepts in our previous few tutorials like Python Data Types, Loops in Python. There are various ways to visualize data by creating Histogram, Bar Plot, Scatter Plot, Box Plot, Heat Map, Line Chart, etc. In this article, we are going to look at how to create a scatter plot in Python using the widely used libraries like Pandas, Seaborn, Matplotlib, etc. The data set we are going to use for our charts is the Diamond data from the Kaggle website. Let us import the diamonds.csv and create a data frame out of it in Python using Pandas. We can see the first few rows of the data frame as well using the head command. import pandas as pd import&nbsp;seaborn&nbsp;as&nbsp;sns !pip&nbsp;install&nbsp;matplotlib import&nbsp;matplotlib.pyplot&nbsp;as&nbsp;plt from&nbsp;pandas&nbsp;import&nbsp;ExcelWriter from pandas import ExcelFile %matplotlib&nbsp;inline DiamondPrices = pd.read_csv(r&#8217;diamonds.csv&#8217;) [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":9735,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[851,5,881,715],"tags":[714,56,76,467,511,504,140,716],"class_list":["post-9711","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-business-analytics","category-data-analytics","category-data-science","category-machine-learning-ai","tag-artificial-intelligence","tag-big-data-analytics","tag-business-analytics","tag-data-science","tag-ivy-professional-school","tag-machine-learning","tag-predictive-analytics","tag-python"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to create Scatter Plot in Python | Ivy Professional School<\/title>\n<meta name=\"description\" content=\"This article explains how we can create Scatter Plot in Python using the various libraries like Pandas, Matplotlib and Seaborn.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ivyproschool.com\/blog\/how-to-create-scatter-plot-in-python\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to create Scatter Plot in Python | Ivy Professional School\" \/>\n<meta property=\"og:description\" content=\"This article explains how we can create Scatter Plot in Python using the various libraries like Pandas, Matplotlib and Seaborn.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ivyproschool.com\/blog\/how-to-create-scatter-plot-in-python\/\" \/>\n<meta property=\"og:site_name\" content=\"R vs Python: Which Analytics Tool Should You Choose for Data Science?\" \/>\n<meta property=\"article:author\" content=\"https:\/\/facebook.com\/ivyproschool\" \/>\n<meta property=\"article:published_time\" content=\"2020-04-23T07:25:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-06-10T12:08:26+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/ivyproschool.com\/blog\/wp-content\/uploads\/2015\/08\/Blog-Cover.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1080\" \/>\n\t<meta property=\"og:image:height\" content=\"500\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Ivy Professional School\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@ivyproschool\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ivy Professional School\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/ivyproschool.com\\\/blog\\\/how-to-create-scatter-plot-in-python\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/ivyproschool.com\\\/blog\\\/how-to-create-scatter-plot-in-python\\\/\"},\"author\":{\"name\":\"Ivy Professional School\",\"@id\":\"https:\\\/\\\/ivyproschool.com\\\/blog\\\/#\\\/schema\\\/person\\\/31fdab8559dd3db99173764bfb60215d\"},\"headline\":\"How to create Scatter Plot in Python?\",\"datePublished\":\"2020-04-23T07:25:00+00:00\",\"dateModified\":\"2021-06-10T12:08:26+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/ivyproschool.com\\\/blog\\\/how-to-create-scatter-plot-in-python\\\/\"},\"wordCount\":435,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/ivyproschool.com\\\/blog\\\/how-to-create-scatter-plot-in-python\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/ivyproschool.com\\\/blog\\\/wp-content\\\/uploads\\\/2015\\\/08\\\/Blog-Cover.png\",\"keywords\":[\"Artificial Intelligence\",\"Big Data analytics\",\"business analytics\",\"data science\",\"IVY Professional School\",\"machine learning\",\"predictive analytics\",\"python\"],\"articleSection\":[\"Business Analytics\",\"Data Analytics\",\"Data Science\",\"Machine Learning &amp; AI\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/ivyproschool.com\\\/blog\\\/how-to-create-scatter-plot-in-python\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/ivyproschool.com\\\/blog\\\/how-to-create-scatter-plot-in-python\\\/\",\"url\":\"https:\\\/\\\/ivyproschool.com\\\/blog\\\/how-to-create-scatter-plot-in-python\\\/\",\"name\":\"How to create Scatter Plot in Python | Ivy Professional School\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/ivyproschool.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/ivyproschool.com\\\/blog\\\/how-to-create-scatter-plot-in-python\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/ivyproschool.com\\\/blog\\\/how-to-create-scatter-plot-in-python\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/ivyproschool.com\\\/blog\\\/wp-content\\\/uploads\\\/2015\\\/08\\\/Blog-Cover.png\",\"datePublished\":\"2020-04-23T07:25:00+00:00\",\"dateModified\":\"2021-06-10T12:08:26+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/ivyproschool.com\\\/blog\\\/#\\\/schema\\\/person\\\/31fdab8559dd3db99173764bfb60215d\"},\"description\":\"This article explains how we can create Scatter Plot in Python using the various libraries like Pandas, Matplotlib and Seaborn.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/ivyproschool.com\\\/blog\\\/how-to-create-scatter-plot-in-python\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/ivyproschool.com\\\/blog\\\/how-to-create-scatter-plot-in-python\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/ivyproschool.com\\\/blog\\\/how-to-create-scatter-plot-in-python\\\/#primaryimage\",\"url\":\"https:\\\/\\\/ivyproschool.com\\\/blog\\\/wp-content\\\/uploads\\\/2015\\\/08\\\/Blog-Cover.png\",\"contentUrl\":\"https:\\\/\\\/ivyproschool.com\\\/blog\\\/wp-content\\\/uploads\\\/2015\\\/08\\\/Blog-Cover.png\",\"width\":1080,\"height\":500,\"caption\":\"How to create a scatter plot in python\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/ivyproschool.com\\\/blog\\\/how-to-create-scatter-plot-in-python\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/ivyproschool.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to create Scatter Plot in Python?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/ivyproschool.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/ivyproschool.com\\\/blog\\\/\",\"name\":\"Ivy Professional School | Official Blog\",\"description\":\"Confused between R and Python for your data science journey? Discover the key differences in data visualization, handling capabilities, speed, and ease of learning.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/ivyproschool.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/ivyproschool.com\\\/blog\\\/#\\\/schema\\\/person\\\/31fdab8559dd3db99173764bfb60215d\",\"name\":\"Ivy Professional School\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/866b09293f13d461b399bb9a40607e85623ede13d844f763bf665689cb0d1452?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/866b09293f13d461b399bb9a40607e85623ede13d844f763bf665689cb0d1452?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/866b09293f13d461b399bb9a40607e85623ede13d844f763bf665689cb0d1452?s=96&d=mm&r=g\",\"caption\":\"Ivy Professional School\"},\"sameAs\":[\"http:\\\/\\\/www.ivyproschool.com\",\"https:\\\/\\\/facebook.com\\\/ivyproschool\",\"https:\\\/\\\/instagram.com\\\/ivyproschool\",\"https:\\\/\\\/x.com\\\/ivyproschool\",\"https:\\\/\\\/youtube.com\\\/ivyproschool\"],\"url\":\"https:\\\/\\\/ivyproschool.com\\\/blog\\\/author\\\/prateek\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to create Scatter Plot in Python | Ivy Professional School","description":"This article explains how we can create Scatter Plot in Python using the various libraries like Pandas, Matplotlib and Seaborn.","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:\/\/ivyproschool.com\/blog\/how-to-create-scatter-plot-in-python\/","og_locale":"en_US","og_type":"article","og_title":"How to create Scatter Plot in Python | Ivy Professional School","og_description":"This article explains how we can create Scatter Plot in Python using the various libraries like Pandas, Matplotlib and Seaborn.","og_url":"https:\/\/ivyproschool.com\/blog\/how-to-create-scatter-plot-in-python\/","og_site_name":"R vs Python: Which Analytics Tool Should You Choose for Data Science?","article_author":"https:\/\/facebook.com\/ivyproschool","article_published_time":"2020-04-23T07:25:00+00:00","article_modified_time":"2021-06-10T12:08:26+00:00","og_image":[{"width":1080,"height":500,"url":"https:\/\/ivyproschool.com\/blog\/wp-content\/uploads\/2015\/08\/Blog-Cover.png","type":"image\/png"}],"author":"Ivy Professional School","twitter_card":"summary_large_image","twitter_creator":"@ivyproschool","twitter_misc":{"Written by":"Ivy Professional School","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/ivyproschool.com\/blog\/how-to-create-scatter-plot-in-python\/#article","isPartOf":{"@id":"https:\/\/ivyproschool.com\/blog\/how-to-create-scatter-plot-in-python\/"},"author":{"name":"Ivy Professional School","@id":"https:\/\/ivyproschool.com\/blog\/#\/schema\/person\/31fdab8559dd3db99173764bfb60215d"},"headline":"How to create Scatter Plot in Python?","datePublished":"2020-04-23T07:25:00+00:00","dateModified":"2021-06-10T12:08:26+00:00","mainEntityOfPage":{"@id":"https:\/\/ivyproschool.com\/blog\/how-to-create-scatter-plot-in-python\/"},"wordCount":435,"commentCount":0,"image":{"@id":"https:\/\/ivyproschool.com\/blog\/how-to-create-scatter-plot-in-python\/#primaryimage"},"thumbnailUrl":"https:\/\/ivyproschool.com\/blog\/wp-content\/uploads\/2015\/08\/Blog-Cover.png","keywords":["Artificial Intelligence","Big Data analytics","business analytics","data science","IVY Professional School","machine learning","predictive analytics","python"],"articleSection":["Business Analytics","Data Analytics","Data Science","Machine Learning &amp; AI"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/ivyproschool.com\/blog\/how-to-create-scatter-plot-in-python\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/ivyproschool.com\/blog\/how-to-create-scatter-plot-in-python\/","url":"https:\/\/ivyproschool.com\/blog\/how-to-create-scatter-plot-in-python\/","name":"How to create Scatter Plot in Python | Ivy Professional School","isPartOf":{"@id":"https:\/\/ivyproschool.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/ivyproschool.com\/blog\/how-to-create-scatter-plot-in-python\/#primaryimage"},"image":{"@id":"https:\/\/ivyproschool.com\/blog\/how-to-create-scatter-plot-in-python\/#primaryimage"},"thumbnailUrl":"https:\/\/ivyproschool.com\/blog\/wp-content\/uploads\/2015\/08\/Blog-Cover.png","datePublished":"2020-04-23T07:25:00+00:00","dateModified":"2021-06-10T12:08:26+00:00","author":{"@id":"https:\/\/ivyproschool.com\/blog\/#\/schema\/person\/31fdab8559dd3db99173764bfb60215d"},"description":"This article explains how we can create Scatter Plot in Python using the various libraries like Pandas, Matplotlib and Seaborn.","breadcrumb":{"@id":"https:\/\/ivyproschool.com\/blog\/how-to-create-scatter-plot-in-python\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ivyproschool.com\/blog\/how-to-create-scatter-plot-in-python\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ivyproschool.com\/blog\/how-to-create-scatter-plot-in-python\/#primaryimage","url":"https:\/\/ivyproschool.com\/blog\/wp-content\/uploads\/2015\/08\/Blog-Cover.png","contentUrl":"https:\/\/ivyproschool.com\/blog\/wp-content\/uploads\/2015\/08\/Blog-Cover.png","width":1080,"height":500,"caption":"How to create a scatter plot in python"},{"@type":"BreadcrumbList","@id":"https:\/\/ivyproschool.com\/blog\/how-to-create-scatter-plot-in-python\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/ivyproschool.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to create Scatter Plot in Python?"}]},{"@type":"WebSite","@id":"https:\/\/ivyproschool.com\/blog\/#website","url":"https:\/\/ivyproschool.com\/blog\/","name":"Ivy Professional School | Official Blog","description":"Confused between R and Python for your data science journey? Discover the key differences in data visualization, handling capabilities, speed, and ease of learning.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ivyproschool.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/ivyproschool.com\/blog\/#\/schema\/person\/31fdab8559dd3db99173764bfb60215d","name":"Ivy Professional School","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/866b09293f13d461b399bb9a40607e85623ede13d844f763bf665689cb0d1452?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/866b09293f13d461b399bb9a40607e85623ede13d844f763bf665689cb0d1452?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/866b09293f13d461b399bb9a40607e85623ede13d844f763bf665689cb0d1452?s=96&d=mm&r=g","caption":"Ivy Professional School"},"sameAs":["http:\/\/www.ivyproschool.com","https:\/\/facebook.com\/ivyproschool","https:\/\/instagram.com\/ivyproschool","https:\/\/x.com\/ivyproschool","https:\/\/youtube.com\/ivyproschool"],"url":"https:\/\/ivyproschool.com\/blog\/author\/prateek\/"}]}},"_links":{"self":[{"href":"https:\/\/ivyproschool.com\/blog\/wp-json\/wp\/v2\/posts\/9711","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ivyproschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ivyproschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ivyproschool.com\/blog\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/ivyproschool.com\/blog\/wp-json\/wp\/v2\/comments?post=9711"}],"version-history":[{"count":2,"href":"https:\/\/ivyproschool.com\/blog\/wp-json\/wp\/v2\/posts\/9711\/revisions"}],"predecessor-version":[{"id":10571,"href":"https:\/\/ivyproschool.com\/blog\/wp-json\/wp\/v2\/posts\/9711\/revisions\/10571"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ivyproschool.com\/blog\/wp-json\/wp\/v2\/media\/9735"}],"wp:attachment":[{"href":"https:\/\/ivyproschool.com\/blog\/wp-json\/wp\/v2\/media?parent=9711"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ivyproschool.com\/blog\/wp-json\/wp\/v2\/categories?post=9711"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ivyproschool.com\/blog\/wp-json\/wp\/v2\/tags?post=9711"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}