{"id":10564,"date":"2014-03-29T17:39:52","date_gmt":"2014-03-29T21:39:52","guid":{"rendered":"http:\/\/scruss.com\/blog\/?p=10564"},"modified":"2014-04-15T07:40:31","modified_gmt":"2014-04-15T11:40:31","slug":"more-fun-with-plotters-graphing-simplifying-and-random-noises","status":"publish","type":"post","link":"https:\/\/scruss.com\/blog\/2014\/03\/29\/more-fun-with-plotters-graphing-simplifying-and-random-noises\/","title":{"rendered":"More fun with plotters: graphing, simplifying, and random noises \u00e2\u20ac\u00a6"},"content":{"rendered":"<ol>\n<li>If you go to the Incompetech <a href=\"http:\/\/incompetech.com\/graphpaper\/multicolor\/\">Multi-Color Graph Paper PDF Generator<\/a> and set the grid spacing to 0.4, 0.8 and 4 lines\/cm, you get a nifty HP-GL unit grid with major lines at 1000 units (25 mm), intermediate lines at 500 units (12\u00c2\u00bd mm) and minor lines at 100 units (2\u00c2\u00bd mm):<br \/>\n<a href=\"http:\/\/scruss.com\/wordpress\/wp-content\/uploads\/2014\/03\/hpgl-grid-web.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-10565\" alt=\"hpgl-grid-web\" src=\"http:\/\/scruss.com\/wordpress\/wp-content\/uploads\/2014\/03\/hpgl-grid-web.png\" width=\"288\" height=\"288\" srcset=\"https:\/\/scruss.com\/wordpress\/wp-content\/uploads\/2014\/03\/hpgl-grid-web.png 288w, https:\/\/scruss.com\/wordpress\/wp-content\/uploads\/2014\/03\/hpgl-grid-web-160x160.png 160w\" sizes=\"auto, (max-width: 288px) 100vw, 288px\" \/><\/a><\/li>\n<li>By a very roundabout route, I used GDAL&#8217;s <a href=\"http:\/\/en.wikipedia.org\/wiki\/Ramer-Douglas-Peucker_algorithm\">simplify<\/a> function to half the line count of my hypotrochoid plots with little visible degradation. The optimised page took far less time to plot:<br \/>\n<a href=\"http:\/\/scruss.com\/wordpress\/wp-content\/uploads\/2014\/03\/hypo1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-10567\" alt=\"hypo1\" src=\"http:\/\/scruss.com\/wordpress\/wp-content\/uploads\/2014\/03\/hypo1.png\" width=\"660\" height=\"510\" srcset=\"https:\/\/scruss.com\/wordpress\/wp-content\/uploads\/2014\/03\/hypo1.png 660w, https:\/\/scruss.com\/wordpress\/wp-content\/uploads\/2014\/03\/hypo1-160x123.png 160w, https:\/\/scruss.com\/wordpress\/wp-content\/uploads\/2014\/03\/hypo1-320x247.png 320w\" sizes=\"auto, (max-width: 660px) 100vw, 660px\" \/><\/a><br \/>\n<a href=\"http:\/\/scruss.com\/wordpress\/wp-content\/uploads\/2014\/03\/hypo2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-10566\" alt=\"hypo2\" src=\"http:\/\/scruss.com\/wordpress\/wp-content\/uploads\/2014\/03\/hypo2.png\" width=\"660\" height=\"510\" srcset=\"https:\/\/scruss.com\/wordpress\/wp-content\/uploads\/2014\/03\/hypo2.png 660w, https:\/\/scruss.com\/wordpress\/wp-content\/uploads\/2014\/03\/hypo2-160x123.png 160w, https:\/\/scruss.com\/wordpress\/wp-content\/uploads\/2014\/03\/hypo2-320x247.png 320w\" sizes=\"auto, (max-width: 660px) 100vw, 660px\" \/><\/a><br \/>\nNext time, I&#8217;d definitely use <a href=\"http:\/\/toblerity.org\/shapely\/project.html\">Shapely<\/a> instead of messing about with GIS formats. Who knows, I might even integrate it into <a href=\"http:\/\/music.columbia.edu\/cmc\/chiplotle\/\">Chiplotle<\/a>. Eventually. (<strong>Update<\/strong>: though I have some <a href=\"http:\/\/glaikit.org\/2014\/04\/15\/gross-misuse-of-the-shapely-library-for-arcane-plotting-purposes\/\">code<\/a> that does something \u00e2\u20ac\u00a6)<\/li>\n<li>Plotters are resolutely electromechanical devices. They turn digital command into analogue output, but my one never sounds too happy doing it. It grumbles, sighs and even moos as it plots. A recent plot sounded a bit like this: <audio class=\"wp-audio-shortcode\" id=\"audio-10564-1\" preload=\"none\" style=\"width: 100%;\" controls=\"controls\"><source type=\"audio\/mpeg\" src=\"http:\/\/scruss.com\/wordpress\/wp-content\/uploads\/2014\/03\/hp7470a-plotter.mp3?_=1\" \/><a href=\"http:\/\/scruss.com\/wordpress\/wp-content\/uploads\/2014\/03\/hp7470a-plotter.mp3\">http:\/\/scruss.com\/wordpress\/wp-content\/uploads\/2014\/03\/hp7470a-plotter.mp3<\/a><\/audio>.<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>If you go to the Incompetech Multi-Color Graph Paper PDF Generator and set the grid spacing to 0.4, 0.8 and 4 lines\/cm, you get a nifty HP-GL unit grid with major lines at 1000 units (25 mm), intermediate lines at 500 units (12\u00c2\u00bd mm) and minor lines at 100 units (2\u00c2\u00bd mm): By a very [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[12,7],"tags":[2790,2789],"class_list":["post-10564","post","type-post","status-publish","format-standard","hentry","category-audblog","category-computers-suck","tag-hp7470a","tag-plotter"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pQNZZ-2Ko","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/posts\/10564","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/comments?post=10564"}],"version-history":[{"count":3,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/posts\/10564\/revisions"}],"predecessor-version":[{"id":10636,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/posts\/10564\/revisions\/10636"}],"wp:attachment":[{"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/media?parent=10564"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/categories?post=10564"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/tags?post=10564"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}