{"id":274,"date":"2025-10-22T11:58:49","date_gmt":"2025-10-22T11:58:49","guid":{"rendered":"https:\/\/ykim.synology.me\/wordpress\/?p=274"},"modified":"2025-11-02T02:53:28","modified_gmt":"2025-11-02T02:53:28","slug":"python-codes-todo","status":"publish","type":"post","link":"https:\/\/ykim.synology.me\/wordpress\/python-codes-todo-274\/","title":{"rendered":"Python, XKCD plots in MatplotlibPython Codes &#8211; TODO"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"381\" height=\"312\" src=\"https:\/\/ykim.synology.me\/wordpress\/wp-content\/uploads\/2025\/10\/image-25.png\" alt=\"\" class=\"wp-image-1081\" srcset=\"https:\/\/ykim.synology.me\/wordpress\/wp-content\/uploads\/2025\/10\/image-25.png 381w, https:\/\/ykim.synology.me\/wordpress\/wp-content\/uploads\/2025\/10\/image-25-300x246.png 300w\" sizes=\"auto, (max-width: 381px) 100vw, 381px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">XKCD plots in Matplotlib<br>This notebook originally appeared as a blog post at Pythonic Perambulations by Jake Vanderplas.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Update: the matplotlib pull request has been merged! See This post for a description of the XKCD functionality now built-in to matplotlib!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">One of the problems I&#8217;ve had with typical matplotlib figures is that everything in them is so precise, so perfect. For an example of what I mean, take a look at this figure:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\" style=\"font-style:normal;font-weight:1000\">. . . . . . <\/p>\n\n\n\n<iframe loading=\"lazy\" src=\"https:\/\/nbviewer.org\/url\/jakevdp.github.io\/downloads\/notebooks\/XKCD_plots.ipynb\" width=\"100%\" height=\"600\" style=\"border:1px solid #ccc;\">\n  <p>Your browser does not support iframes. <a href=\"EXTERNAL_URL_HERE\" target=\"_blank\">Click here to visit the page.<\/a><\/p>\n<\/iframe>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/nbviewer.org\/url\/jakevdp.github.io\/downloads\/notebooks\/XKCD_plots.ipynb\" target=\"_blank\" rel=\"noopener\">https:\/\/nbviewer.org\/url\/jakevdp.github.io\/downloads\/notebooks\/XKCD_plots.ipynb<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n<div style='text-align:center' class='yasr-auto-insert-overall'><\/div><div style='text-align:center' class='yasr-auto-insert-visitor'><\/div>","protected":false},"excerpt":{"rendered":"<p>XKCD plots in MatplotlibThis notebook originally appeared as a blog post at Pythonic Perambulations by Jake Vanderplas. Update: the matplotlib pull request has been merged! See This post for a description of the XKCD functionality now built-in to matplotlib! One of the problems I&#8217;ve had with typical matplotlib figures is that everything in them is&#8230;<\/p>\n","protected":false},"author":1,"featured_media":1081,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"_kadence_starter_templates_imported_post":false,"_kad_post_transparent":"","_kad_post_title":"default","_kad_post_layout":"default","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"default","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","yasr_overall_rating":0,"yasr_post_is_review":"","yasr_auto_insert_disabled":"","yasr_review_type":"","fifu_image_url":"","fifu_image_alt":"","iawp_total_views":0,"footnotes":""},"categories":[10,47,43],"tags":[38],"class_list":["post-274","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software-slug","category-code-snippet-slug","category-reference-slug","tag-python"],"yasr_visitor_votes":{"stars_attributes":{"read_only":false,"span_bottom":false},"number_of_votes":0,"sum_votes":0},"jetpack_featured_media_url":"https:\/\/ykim.synology.me\/wordpress\/wp-content\/uploads\/2025\/10\/image-25.png","_links":{"self":[{"href":"https:\/\/ykim.synology.me\/wordpress\/wp-json\/wp\/v2\/posts\/274","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ykim.synology.me\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ykim.synology.me\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ykim.synology.me\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ykim.synology.me\/wordpress\/wp-json\/wp\/v2\/comments?post=274"}],"version-history":[{"count":8,"href":"https:\/\/ykim.synology.me\/wordpress\/wp-json\/wp\/v2\/posts\/274\/revisions"}],"predecessor-version":[{"id":1163,"href":"https:\/\/ykim.synology.me\/wordpress\/wp-json\/wp\/v2\/posts\/274\/revisions\/1163"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ykim.synology.me\/wordpress\/wp-json\/wp\/v2\/media\/1081"}],"wp:attachment":[{"href":"https:\/\/ykim.synology.me\/wordpress\/wp-json\/wp\/v2\/media?parent=274"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ykim.synology.me\/wordpress\/wp-json\/wp\/v2\/categories?post=274"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ykim.synology.me\/wordpress\/wp-json\/wp\/v2\/tags?post=274"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}