{"id":19270,"date":"2024-07-16T06:39:54","date_gmt":"2024-07-16T06:39:54","guid":{"rendered":"https:\/\/www.prepbytes.com\/blog\/?p=19270"},"modified":"2024-07-16T06:39:54","modified_gmt":"2024-07-16T06:39:54","slug":"styling-plots-using-matplotlib","status":"publish","type":"post","link":"https:\/\/prepbytes.com\/blog\/styling-plots-using-matplotlib\/","title":{"rendered":"Styling Plots Using Matplotlib"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1721111969393-Style%20Plots%20using%20Matplotlib.png\" alt=\"\" \/><\/p>\n<p>Matplotlib, a popular Python library for data visualization, offers a wide range of customization options to style your plots. These options help make plots more visually appealing and easier to understand. This article will guide you through various techniques to style plots using Matplotlib, covering everything from basic customizations to advanced styling techniques.<\/p>\n<h2>Basic Plot Customizations<\/h2>\n<p>Basic Plot Customizations are:<\/p>\n<p><strong>Line Styles and Colors<\/strong><br \/>\nOne of the simplest ways to customize your plots is by changing the line styles and colors. Matplotlib allows you to easily modify these properties using the plot function.<\/p>\n<pre><code>import matplotlib.pyplot as plt\nimport numpy as np\n\n# Data preparation\nx = np.linspace(0, 10, 100)\ny = np.sin(x)\n\n# Basic plot with customizations\nplt.plot(x, y, color='blue', linestyle='--', linewidth=2, marker='o', markerfacecolor='red')\nplt.title('Styled Sine Wave')\nplt.xlabel('X axis')\nplt.ylabel('Y axis')\nplt.show()<\/code><\/pre>\n<p><strong>In this example:<\/strong><br \/>\ncolor sets the line color.<br \/>\nlinestyle specifies the line style (dashed in this case).<br \/>\nlinewidth changes the width of the line.<br \/>\nmarker adds markers at each data point.<br \/>\nmarkerfacecolor sets the color of the markers.<\/p>\n<p><strong>Titles and Labels<\/strong><br \/>\nAdding and customizing titles and labels can make your plots more informative.<\/p>\n<pre><code>plt.plot(x, y, color='green')\nplt.title('Sine Wave', fontsize=14, fontweight='bold')\nplt.xlabel('X axis', fontsize=12)\nplt.ylabel('Y axis', fontsize=12)\nplt.show()<\/code><\/pre>\n<p><strong>In this example:<\/strong><br \/>\nfontsize changes the size of the text.<br \/>\nfontweight changes the weight (boldness) of the text.<\/p>\n<p><strong>Grid and Ticks<\/strong><br \/>\nCustomizing the grid and ticks can enhance the readability of your plots.<\/p>\n<pre><code>plt.plot(x, y, color='purple')\nplt.title('Sine Wave with Grid')\nplt.xlabel('X axis')\nplt.ylabel('Y axis')\n\n# Adding grid\nplt.grid(True, which='both', linestyle='--', linewidth=0.5)\n\n# Customizing ticks\nplt.xticks(np.arange(0, 11, 1))\nplt.yticks(np.arange(-1, 1.5, 0.5))\n\nplt.show()<\/code><\/pre>\n<p><strong>In this example:<\/strong><br \/>\nplt.grid adds a grid to the plot with custom line style and width.<br \/>\nplt.xticks and plt.yticks customize the tick locations.<\/p>\n<h3>Advanced Plot Customizations<\/h3>\n<p>Advanced Plot Customizations are:<\/p>\n<p><strong>Subplots<\/strong><br \/>\nCreating and customizing subplots allows you to present multiple plots in a single figure.<\/p>\n<pre><code>fig, axs = plt.subplots(2, 1, figsize=(8, 6))\n\naxs[0].plot(x, y, color='red')\naxs[0].set_title('Sine Wave')\naxs[0].grid(True)\n\naxs[1].plot(x, np.cos(x), color='blue')\naxs[1].set_title('Cosine Wave')\naxs[1].grid(True)\n\nplt.tight_layout()\nplt.show()<\/code><\/pre>\n<p><strong>In this example:<\/strong><br \/>\nfigsize sets the size of the figure.<br \/>\nplt.tight_layout adjusts the subplot parameters for better spacing.<\/p>\n<p><strong>Legends<\/strong><br \/>\nLegends are essential for distinguishing different data series in a plot.<\/p>\n<pre><code>y2 = np.cos(x)\n\nplt.plot(x, y, label='Sine', color='orange')\nplt.plot(x, y2, label='Cosine', color='green')\nplt.title('Sine and Cosine Waves')\nplt.xlabel('X axis')\nplt.ylabel('Y axis')\n\n# Adding legend\nplt.legend(loc='upper right', fontsize=10, title='Functions')\n\nplt.show()<\/code><\/pre>\n<p><strong>In this example:<\/strong><br \/>\nplt.legend adds a legend to the plot.<br \/>\nloc specifies the location of the legend.<br \/>\nfontsize and title customize the legend&#8217;s appearance.<\/p>\n<p><strong>Annotations<\/strong><br \/>\nAnnotations can be used to highlight specific points or areas in your plot.<\/p>\n<pre><code>plt.plot(x, y, color='blue')\nplt.title('Sine Wave with Annotation')\nplt.xlabel('X axis')\nplt.ylabel('Y axis')\n\n# Adding annotation\nplt.annotate('Max Value', xy=(np.pi\/2, 1), xytext=(np.pi\/2 + 1, 0.8),\n             arrowprops=dict(facecolor='black', shrink=0.05))\n\nplt.grid(True)\nplt.show()<\/code><\/pre>\n<p><strong>In this example:<\/strong><\/p>\n<ul>\n<li>plt.annotate adds an annotation with an arrow pointing to a specific data point.<\/li>\n<\/ul>\n<p><strong>Customizing Styles with style.use<\/strong><br \/>\nMatplotlib comes with several predefined styles that you can use to change the overall look of your plots.<\/p>\n<pre><code>plt.style.use('seaborn-darkgrid')\nplt.plot(x, y, color='magenta')\nplt.title('Styled Sine Wave with Seaborn-darkgrid')\nplt.xlabel('X axis')\nplt.ylabel('Y axis')\nplt.show()<\/code><\/pre>\n<p><strong>In this example:<\/strong><\/p>\n<ul>\n<li>plt.style.use applies the seaborn-darkgrid style to the plot.<\/li>\n<\/ul>\n<p><strong>Creating Custom Styles<\/strong><br \/>\nYou can also create your own custom styles using a style sheet. A style sheet is a simple text file that defines various properties of the plot.<\/p>\n<pre><code>import matplotlib as mpl\n\nmpl.rcParams['lines.linewidth'] = 2\nmpl.rcParams['lines.linestyle'] = '--'\nmpl.rcParams['lines.color'] = 'green'\nmpl.rcParams['axes.titlesize'] = 16\nmpl.rcParams['axes.labelsize'] = 14\n\nplt.plot(x, y)\nplt.title('Custom Styled Sine Wave')\nplt.xlabel('X axis')\nplt.ylabel('Y axis')\nplt.show()<\/code><\/pre>\n<p><strong>In this example:<\/strong><\/p>\n<ul>\n<li>mpl.rcParams is used to set various properties globally.<\/li>\n<\/ul>\n<p><strong>Conclusion<\/strong><br \/>\nStyling plots using Matplotlib can significantly enhance the visual appeal and readability of your visualizations. From basic customizations like line styles and colors to advanced techniques like annotations and custom styles, Matplotlib offers a wide range of options to tailor your plots to your specific needs. By mastering these techniques, you can create professional and informative plots that effectively communicate your data insights.<\/p>\n<h2>FAQs on Styling Plots Using Matplotlib<\/h2>\n<p>FAQs on Styling Plots Using Matplotlib are:<\/p>\n<p><strong>1. How do I change the color of a line in a plot?<\/strong><br \/>\nYou can change the color of a line by using the color parameter in the plot function. For example:<\/p>\n<pre><code>plt.plot(x, y, color='red')<\/code><\/pre>\n<p><strong>2. How can I customize the line style in my plot?<\/strong><br \/>\nYou can customize the line style using the linestyle parameter. Common styles include &#8216;-&#8216; for solid lines, &#8216;&#8211;&#8216; for dashed lines, &#8216;-.&#8217; for dash-dot lines, and &#8216;:&#8217; for dotted lines. For example:<\/p>\n<pre><code>plt.plot(x, y, linestyle='--')<\/code><\/pre>\n<p><strong>3. What are markers, and how do I add them to my plot?<\/strong><br \/>\nMarkers are symbols that highlight individual data points on a plot. You can add them using the marker parameter. Common markers include &#8216;o&#8217; for circles, &#8216;^&#8217; for triangles, and &#8216;s&#8217; for squares. For example:<\/p>\n<pre><code>plt.plot(x, y, marker='o')<\/code><\/pre>\n<p><strong>4. How do I add titles and labels to my plot?<\/strong><br \/>\nYou can add titles and labels using the title, xlabel, and ylabel functions. For example:<\/p>\n<pre><code>plt.title('Plot Title')\nplt.xlabel('X axis')\nplt.ylabel('Y axis')<\/code><\/pre>\n<p><strong>5. How can I add a grid to my plot?<\/strong><br \/>\nYou can add a grid using the grid function. For example:<\/p>\n<pre><code>plt.grid(True)<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Matplotlib, a popular Python library for data visualization, offers a wide range of customization options to style your plots. These options help make plots more visually appealing and easier to understand. This article will guide you through various techniques to style plots using Matplotlib, covering everything from basic customizations to advanced styling techniques. Basic Plot [&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-19270","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>Styling Plots Using Matplotlib<\/title>\n<meta name=\"description\" content=\"Matplotlib, a popular Python library for data visualization, offers a wide range of customization options to style your plots.\" \/>\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\/styling-plots-using-matplotlib\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Styling Plots Using Matplotlib\" \/>\n<meta property=\"og:description\" content=\"Matplotlib, a popular Python library for data visualization, offers a wide range of customization options to style your plots.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/prepbytes.com\/blog\/styling-plots-using-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-16T06:39:54+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1721111969393-Style%20Plots%20using%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\/styling-plots-using-matplotlib\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/prepbytes.com\/blog\/styling-plots-using-matplotlib\/\"},\"author\":{\"name\":\"Prepbytes\",\"@id\":\"http:\/\/43.205.93.38\/#\/schema\/person\/3f7dc4ae851791d5947a7f99df363d5e\"},\"headline\":\"Styling Plots Using Matplotlib\",\"datePublished\":\"2024-07-16T06:39:54+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/prepbytes.com\/blog\/styling-plots-using-matplotlib\/\"},\"wordCount\":637,\"commentCount\":0,\"publisher\":{\"@id\":\"http:\/\/43.205.93.38\/#organization\"},\"image\":{\"@id\":\"https:\/\/prepbytes.com\/blog\/styling-plots-using-matplotlib\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1721111969393-Style%20Plots%20using%20Matplotlib.png\",\"articleSection\":[\"Data Science\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/prepbytes.com\/blog\/styling-plots-using-matplotlib\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/prepbytes.com\/blog\/styling-plots-using-matplotlib\/\",\"url\":\"https:\/\/prepbytes.com\/blog\/styling-plots-using-matplotlib\/\",\"name\":\"Styling Plots Using Matplotlib\",\"isPartOf\":{\"@id\":\"http:\/\/43.205.93.38\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/prepbytes.com\/blog\/styling-plots-using-matplotlib\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/prepbytes.com\/blog\/styling-plots-using-matplotlib\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1721111969393-Style%20Plots%20using%20Matplotlib.png\",\"datePublished\":\"2024-07-16T06:39:54+00:00\",\"description\":\"Matplotlib, a popular Python library for data visualization, offers a wide range of customization options to style your plots.\",\"breadcrumb\":{\"@id\":\"https:\/\/prepbytes.com\/blog\/styling-plots-using-matplotlib\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/prepbytes.com\/blog\/styling-plots-using-matplotlib\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/prepbytes.com\/blog\/styling-plots-using-matplotlib\/#primaryimage\",\"url\":\"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1721111969393-Style%20Plots%20using%20Matplotlib.png\",\"contentUrl\":\"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1721111969393-Style%20Plots%20using%20Matplotlib.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/prepbytes.com\/blog\/styling-plots-using-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\":\"Styling Plots Using 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":"Styling Plots Using Matplotlib","description":"Matplotlib, a popular Python library for data visualization, offers a wide range of customization options to style your plots.","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\/styling-plots-using-matplotlib\/","og_locale":"en_US","og_type":"article","og_title":"Styling Plots Using Matplotlib","og_description":"Matplotlib, a popular Python library for data visualization, offers a wide range of customization options to style your plots.","og_url":"https:\/\/prepbytes.com\/blog\/styling-plots-using-matplotlib\/","og_site_name":"PrepBytes Blog","article_publisher":"https:\/\/www.facebook.com\/prepbytes0211\/","article_published_time":"2024-07-16T06:39:54+00:00","og_image":[{"url":"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1721111969393-Style%20Plots%20using%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\/styling-plots-using-matplotlib\/#article","isPartOf":{"@id":"https:\/\/prepbytes.com\/blog\/styling-plots-using-matplotlib\/"},"author":{"name":"Prepbytes","@id":"http:\/\/43.205.93.38\/#\/schema\/person\/3f7dc4ae851791d5947a7f99df363d5e"},"headline":"Styling Plots Using Matplotlib","datePublished":"2024-07-16T06:39:54+00:00","mainEntityOfPage":{"@id":"https:\/\/prepbytes.com\/blog\/styling-plots-using-matplotlib\/"},"wordCount":637,"commentCount":0,"publisher":{"@id":"http:\/\/43.205.93.38\/#organization"},"image":{"@id":"https:\/\/prepbytes.com\/blog\/styling-plots-using-matplotlib\/#primaryimage"},"thumbnailUrl":"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1721111969393-Style%20Plots%20using%20Matplotlib.png","articleSection":["Data Science"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/prepbytes.com\/blog\/styling-plots-using-matplotlib\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/prepbytes.com\/blog\/styling-plots-using-matplotlib\/","url":"https:\/\/prepbytes.com\/blog\/styling-plots-using-matplotlib\/","name":"Styling Plots Using Matplotlib","isPartOf":{"@id":"http:\/\/43.205.93.38\/#website"},"primaryImageOfPage":{"@id":"https:\/\/prepbytes.com\/blog\/styling-plots-using-matplotlib\/#primaryimage"},"image":{"@id":"https:\/\/prepbytes.com\/blog\/styling-plots-using-matplotlib\/#primaryimage"},"thumbnailUrl":"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1721111969393-Style%20Plots%20using%20Matplotlib.png","datePublished":"2024-07-16T06:39:54+00:00","description":"Matplotlib, a popular Python library for data visualization, offers a wide range of customization options to style your plots.","breadcrumb":{"@id":"https:\/\/prepbytes.com\/blog\/styling-plots-using-matplotlib\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/prepbytes.com\/blog\/styling-plots-using-matplotlib\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/prepbytes.com\/blog\/styling-plots-using-matplotlib\/#primaryimage","url":"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1721111969393-Style%20Plots%20using%20Matplotlib.png","contentUrl":"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1721111969393-Style%20Plots%20using%20Matplotlib.png"},{"@type":"BreadcrumbList","@id":"https:\/\/prepbytes.com\/blog\/styling-plots-using-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":"Styling Plots Using 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\/19270","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=19270"}],"version-history":[{"count":1,"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/posts\/19270\/revisions"}],"predecessor-version":[{"id":19271,"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/posts\/19270\/revisions\/19271"}],"wp:attachment":[{"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/media?parent=19270"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/categories?post=19270"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/tags?post=19270"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}