{"id":2423,"date":"2023-07-22T08:24:21","date_gmt":"2023-07-22T08:24:21","guid":{"rendered":"https:\/\/statorials.org\/tr\/incir-alt-grafigi-ekle\/"},"modified":"2023-07-22T08:24:21","modified_gmt":"2023-07-22T08:24:21","slug":"incir-alt-grafigi-ekle","status":"publish","type":"post","link":"https:\/\/statorials.org\/tr\/incir-alt-grafigi-ekle\/","title":{"rendered":"Matplotlib&#39;de fig.add_subplot nas\u0131l kullan\u0131l\u0131r"},"content":{"rendered":"<p><\/p>\n<hr>\n<p><span style=\"color: #000000;\">Matplotlib&#8217;de alt noktalar olu\u015fturmak i\u00e7in a\u015fa\u011f\u0131daki temel s\u00f6zdizimini kullanabilirsiniz:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <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;\">#define figure<\/span>\nfig = plt. <span style=\"color: #3366ff;\">figure<\/span> ()\n\n<span style=\"color: #008080;\">#add first subplot in layout that has 3 rows and 2 columns<\/span>\nfig. <span style=\"color: #3366ff;\">add_subplot<\/span> (321)\n\n<span style=\"color: #008080;\">#add fifth subplot in layout that has 3 rows and 2 columns<\/span>\nfig. <span style=\"color: #3366ff;\">add_subplot<\/span> (325)\n\n...<\/strong><\/pre>\n<p> <span style=\"color: #000000;\">A\u015fa\u011f\u0131daki \u00f6rnekler bu s\u00f6zdiziminin pratikte nas\u0131l kullan\u0131laca\u011f\u0131n\u0131 g\u00f6stermektedir.<\/span><\/p>\n<h3> <span style=\"color: #000000;\"><strong>\u00d6rnek 1: Tekd\u00fczen D\u00fczene Sahip Alt Grafikler Ekleme<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">A\u015fa\u011f\u0131daki kod, 3 sat\u0131r ve 2 s\u00fctunlu bir d\u00fczende alt\u0131 alt grafi\u011fin nas\u0131l olu\u015fturulaca\u011f\u0131n\u0131 g\u00f6sterir:<\/span> <\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <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;\">#define figure\n<\/span>fig = plt. <span style=\"color: #3366ff;\">figure<\/span> ()\n\n<span style=\"color: #008080;\">#add subplots\n<\/span>fig. <span style=\"color: #3366ff;\">add_subplot<\/span> (321). <span style=\"color: #3366ff;\">set_title<\/span> (' <span style=\"color: #ff0000;\">321<\/span> ')\nfig. <span style=\"color: #3366ff;\">add_subplot<\/span> (322). <span style=\"color: #3366ff;\">set_title<\/span> (' <span style=\"color: #ff0000;\">322<\/span> ')\nfig. <span style=\"color: #3366ff;\">add_subplot<\/span> (323). <span style=\"color: #3366ff;\">set_title<\/span> (' <span style=\"color: #ff0000;\">323<\/span> ')\nfig. <span style=\"color: #3366ff;\">add_subplot<\/span> (324). <span style=\"color: #3366ff;\">set_title<\/span> (' <span style=\"color: #ff0000;\">324<\/span> ')\nfig. <span style=\"color: #3366ff;\">add_subplot<\/span> (325). <span style=\"color: #3366ff;\">set_title<\/span> (' <span style=\"color: #ff0000;\">325<\/span> ')\nfig. <span style=\"color: #3366ff;\">add_subplot<\/span> (326). <span style=\"color: #3366ff;\">set_title<\/span> (' <span style=\"color: #ff0000;\">326<\/span> ')\n\n<span style=\"color: #008080;\">#display plots\n<\/span>plt. <span style=\"color: #3366ff;\">show<\/span> ()\n<\/strong><\/pre>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-21756\" src=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/fig.-1.png\" alt=\"Matplotlib'deki fig.add_subplot\" width=\"471\" height=\"567\" srcset=\"\" sizes=\"auto, \"><\/p>\n<p> <span style=\"color: #000000;\">Sonucun, 3 sat\u0131r ve 2 s\u00fctundan olu\u015fan bir d\u00fczende g\u00f6r\u00fcnt\u00fclenen alt\u0131 alt grafik oldu\u011funu unutmay\u0131n.<\/span><\/p>\n<h3> <span style=\"color: #000000;\"><strong>\u00d6rnek 2: D\u00fczensiz D\u00fczene Sahip Alt Grafikler Ekleme<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">A\u015fa\u011f\u0131daki kod, d\u00f6rt alt grafi\u011fin nas\u0131l olu\u015fturulaca\u011f\u0131n\u0131 g\u00f6sterir:<\/span><\/p>\n<ul>\n<li> <span style=\"color: #000000;\">Parsellerin \u00fc\u00e7\u00fc, 3 sat\u0131r ve 2 s\u00fctundan olu\u015fan bir \u0131zgarada olu\u015fturulmu\u015ftur.<\/span><\/li>\n<li> <span style=\"color: #000000;\">D\u00f6rd\u00fcnc\u00fc arsa, 1 sat\u0131r ve 2 s\u00fctundan olu\u015fan bir \u0131zgarada olu\u015fturulur.<\/span> <\/li>\n<\/ul>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <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;\">#define figure\n<\/span>fig = plt. <span style=\"color: #3366ff;\">figure<\/span> ()\n\n<span style=\"color: #008080;\">#add subplots<\/span>\nfig. <span style=\"color: #3366ff;\">add_subplot<\/span> (321). <span style=\"color: #3366ff;\">set_title<\/span> (' <span style=\"color: #ff0000;\">321<\/span> ')\nfig. <span style=\"color: #3366ff;\">add_subplot<\/span> (323). <span style=\"color: #3366ff;\">set_title<\/span> (' <span style=\"color: #ff0000;\">323<\/span> ')\nfig. <span style=\"color: #3366ff;\">add_subplot<\/span> (325). <span style=\"color: #3366ff;\">set_title<\/span> (' <span style=\"color: #ff0000;\">325<\/span> ')\nfig. <span style=\"color: #3366ff;\">add_subplot<\/span> (122). <span style=\"color: #3366ff;\">set_title<\/span> (' <span style=\"color: #ff0000;\">122<\/span> ')\n\n<span style=\"color: #008080;\">#display plots\n<\/span>plt. <span style=\"color: #3366ff;\">show<\/span> ()<\/strong> <\/pre>\n<p><img decoding=\"async\" loading=\"lazy\" class=\" wp-image-21757 aligncenter\" src=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/fig2.png\" alt=\"\" width=\"495\" height=\"438\" srcset=\"\" sizes=\"auto, \"><\/p>\n<p> <span style=\"color: #000000;\">Nihai sonu\u00e7, 3&#215;2&#8217;lik bir \u0131zgarada g\u00f6r\u00fcnt\u00fclenen \u00fc\u00e7 alt grafiktir, son alt grafik ise 1&#215;2&#8217;lik bir \u0131zgarada g\u00f6r\u00fcnt\u00fclenir.<\/span><\/p>\n<h3> <span style=\"color: #000000;\"><strong>Ek kaynaklar<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">A\u015fa\u011f\u0131daki e\u011fitimler Matplotlib&#8217;de di\u011fer genel i\u015flemlerin nas\u0131l ger\u00e7ekle\u015ftirilece\u011fini a\u00e7\u0131klamaktad\u0131r:<\/span><\/p>\n<p> <a href=\"https:\/\/statorials.org\/tr\/alt-grafik-araligi-matplotlib\/\" target=\"_blank\" rel=\"noopener\">Matplotlib alt noktalar\u0131 aras\u0131ndaki bo\u015fluk nas\u0131l ayarlan\u0131r?<\/a><br \/> <a href=\"https:\/\/statorials.org\/tr\/matplotlib-alt-grafik-boyutu\/\" target=\"_blank\" rel=\"noopener\">Matplotlib&#8217;de alt grafik boyutu nas\u0131l ayarlan\u0131r<\/a><br \/> <a href=\"https:\/\/statorials.org\/tr\/matplotlib-alt-konu-basligi\/\" target=\"_blank\" rel=\"noopener\">Matplotlib&#8217;deki alt noktalara ba\u015fl\u0131k nas\u0131l eklenir<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Matplotlib&#8217;de alt noktalar olu\u015fturmak i\u00e7in a\u015fa\u011f\u0131daki temel s\u00f6zdizimini kullanabilirsiniz: import matplotlib. pyplot as plt #define figure fig = plt. figure () #add first subplot in layout that has 3 rows and 2 columns fig. add_subplot (321) #add fifth subplot in layout that has 3 rows and 2 columns fig. add_subplot (325) &#8230; A\u015fa\u011f\u0131daki \u00f6rnekler bu [&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-2423","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;de fig.add_subplot nas\u0131l kullan\u0131l\u0131r \u2013 Statorials<\/title>\n<meta name=\"description\" content=\"Bu e\u011fitimde Matplotlib&#039;de fig.add_subplot() fonksiyonunun nas\u0131l kullan\u0131laca\u011f\u0131 birka\u00e7 \u00f6rnekle a\u00e7\u0131klanmaktad\u0131r.\" \/>\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\/incir-alt-grafigi-ekle\/\" \/>\n<meta property=\"og:locale\" content=\"tr_TR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Matplotlib&#039;de fig.add_subplot nas\u0131l kullan\u0131l\u0131r \u2013 Statorials\" \/>\n<meta property=\"og:description\" content=\"Bu e\u011fitimde Matplotlib&#039;de fig.add_subplot() fonksiyonunun nas\u0131l kullan\u0131laca\u011f\u0131 birka\u00e7 \u00f6rnekle a\u00e7\u0131klanmaktad\u0131r.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/statorials.org\/tr\/incir-alt-grafigi-ekle\/\" \/>\n<meta property=\"og:site_name\" content=\"Statorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-22T08:24:21+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/fig.-1.png\" \/>\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\/incir-alt-grafigi-ekle\/\",\"url\":\"https:\/\/statorials.org\/tr\/incir-alt-grafigi-ekle\/\",\"name\":\"Matplotlib&#39;de fig.add_subplot nas\u0131l kullan\u0131l\u0131r \u2013 Statorials\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/tr\/#website\"},\"datePublished\":\"2023-07-22T08:24:21+00:00\",\"dateModified\":\"2023-07-22T08:24:21+00:00\",\"author\":{\"@id\":\"https:\/\/statorials.org\/tr\/#\/schema\/person\/365dc158a39a7c8ae256355451e3de48\"},\"description\":\"Bu e\u011fitimde Matplotlib&#39;de fig.add_subplot() fonksiyonunun nas\u0131l kullan\u0131laca\u011f\u0131 birka\u00e7 \u00f6rnekle a\u00e7\u0131klanmaktad\u0131r.\",\"breadcrumb\":{\"@id\":\"https:\/\/statorials.org\/tr\/incir-alt-grafigi-ekle\/#breadcrumb\"},\"inLanguage\":\"tr\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/tr\/incir-alt-grafigi-ekle\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/tr\/incir-alt-grafigi-ekle\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Ev\",\"item\":\"https:\/\/statorials.org\/tr\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Matplotlib&#39;de fig.add_subplot nas\u0131l kullan\u0131l\u0131r\"}]},{\"@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;de fig.add_subplot nas\u0131l kullan\u0131l\u0131r \u2013 Statorials","description":"Bu e\u011fitimde Matplotlib&#39;de fig.add_subplot() fonksiyonunun nas\u0131l kullan\u0131laca\u011f\u0131 birka\u00e7 \u00f6rnekle a\u00e7\u0131klanmaktad\u0131r.","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\/incir-alt-grafigi-ekle\/","og_locale":"tr_TR","og_type":"article","og_title":"Matplotlib&#39;de fig.add_subplot nas\u0131l kullan\u0131l\u0131r \u2013 Statorials","og_description":"Bu e\u011fitimde Matplotlib&#39;de fig.add_subplot() fonksiyonunun nas\u0131l kullan\u0131laca\u011f\u0131 birka\u00e7 \u00f6rnekle a\u00e7\u0131klanmaktad\u0131r.","og_url":"https:\/\/statorials.org\/tr\/incir-alt-grafigi-ekle\/","og_site_name":"Statorials","article_published_time":"2023-07-22T08:24:21+00:00","og_image":[{"url":"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/fig.-1.png"}],"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\/incir-alt-grafigi-ekle\/","url":"https:\/\/statorials.org\/tr\/incir-alt-grafigi-ekle\/","name":"Matplotlib&#39;de fig.add_subplot nas\u0131l kullan\u0131l\u0131r \u2013 Statorials","isPartOf":{"@id":"https:\/\/statorials.org\/tr\/#website"},"datePublished":"2023-07-22T08:24:21+00:00","dateModified":"2023-07-22T08:24:21+00:00","author":{"@id":"https:\/\/statorials.org\/tr\/#\/schema\/person\/365dc158a39a7c8ae256355451e3de48"},"description":"Bu e\u011fitimde Matplotlib&#39;de fig.add_subplot() fonksiyonunun nas\u0131l kullan\u0131laca\u011f\u0131 birka\u00e7 \u00f6rnekle a\u00e7\u0131klanmaktad\u0131r.","breadcrumb":{"@id":"https:\/\/statorials.org\/tr\/incir-alt-grafigi-ekle\/#breadcrumb"},"inLanguage":"tr","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/tr\/incir-alt-grafigi-ekle\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/tr\/incir-alt-grafigi-ekle\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Ev","item":"https:\/\/statorials.org\/tr\/"},{"@type":"ListItem","position":2,"name":"Matplotlib&#39;de fig.add_subplot nas\u0131l kullan\u0131l\u0131r"}]},{"@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\/2423","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=2423"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/posts\/2423\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/media?parent=2423"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/categories?post=2423"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/tags?post=2423"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}