{"id":1783,"date":"2023-07-25T00:17:50","date_gmt":"2023-07-25T00:17:50","guid":{"rendered":"https:\/\/statorials.org\/de\/matplotlib-erhoht-die-tracegrosse\/"},"modified":"2023-07-25T00:17:50","modified_gmt":"2023-07-25T00:17:50","slug":"matplotlib-erhoht-die-tracegrosse","status":"publish","type":"post","link":"https:\/\/statorials.org\/de\/matplotlib-erhoht-die-tracegrosse\/","title":{"rendered":"So erh\u00f6hen sie die plotgr\u00f6\u00dfe in matplotlib"},"content":{"rendered":"<p><\/p>\n<hr>\n<p><span style=\"color: #000000;\">Sie k\u00f6nnen die folgende Syntax verwenden, um die Gr\u00f6\u00dfe eines einzelnen Plots in Matplotlib zu erh\u00f6hen:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #107d3f;\">import<\/span> matplotlib. <span style=\"color: #3366ff;\">pyplot<\/span> <span style=\"color: #107d3f;\">as<\/span> plt\n\n<span style=\"color: #008080;\">#define figure size in (width, height) for a single plot<\/span>\nplt. <span style=\"color: #3366ff;\">figure<\/span> (figsize=(3,3))\n<\/strong><\/pre>\n<p> <span style=\"color: #000000;\">Und Sie k\u00f6nnen die folgende Syntax verwenden, um die Gr\u00f6\u00dfe <em>aller<\/em> Matplotlib-Plots in einem Notebook zu erh\u00f6hen:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #107d3f;\">import<\/span> matplotlib. <span style=\"color: #3366ff;\">pyplot<\/span> <span style=\"color: #107d3f;\">as<\/span> plt\n\n<span style=\"color: #008080;\">#define figure size in (width, height) for all plots<\/span>\nplt. <span style=\"color: #3366ff;\">rcParams<\/span> [' <span style=\"color: #ff0000;\">figure.figsize<\/span> '] = [10, 7]\n<\/strong><\/pre>\n<p> <span style=\"color: #000000;\">Die folgenden Beispiele zeigen, wie Sie diese Syntax in der Praxis anwenden k\u00f6nnen.<\/span><\/p>\n<h3> <span style=\"color: #000000;\"><strong>Beispiel 1: Erh\u00f6hen Sie die Gr\u00f6\u00dfe eines einzelnen Matplotlib-Diagramms<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">Angenommen, wir erstellen das folgende Liniendiagramm in Matplotlib:<\/span> <\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #107d3f;\">import<\/span> matplotlib. <span style=\"color: #3366ff;\">pyplot<\/span> <span style=\"color: #107d3f;\">as<\/span> plt\n\n<span style=\"color: #008080;\">#define x and y\n<\/span>x = [1, 6, 10]\ny = [5, 13, 27]\n\n<span style=\"color: #008080;\">#create plot of x and y\n<\/span>plt. <span style=\"color: #3366ff;\">plot<\/span> (x, y)\nplt. <span style=\"color: #3366ff;\">show<\/span> ()<\/strong> <\/pre>\n<p><img decoding=\"async\" loading=\"lazy\" class=\" wp-image-17379 aligncenter\" src=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/taille-du-trace1.png\" alt=\"\" width=\"397\" height=\"268\" srcset=\"\" sizes=\"\"><\/p>\n<p> <span style=\"color: #000000;\">Standardm\u00e4\u00dfig betr\u00e4gt (Breite, H\u00f6he) eines Matplotlib-Plots (6,4, 4,8).<\/span><\/p>\n<p> <span style=\"color: #000000;\">Wir k\u00f6nnen jedoch die folgende Syntax verwenden, um den Plot auf die gew\u00fcnschten Abmessungen zu vergr\u00f6\u00dfern:<\/span> <\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #107d3f;\">import<\/span> matplotlib. <span style=\"color: #3366ff;\">pyplot<\/span> <span style=\"color: #107d3f;\">as<\/span> plt\n\n<span style=\"color: #008080;\">#define plot size<\/span>\nplt. <span style=\"color: #3366ff;\">figure<\/span> (figsize=(5,8))\n\n<span style=\"color: #008080;\">#define x and y\n<\/span>x = [1, 6, 10]\ny = [5, 13, 27]\n\n<span style=\"color: #008080;\">#create plot of x and y\n<\/span>plt. <span style=\"color: #3366ff;\">plot<\/span> (x, y)\nplt. <span style=\"color: #3366ff;\">show<\/span> ()<\/strong> <\/pre>\n<p><img decoding=\"async\" loading=\"lazy\" class=\" wp-image-17380 aligncenter\" src=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/taille-du-trace2.png\" alt=\"\" width=\"313\" height=\"456\" srcset=\"\" sizes=\"\"><\/p>\n<h3> <span style=\"color: #000000;\"><strong>Beispiel 2: Erh\u00f6hen Sie die Gr\u00f6\u00dfe aller Matplotlib-Plots<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">Der folgende Code zeigt, wie die Plotgr\u00f6\u00dfe f\u00fcr <em>alle<\/em> Matplotlib-Plots in einem Notebook festgelegt wird:<\/span> <\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #107d3f;\">import<\/span> matplotlib. <span style=\"color: #3366ff;\">pyplot<\/span> <span style=\"color: #107d3f;\">as<\/span> plt\n\n<span style=\"color: #008080;\">#define plot size for all plots<\/span>\nplt. <span style=\"color: #3366ff;\">rcParams<\/span> [' <span style=\"color: #ff0000;\">figure.figsize<\/span> '] = [10, 4]\n<span style=\"color: #008080;\">\n#define first dataset\n<\/span>x = [1, 6, 10]\ny = [5, 13, 27]\n\n<span style=\"color: #008080;\">#create first plot\n<\/span>plt. <span style=\"color: #3366ff;\">plot<\/span> (x, y)\nplt. <span style=\"color: #3366ff;\">show<\/span> ()\n\n<span style=\"color: #008080;\">#define second dataset\n<\/span>x2 = [1, 6, 10]\ny2 = [5, 19, 12]\n\n<span style=\"color: #008080;\">#create second plot\n<\/span>plt. <span style=\"color: #3366ff;\">plot<\/span> (x2, y2)\nplt. <span style=\"color: #3366ff;\">show<\/span> ()<\/strong> <\/pre>\n<p><img decoding=\"async\" loading=\"lazy\" class=\" wp-image-17382 aligncenter\" src=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/taille-du-trace3.png\" alt=\"\" width=\"576\" height=\"486\" srcset=\"\" sizes=\"\"><\/p>\n<p> <span style=\"color: #000000;\">Beachten Sie, dass beide Diagramme die durch die <strong>rcParams-<\/strong> Argumente angegebene Breite und H\u00f6he haben.<\/span><\/p>\n<h3> <span style=\"color: #000000;\"><strong>Zus\u00e4tzliche Ressourcen<\/strong><\/span><\/h3>\n<p> <a href=\"https:\/\/statorials.org\/de\/matplotlib-markergrosse\/\" target=\"_blank\" rel=\"noopener\">So passen Sie die Markierungsgr\u00f6\u00dfe in Matplotlib an<\/a><br \/><a href=\"https:\/\/statorials.org\/de\/schriftgrosse-andern-matplotlib\/\" target=\"_blank\" rel=\"noopener\">So \u00e4ndern Sie die Schriftgr\u00f6\u00dfe in Matplotlib<\/a><br \/> <a href=\"https:\/\/statorials.org\/de\/matplotlib-linienstarke\/\" target=\"_blank\" rel=\"noopener\">So passen Sie die Linienst\u00e4rke in Matplotlib an<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sie k\u00f6nnen die folgende Syntax verwenden, um die Gr\u00f6\u00dfe eines einzelnen Plots in Matplotlib zu erh\u00f6hen: import matplotlib. pyplot as plt #define figure size in (width, height) for a single plot plt. figure (figsize=(3,3)) Und Sie k\u00f6nnen die folgende Syntax verwenden, um die Gr\u00f6\u00dfe aller Matplotlib-Plots in einem Notebook zu erh\u00f6hen: import matplotlib. pyplot as [&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":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>So erh\u00f6hen Sie die Plotgr\u00f6\u00dfe in Matplotlib \u2013 Statorials<\/title>\n<meta name=\"description\" content=\"In diesem Tutorial wird anhand mehrerer Beispiele erl\u00e4utert, wie Sie die Plotgr\u00f6\u00dfe in Matplotlib erh\u00f6hen.\" \/>\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\/de\/matplotlib-erhoht-die-tracegrosse\/\" \/>\n<meta property=\"og:locale\" content=\"de_DE\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"So erh\u00f6hen Sie die Plotgr\u00f6\u00dfe in Matplotlib \u2013 Statorials\" \/>\n<meta property=\"og:description\" content=\"In diesem Tutorial wird anhand mehrerer Beispiele erl\u00e4utert, wie Sie die Plotgr\u00f6\u00dfe in Matplotlib erh\u00f6hen.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/statorials.org\/de\/matplotlib-erhoht-die-tracegrosse\/\" \/>\n<meta property=\"og:site_name\" content=\"Statorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-25T00:17:50+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/taille-du-trace1.png\" \/>\n<meta name=\"author\" content=\"Dr. Benjamin Anderson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Verfasst von\" \/>\n\t<meta name=\"twitter:data1\" content=\"Dr. Benjamin Anderson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Gesch\u00e4tzte Lesezeit\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 Minuten\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/statorials.org\/de\/matplotlib-erhoht-die-tracegrosse\/\",\"url\":\"https:\/\/statorials.org\/de\/matplotlib-erhoht-die-tracegrosse\/\",\"name\":\"So erh\u00f6hen Sie die Plotgr\u00f6\u00dfe in Matplotlib \u2013 Statorials\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/de\/#website\"},\"datePublished\":\"2023-07-25T00:17:50+00:00\",\"dateModified\":\"2023-07-25T00:17:50+00:00\",\"author\":{\"@id\":\"https:\/\/statorials.org\/de\/#\/schema\/person\/ec75c4d6365f2708f8a0ad3a42121aa0\"},\"description\":\"In diesem Tutorial wird anhand mehrerer Beispiele erl\u00e4utert, wie Sie die Plotgr\u00f6\u00dfe in Matplotlib erh\u00f6hen.\",\"breadcrumb\":{\"@id\":\"https:\/\/statorials.org\/de\/matplotlib-erhoht-die-tracegrosse\/#breadcrumb\"},\"inLanguage\":\"de-DE\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/de\/matplotlib-erhoht-die-tracegrosse\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/de\/matplotlib-erhoht-die-tracegrosse\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Heim\",\"item\":\"https:\/\/statorials.org\/de\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"So erh\u00f6hen sie die plotgr\u00f6\u00dfe in matplotlib\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/statorials.org\/de\/#website\",\"url\":\"https:\/\/statorials.org\/de\/\",\"name\":\"Statorials\",\"description\":\"Ihr Leitfaden f\u00fcr statistische Kompetenz !\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/statorials.org\/de\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"de-DE\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/statorials.org\/de\/#\/schema\/person\/ec75c4d6365f2708f8a0ad3a42121aa0\",\"name\":\"Dr. Benjamin Anderson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"de-DE\",\"@id\":\"https:\/\/statorials.org\/de\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/statorials.org\/de\/wp-content\/uploads\/2023\/11\/Benjamin-Anderson-96x96.jpg\",\"contentUrl\":\"https:\/\/statorials.org\/de\/wp-content\/uploads\/2023\/11\/Benjamin-Anderson-96x96.jpg\",\"caption\":\"Dr. Benjamin Anderson\"},\"description\":\"Hallo, ich bin Benjamin, ein pensionierter Statistikprofessor, der sich zum engagierten Statorials-Lehrer entwickelt hat. Mit umfassender Erfahrung und Fachwissen auf dem Gebiet der Statistik bin ich bestrebt, mein Wissen zu teilen, um Studenten durch Statorials zu bef\u00e4higen. Mehr wissen\",\"sameAs\":[\"https:\/\/statorials.org\/de\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"So erh\u00f6hen Sie die Plotgr\u00f6\u00dfe in Matplotlib \u2013 Statorials","description":"In diesem Tutorial wird anhand mehrerer Beispiele erl\u00e4utert, wie Sie die Plotgr\u00f6\u00dfe in Matplotlib erh\u00f6hen.","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\/de\/matplotlib-erhoht-die-tracegrosse\/","og_locale":"de_DE","og_type":"article","og_title":"So erh\u00f6hen Sie die Plotgr\u00f6\u00dfe in Matplotlib \u2013 Statorials","og_description":"In diesem Tutorial wird anhand mehrerer Beispiele erl\u00e4utert, wie Sie die Plotgr\u00f6\u00dfe in Matplotlib erh\u00f6hen.","og_url":"https:\/\/statorials.org\/de\/matplotlib-erhoht-die-tracegrosse\/","og_site_name":"Statorials","article_published_time":"2023-07-25T00:17:50+00:00","og_image":[{"url":"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/taille-du-trace1.png"}],"author":"Dr. Benjamin Anderson","twitter_card":"summary_large_image","twitter_misc":{"Verfasst von":"Dr. Benjamin Anderson","Gesch\u00e4tzte Lesezeit":"2 Minuten"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/statorials.org\/de\/matplotlib-erhoht-die-tracegrosse\/","url":"https:\/\/statorials.org\/de\/matplotlib-erhoht-die-tracegrosse\/","name":"So erh\u00f6hen Sie die Plotgr\u00f6\u00dfe in Matplotlib \u2013 Statorials","isPartOf":{"@id":"https:\/\/statorials.org\/de\/#website"},"datePublished":"2023-07-25T00:17:50+00:00","dateModified":"2023-07-25T00:17:50+00:00","author":{"@id":"https:\/\/statorials.org\/de\/#\/schema\/person\/ec75c4d6365f2708f8a0ad3a42121aa0"},"description":"In diesem Tutorial wird anhand mehrerer Beispiele erl\u00e4utert, wie Sie die Plotgr\u00f6\u00dfe in Matplotlib erh\u00f6hen.","breadcrumb":{"@id":"https:\/\/statorials.org\/de\/matplotlib-erhoht-die-tracegrosse\/#breadcrumb"},"inLanguage":"de-DE","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/de\/matplotlib-erhoht-die-tracegrosse\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/de\/matplotlib-erhoht-die-tracegrosse\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Heim","item":"https:\/\/statorials.org\/de\/"},{"@type":"ListItem","position":2,"name":"So erh\u00f6hen sie die plotgr\u00f6\u00dfe in matplotlib"}]},{"@type":"WebSite","@id":"https:\/\/statorials.org\/de\/#website","url":"https:\/\/statorials.org\/de\/","name":"Statorials","description":"Ihr Leitfaden f\u00fcr statistische Kompetenz !","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/statorials.org\/de\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"de-DE"},{"@type":"Person","@id":"https:\/\/statorials.org\/de\/#\/schema\/person\/ec75c4d6365f2708f8a0ad3a42121aa0","name":"Dr. Benjamin Anderson","image":{"@type":"ImageObject","inLanguage":"de-DE","@id":"https:\/\/statorials.org\/de\/#\/schema\/person\/image\/","url":"https:\/\/statorials.org\/de\/wp-content\/uploads\/2023\/11\/Benjamin-Anderson-96x96.jpg","contentUrl":"https:\/\/statorials.org\/de\/wp-content\/uploads\/2023\/11\/Benjamin-Anderson-96x96.jpg","caption":"Dr. Benjamin Anderson"},"description":"Hallo, ich bin Benjamin, ein pensionierter Statistikprofessor, der sich zum engagierten Statorials-Lehrer entwickelt hat. Mit umfassender Erfahrung und Fachwissen auf dem Gebiet der Statistik bin ich bestrebt, mein Wissen zu teilen, um Studenten durch Statorials zu bef\u00e4higen. Mehr wissen","sameAs":["https:\/\/statorials.org\/de"]}]}},"yoast_meta":{"yoast_wpseo_title":"","yoast_wpseo_metadesc":"","yoast_wpseo_canonical":""},"_links":{"self":[{"href":"https:\/\/statorials.org\/de\/wp-json\/wp\/v2\/posts\/1783"}],"collection":[{"href":"https:\/\/statorials.org\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/statorials.org\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/statorials.org\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/statorials.org\/de\/wp-json\/wp\/v2\/comments?post=1783"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/de\/wp-json\/wp\/v2\/posts\/1783\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/de\/wp-json\/wp\/v2\/media?parent=1783"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/de\/wp-json\/wp\/v2\/categories?post=1783"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/de\/wp-json\/wp\/v2\/tags?post=1783"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}