{"id":3350,"date":"2023-07-17T23:07:30","date_gmt":"2023-07-17T23:07:30","guid":{"rendered":"https:\/\/statorials.org\/tr\/matplotlib-varsayilan-renkleri\/"},"modified":"2023-07-17T23:07:30","modified_gmt":"2023-07-17T23:07:30","slug":"matplotlib-varsayilan-renkleri","status":"publish","type":"post","link":"https:\/\/statorials.org\/tr\/matplotlib-varsayilan-renkleri\/","title":{"rendered":"Matplotlib&#39;deki varsay\u0131lan renklere i\u0307li\u015fkin tam bir k\u0131lavuz"},"content":{"rendered":"<p><\/p>\n<hr>\n<p><span style=\"color: #000000;\">Python&#8217;da Matplotlib&#8217;in, toplam \u00f6\u011fe say\u0131s\u0131na dayal\u0131 olarak bir \u00e7izimdeki \u00f6\u011feler i\u00e7in kulland\u0131\u011f\u0131 varsay\u0131lan renklerin bir listesi vard\u0131r.<\/span><\/p>\n<p> <span style=\"color: #000000;\"><span style=\"color: #000000;\">\u00d6rne\u011fin, Matplotlib&#8217;de varsay\u0131lan olarak ilk 10 rengi g\u00f6r\u00fcnt\u00fcleyen \u00e7izgileri \u00e7izmek i\u00e7in a\u015fa\u011f\u0131daki kodu kullanabiliriz:<\/span><\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <span style=\"color: #000000;\"><strong><span style=\"color: #008000;\">import<\/span> numpy <span style=\"color: #008000;\">as<\/span> np\n<span style=\"color: #008000;\">import<\/span> matplotlib.pyplot <span style=\"color: #008000;\">as<\/span> plt\n\n<span style=\"color: #008080;\">#defineplot\n<\/span>fig = plt. <span style=\"color: #3366ff;\">figure<\/span> ()\nax = fig. <span style=\"color: #3366ff;\">add_subplot<\/span> (111)\n\n<span style=\"color: #008080;\">#define range\n<\/span>j = np. <span style=\"color: #3366ff;\">orange<\/span> (11)\n\n<span style=\"color: #008080;\">#add lines to plot\n<\/span><span style=\"color: #008000;\">for<\/span> i <span style=\"color: #008000;\">in<\/span> range(10):\n    line, = ax. <span style=\"color: #3366ff;\">plot<\/span> (j,i*(j+1))\n    ax. <span style=\"color: #3366ff;\">plot<\/span> (j,i*(j+1), color = <span style=\"color: #3366ff;\">line.get_color<\/span> ())\n\n<span style=\"color: #008080;\">#displayplot\n<\/span>plt. <span style=\"color: #3366ff;\">show<\/span> ()\n<\/strong><\/span><\/pre>\n<p> <span style=\"color: #000000;\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-28159\" src=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/matdefault1.jpg\" alt=\"Matplotlib varsay\u0131lan renkleri\" width=\"501\" height=\"376\" srcset=\"\" sizes=\"auto, \"><\/span><\/p>\n<p> <span style=\"color: #000000;\">Matplotlib, \u00e7izim \u00e7izgileri i\u00e7in varsay\u0131lan olarak ilk 10 rengi se\u00e7er.<\/span><\/p>\n<p> <span style=\"color: #000000;\">On rengin her biri i\u00e7in ger\u00e7ek onalt\u0131l\u0131k renk kodlar\u0131n\u0131 g\u00f6r\u00fcnt\u00fclemek i\u00e7in a\u015fa\u011f\u0131daki kodu kullanabiliriz:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <span style=\"color: #000000;\"><strong><span style=\"color: #008000;\">import<\/span> matplotlib. <span style=\"color: #3366ff;\">pyplot<\/span> <span style=\"color: #008000;\">as<\/span> plt\n\n<span style=\"color: #008080;\">#display hex color codes\n<\/span><span style=\"color: #008000;\">print<\/span> ( <span style=\"color: #3366ff;\">plt.rcParams<\/span> [' <span style=\"color: #ff0000;\">axes.prop_cycle<\/span> ']. <span style=\"color: #3366ff;\">by_key<\/span> ()[' <span style=\"color: #ff0000;\">color<\/span> '])\n\n['#1f77b4', '#ff7f0e', '#2ca02c', '#d62728', '#9467bd', '#8c564b', '#e377c2',\n '#7f7f7f', '#bcbd22', '#17becf']\n<\/strong><\/span><\/pre>\n<p> <span style=\"color: #000000;\">\u00c7\u0131kt\u0131, on varsay\u0131lan rengin her biri i\u00e7in onalt\u0131l\u0131k renk kodunu g\u00f6r\u00fcnt\u00fcler.<\/span><\/p>\n<p> <span style=\"color: #000000;\">\u00d6rne\u011fin, ilk onalt\u0131l\u0131k renk kodu <strong>#1f77b4&#8217;t\u00fcr<\/strong> . Bu, grafi\u011fin mavi olan ilk sat\u0131r\u0131na kar\u015f\u0131l\u0131k gelir.<\/span><\/p>\n<p> <span style=\"color: #000000;\">\u0130kinci onalt\u0131l\u0131k renk kodu <strong>#ff7f0e&#8217;dir<\/strong> . Bu, grafi\u011fin turuncu olan ikinci sat\u0131r\u0131na kar\u015f\u0131l\u0131k gelir.<\/span><\/p>\n<p> <span style=\"color: #000000;\">\u00dc\u00e7\u00fcnc\u00fc onalt\u0131l\u0131k renk kodu <strong>#2ca02c&#8217;dir<\/strong> . Bu, arsan\u0131n ye\u015fil olan \u00fc\u00e7\u00fcnc\u00fc sat\u0131r\u0131na kar\u015f\u0131l\u0131k gelir.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Ve benzeri.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Bu, Matplotlib&#8217;de tek \u00e7izgi ile bir \u00e7izim olu\u015fturursan\u0131z, aksi belirtilmedik\u00e7e \u00e7izgi renginin <strong>#1f77b4<\/strong> olaca\u011f\u0131 anlam\u0131na gelir.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Veya Matplotlib&#8217;de iki sat\u0131rl\u0131 bir \u00e7izim olu\u015fturursan\u0131z, aksi belirtilmedik\u00e7e ilk sat\u0131r\u0131n rengi <strong>#1f77b4<\/strong> , ikinci sat\u0131r\u0131n rengi ise <strong>#ff7f0e<\/strong> olacakt\u0131r.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Varsay\u0131lan renklerin tam a\u00e7\u0131klamas\u0131 i\u00e7in <a href=\"https:\/\/matplotlib.org\/stable\/users\/prev_whats_new\/dflt_style_changes.html\" target=\"_blank\" rel=\"noopener\">Matplotlib belgelerine<\/a> bak\u0131n.<\/span><\/p>\n<h2> <span style=\"color: #000000;\"><strong>Ek kaynaklar<\/strong><\/span><\/h2>\n<p> <span style=\"color: #000000;\">A\u015fa\u011f\u0131daki e\u011fitimler Matplotlib&#8217;deki di\u011fer ortak g\u00f6revlerin nas\u0131l ger\u00e7ekle\u015ftirilece\u011fini a\u00e7\u0131klamaktad\u0131r:<\/span><\/p>\n<p> <a href=\"https:\/\/statorials.org\/tr\/matplotlib-arka-plan-rengi\/\" target=\"_blank\" rel=\"noopener\">Matplotlib&#8217;de arka plan rengi nas\u0131l de\u011fi\u015ftirilir?<\/a><br \/> <a href=\"https:\/\/statorials.org\/tr\/matplotlib-yatay-kilavuz-cizgileri\/\" target=\"_blank\" rel=\"noopener\">Matplotlib&#8217;de yaln\u0131zca yatay bir \u0131zgara nas\u0131l \u00e7izilir<\/a><br \/> Matplotlib&#8217;de eksen keneleri nas\u0131l ayarlan\u0131r<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Python&#8217;da Matplotlib&#8217;in, toplam \u00f6\u011fe say\u0131s\u0131na dayal\u0131 olarak bir \u00e7izimdeki \u00f6\u011feler i\u00e7in kulland\u0131\u011f\u0131 varsay\u0131lan renklerin bir listesi vard\u0131r. \u00d6rne\u011fin, Matplotlib&#8217;de varsay\u0131lan olarak ilk 10 rengi g\u00f6r\u00fcnt\u00fcleyen \u00e7izgileri \u00e7izmek i\u00e7in a\u015fa\u011f\u0131daki kodu kullanabiliriz: import numpy as np import matplotlib.pyplot as plt #defineplot fig = plt. figure () ax = fig. add_subplot (111) #define range j = np. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-3350","post","type-post","status-publish","format-standard","hentry","category-rehber"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Matplotlib&#039;deki Varsay\u0131lan Renklere \u0130li\u015fkin Tam Bir K\u0131lavuz - Statorials<\/title>\n<meta name=\"description\" content=\"Bu \u00f6\u011fretici, \u00f6rnekler de dahil olmak \u00fczere Matplotlib&#039;deki varsay\u0131lan renklerin a\u00e7\u0131klamas\u0131n\u0131 sa\u011flar.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/statorials.org\/tr\/matplotlib-varsayilan-renkleri\/\" \/>\n<meta property=\"og:locale\" content=\"tr_TR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Matplotlib&#039;deki Varsay\u0131lan Renklere \u0130li\u015fkin Tam Bir K\u0131lavuz - Statorials\" \/>\n<meta property=\"og:description\" content=\"Bu \u00f6\u011fretici, \u00f6rnekler de dahil olmak \u00fczere Matplotlib&#039;deki varsay\u0131lan renklerin a\u00e7\u0131klamas\u0131n\u0131 sa\u011flar.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/statorials.org\/tr\/matplotlib-varsayilan-renkleri\/\" \/>\n<meta property=\"og:site_name\" content=\"Statorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-17T23:07:30+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/matdefault1.jpg\" \/>\n<meta name=\"author\" content=\"Dr.benjamin anderson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Yazan:\" \/>\n\t<meta name=\"twitter:data1\" content=\"Dr.benjamin anderson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Tahmini okuma s\u00fcresi\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 dakika\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/statorials.org\/tr\/matplotlib-varsayilan-renkleri\/\",\"url\":\"https:\/\/statorials.org\/tr\/matplotlib-varsayilan-renkleri\/\",\"name\":\"Matplotlib&#39;deki Varsay\u0131lan Renklere \u0130li\u015fkin Tam Bir K\u0131lavuz - Statorials\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/tr\/#website\"},\"datePublished\":\"2023-07-17T23:07:30+00:00\",\"dateModified\":\"2023-07-17T23:07:30+00:00\",\"author\":{\"@id\":\"https:\/\/statorials.org\/tr\/#\/schema\/person\/365dc158a39a7c8ae256355451e3de48\"},\"description\":\"Bu \u00f6\u011fretici, \u00f6rnekler de dahil olmak \u00fczere Matplotlib&#39;deki varsay\u0131lan renklerin a\u00e7\u0131klamas\u0131n\u0131 sa\u011flar.\",\"breadcrumb\":{\"@id\":\"https:\/\/statorials.org\/tr\/matplotlib-varsayilan-renkleri\/#breadcrumb\"},\"inLanguage\":\"tr\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/tr\/matplotlib-varsayilan-renkleri\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/tr\/matplotlib-varsayilan-renkleri\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Ev\",\"item\":\"https:\/\/statorials.org\/tr\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Matplotlib&#39;deki varsay\u0131lan renklere i\u0307li\u015fkin tam bir k\u0131lavuz\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/statorials.org\/tr\/#website\",\"url\":\"https:\/\/statorials.org\/tr\/\",\"name\":\"Statorials\",\"description\":\"\u0130statistik okuryazarl\u0131\u011f\u0131 rehberiniz!\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/statorials.org\/tr\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"tr\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/statorials.org\/tr\/#\/schema\/person\/365dc158a39a7c8ae256355451e3de48\",\"name\":\"Dr.benjamin anderson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"tr\",\"@id\":\"https:\/\/statorials.org\/tr\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/statorials.org\/tr\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg\",\"contentUrl\":\"https:\/\/statorials.org\/tr\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg\",\"caption\":\"Dr.benjamin anderson\"},\"description\":\"Merhaba, ben Benjamin, emekli bir istatistik profes\u00f6r\u00fc ve Statorials \u00f6\u011fretmenine d\u00f6n\u00fc\u015ft\u00fcm. \u0130statistik alan\u0131ndaki kapsaml\u0131 deneyimim ve uzmanl\u0131\u011f\u0131mla, \u00f6\u011frencilerimi Statorials arac\u0131l\u0131\u011f\u0131yla g\u00fc\u00e7lendirmek i\u00e7in bilgilerimi payla\u015fmaya can at\u0131yorum. Daha fazlas\u0131n\u0131 bil\",\"sameAs\":[\"https:\/\/statorials.org\/tr\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Matplotlib&#39;deki Varsay\u0131lan Renklere \u0130li\u015fkin Tam Bir K\u0131lavuz - Statorials","description":"Bu \u00f6\u011fretici, \u00f6rnekler de dahil olmak \u00fczere Matplotlib&#39;deki varsay\u0131lan renklerin a\u00e7\u0131klamas\u0131n\u0131 sa\u011flar.","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:\/\/statorials.org\/tr\/matplotlib-varsayilan-renkleri\/","og_locale":"tr_TR","og_type":"article","og_title":"Matplotlib&#39;deki Varsay\u0131lan Renklere \u0130li\u015fkin Tam Bir K\u0131lavuz - Statorials","og_description":"Bu \u00f6\u011fretici, \u00f6rnekler de dahil olmak \u00fczere Matplotlib&#39;deki varsay\u0131lan renklerin a\u00e7\u0131klamas\u0131n\u0131 sa\u011flar.","og_url":"https:\/\/statorials.org\/tr\/matplotlib-varsayilan-renkleri\/","og_site_name":"Statorials","article_published_time":"2023-07-17T23:07:30+00:00","og_image":[{"url":"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/matdefault1.jpg"}],"author":"Dr.benjamin anderson","twitter_card":"summary_large_image","twitter_misc":{"Yazan:":"Dr.benjamin anderson","Tahmini okuma s\u00fcresi":"2 dakika"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/statorials.org\/tr\/matplotlib-varsayilan-renkleri\/","url":"https:\/\/statorials.org\/tr\/matplotlib-varsayilan-renkleri\/","name":"Matplotlib&#39;deki Varsay\u0131lan Renklere \u0130li\u015fkin Tam Bir K\u0131lavuz - Statorials","isPartOf":{"@id":"https:\/\/statorials.org\/tr\/#website"},"datePublished":"2023-07-17T23:07:30+00:00","dateModified":"2023-07-17T23:07:30+00:00","author":{"@id":"https:\/\/statorials.org\/tr\/#\/schema\/person\/365dc158a39a7c8ae256355451e3de48"},"description":"Bu \u00f6\u011fretici, \u00f6rnekler de dahil olmak \u00fczere Matplotlib&#39;deki varsay\u0131lan renklerin a\u00e7\u0131klamas\u0131n\u0131 sa\u011flar.","breadcrumb":{"@id":"https:\/\/statorials.org\/tr\/matplotlib-varsayilan-renkleri\/#breadcrumb"},"inLanguage":"tr","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/tr\/matplotlib-varsayilan-renkleri\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/tr\/matplotlib-varsayilan-renkleri\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Ev","item":"https:\/\/statorials.org\/tr\/"},{"@type":"ListItem","position":2,"name":"Matplotlib&#39;deki varsay\u0131lan renklere i\u0307li\u015fkin tam bir k\u0131lavuz"}]},{"@type":"WebSite","@id":"https:\/\/statorials.org\/tr\/#website","url":"https:\/\/statorials.org\/tr\/","name":"Statorials","description":"\u0130statistik okuryazarl\u0131\u011f\u0131 rehberiniz!","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/statorials.org\/tr\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"tr"},{"@type":"Person","@id":"https:\/\/statorials.org\/tr\/#\/schema\/person\/365dc158a39a7c8ae256355451e3de48","name":"Dr.benjamin anderson","image":{"@type":"ImageObject","inLanguage":"tr","@id":"https:\/\/statorials.org\/tr\/#\/schema\/person\/image\/","url":"https:\/\/statorials.org\/tr\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg","contentUrl":"https:\/\/statorials.org\/tr\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg","caption":"Dr.benjamin anderson"},"description":"Merhaba, ben Benjamin, emekli bir istatistik profes\u00f6r\u00fc ve Statorials \u00f6\u011fretmenine d\u00f6n\u00fc\u015ft\u00fcm. \u0130statistik alan\u0131ndaki kapsaml\u0131 deneyimim ve uzmanl\u0131\u011f\u0131mla, \u00f6\u011frencilerimi Statorials arac\u0131l\u0131\u011f\u0131yla g\u00fc\u00e7lendirmek i\u00e7in bilgilerimi payla\u015fmaya can at\u0131yorum. Daha fazlas\u0131n\u0131 bil","sameAs":["https:\/\/statorials.org\/tr"]}]}},"yoast_meta":{"yoast_wpseo_title":"","yoast_wpseo_metadesc":"","yoast_wpseo_canonical":""},"_links":{"self":[{"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/posts\/3350","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/comments?post=3350"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/posts\/3350\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/media?parent=3350"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/categories?post=3350"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/tags?post=3350"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}