{"id":3911,"date":"2020-12-22T08:32:15","date_gmt":"2020-12-22T13:32:15","guid":{"rendered":"https:\/\/blogs.mathworks.com\/loren\/?p=3911"},"modified":"2020-12-30T13:57:15","modified_gmt":"2020-12-30T18:57:15","slug":"how-to-chart-my-year-redux","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/loren\/2020\/12\/22\/how-to-chart-my-year-redux\/","title":{"rendered":"How to Chart My Year (Redux)"},"content":{"rendered":"<div class=\"content\"><!--introduction--><p>Earlier this year, I blogged about <a href=\"https:\/\/blogs.mathworks.com\/loren\/2020\/01\/14\/how-to-chart-my-year\/\">charting<\/a> my year of travels.  Well, my year didn't go the way I expected it to go.  The same for (almost?) everyone else.<\/p><p>Here's part of what I wrote: <i>I travel a lot.  Mostly for work.  I do try to take advantage of the priviledge - visiting so many amazing places -- and spend a little extra time occasionally.  People even joke that I should be writing a travel blog.  Of course I prefer to write one on MATLAB.  But how about combining these just for fun today.<\/i><\/p><p>Little did I know what the year had to bring to us.  But I promised to fill in my year with pictures, and I will do the best I can here.<\/p><!--\/introduction--><h3>Contents<\/h3><div><ul><li><a href=\"#a17c4acd-27cc-46dd-ab8c-0857bdbbfa91\">My \"Calendar\" for This Year<\/a><\/li><li><a href=\"#807af60a-a1b8-4c10-91a6-5357d0276a37\">Two Pictures Not from New England<\/a><\/li><\/ul><\/div><h4>My \"Calendar\" for This Year<a name=\"a17c4acd-27cc-46dd-ab8c-0857bdbbfa91\"><\/a><\/h4><p>Here's the \"calendar\" for my (mostly) non-travels.  I And I also wanted to show my meanders a bit as well.  But since you won't see much happen on a map, I have included a montage of pictures I took on my very local meanderings throughout the seasons.<\/p><pre class=\"codeinput\">t = tiledlayout(4,4);\r\ntitle(t,<span class=\"string\">\"Loren's 2020 mostly NON Travels\"<\/span>)\r\nt.TileSpacing = <span class=\"string\">\"compact\"<\/span>;\r\nt.Padding = <span class=\"string\">\"compact\"<\/span>;\r\nnexttile; imshow(<span class=\"string\">\"mw01_2020.jpg\"<\/span>), title(<span class=\"string\">\"Jan 01\"<\/span>)\r\nnexttile, imshow(<span class=\"string\">\"mw02_2020.jpg\"<\/span>), title(<span class=\"string\">\"Feb\"<\/span>)\r\nnexttile, imshow(<span class=\"string\">\"mw03_2020.jpg\"<\/span>), title(<span class=\"string\">\"Mar\"<\/span>)\r\nnexttile, imshow(<span class=\"string\">\"mw04_2020.jpg\"<\/span>), title(<span class=\"string\">\"Apr\"<\/span>)\r\nnexttile, imshow(<span class=\"string\">\"mw05_2020.jpg\"<\/span>), title(<span class=\"string\">\"May\"<\/span>)\r\nnexttile(8), imshow(<span class=\"string\">\"mw06_2020.jpg\"<\/span>), title(<span class=\"string\">\"Jun\"<\/span>)\r\nnexttile(9), imshow(<span class=\"string\">\"mw07_2020.jpg\"<\/span>), title(<span class=\"string\">\"Jul\"<\/span>)\r\nnexttile(12), imshow(<span class=\"string\">\"mw08_2020.jpg\"<\/span>), title(<span class=\"string\">\"Aug\"<\/span>)\r\nnexttile(13), imshow(<span class=\"string\">\"mw09_2020.jpg\"<\/span>), title(<span class=\"string\">\"Sep\"<\/span>)\r\nnexttile(14), imshow(<span class=\"string\">\"mw10_2020.jpg\"<\/span>), title(<span class=\"string\">\"Oct\"<\/span>)\r\nnexttile(15), imshow(<span class=\"string\">\"mw11_2020.jpg\"<\/span>), title(<span class=\"string\">\"Nov\"<\/span>)\r\nnexttile(16), imshow(<span class=\"string\">\"mw12_2020.jpg\"<\/span>), title(<span class=\"string\">\"Dec\"<\/span>)\r\n<span class=\"comment\">% nexttile(6,[2,2]); geoplot([-44 77],[172 20],\"m-*\")<\/span>\r\n<\/pre><img decoding=\"async\" vspace=\"5\" hspace=\"5\" src=\"https:\/\/blogs.mathworks.com\/images\/loren\/2020\/yearRedux_01.png\" alt=\"\"> <p>Instead of a map, I will fill the middle with a montage of photos over the seasons here this year (including some wildlife!).  Ones I often don't see since I've usually been elsewhere!<\/p><pre class=\"codeinput\">mydir = dir(<span class=\"string\">\"*.jpg\"<\/span>);\r\nmydir = mydir(14:end-1);\r\nnexttile(6,[2,2]); montage({mydir.name}), title(<span class=\"string\">\"seasonal\"<\/span>)\r\n<\/pre><img decoding=\"async\" vspace=\"5\" hspace=\"5\" src=\"https:\/\/blogs.mathworks.com\/images\/loren\/2020\/yearRedux_02.png\" alt=\"\"> <h4>Two Pictures Not from New England<a name=\"807af60a-a1b8-4c10-91a6-5357d0276a37\"><\/a><\/h4><p>The first two pictures (January and February) are not from New England:<\/p><div><ul><li>January - the 1st - spent in Fort Worth, TX - nighttime view at the Modern Art Museum<\/li><li>February - view of some volcanos from Mexico City hotel roof<\/li><\/ul><\/div><p>As for the rest, I got to the beach in Massachusetts as often as possible, and managed to see quite a cross-section of wildlife in my yard and nearby.<\/p><p>Here's hoping we all have more choices in the coming year.  Have a happy, healthy, safe 2021!<\/p><p>Notice how I lay out my grid of plots, which thankfully has room for 12 months surrounding the central montage of pictures.  Did you know that you could lay out plots so nicely now?  And add the all important annotations, plot by plot, including titles and axis labels?  Let me know <a href=\"https:\/\/blogs.mathworks.com\/loren\/?p=3911#respond\">here<\/a>.<\/p><script language=\"JavaScript\"> <!-- \r\n    function grabCode_e647cbc9aa4240789311c192207e3a6a() {\r\n        \/\/ Remember the title so we can use it in the new page\r\n        title = document.title;\r\n\r\n        \/\/ Break up these strings so that their presence\r\n        \/\/ in the Javascript doesn't mess up the search for\r\n        \/\/ the MATLAB code.\r\n        t1='e647cbc9aa4240789311c192207e3a6a ' + '##### ' + 'SOURCE BEGIN' + ' #####';\r\n        t2='##### ' + 'SOURCE END' + ' #####' + ' e647cbc9aa4240789311c192207e3a6a';\r\n    \r\n        b=document.getElementsByTagName('body')[0];\r\n        i1=b.innerHTML.indexOf(t1)+t1.length;\r\n        i2=b.innerHTML.indexOf(t2);\r\n \r\n        code_string = b.innerHTML.substring(i1, i2);\r\n        code_string = code_string.replace(\/REPLACE_WITH_DASH_DASH\/g,'--');\r\n\r\n        \/\/ Use \/x3C\/g instead of the less-than character to avoid errors \r\n        \/\/ in the XML parser.\r\n        \/\/ Use '\\x26#60;' instead of '<' so that the XML parser\r\n        \/\/ doesn't go ahead and substitute the less-than character. \r\n        code_string = code_string.replace(\/\\x3C\/g, '\\x26#60;');\r\n\r\n        copyright = 'Copyright 2020 The MathWorks, Inc.';\r\n\r\n        w = window.open();\r\n        d = w.document;\r\n        d.write('<pre>\\n');\r\n        d.write(code_string);\r\n\r\n        \/\/ Add copyright line at the bottom if specified.\r\n        if (copyright.length > 0) {\r\n            d.writeln('');\r\n            d.writeln('%%');\r\n            if (copyright.length > 0) {\r\n                d.writeln('% _' + copyright + '_');\r\n            }\r\n        }\r\n\r\n        d.write('<\/pre>\\n');\r\n\r\n        d.title = title + ' (MATLAB code)';\r\n        d.close();\r\n    }   \r\n     --> <\/script><p style=\"text-align: right; font-size: xx-small; font-weight:lighter;   font-style: italic; color: gray\"><br><a href=\"javascript:grabCode_e647cbc9aa4240789311c192207e3a6a()\"><span style=\"font-size: x-small;        font-style: italic;\">Get \r\n      the MATLAB code <noscript>(requires JavaScript)<\/noscript><\/span><\/a><br><br>\r\n      Published with MATLAB&reg; R2020b<br><\/p><\/div><!--\r\ne647cbc9aa4240789311c192207e3a6a ##### SOURCE BEGIN #####\r\n%% How to Chart My Year (Redux)\r\n% Earlier this year, I blogged about\r\n% <https:\/\/blogs.mathworks.com\/loren\/2020\/01\/14\/how-to-chart-my-year\/\r\n% charting> my year of travels.  Well, my year didn't go the way I expected\r\n% it to go.  The same for (almost?) everyone else.\r\n%\r\n% Here's part of what I wrote:\r\n% _I travel a lot.  Mostly for work.  I do try to take advantage of the\r\n% priviledge - visiting so many amazing places REPLACE_WITH_DASH_DASH and spend a little extra\r\n% time occasionally.  People even joke that I should be writing a travel\r\n% blog.  Of course I prefer to write one on MATLAB.  But how about\r\n% combining these just for fun today._\r\n%\r\n% Little did I know what the year had to bring to us.  But I promised to\r\n% fill in my year with pictures, and I will do the best I can here.\r\n%% My \"Calendar\" for This Year\r\n% Here's the \"calendar\" for my (mostly) non-travels.  I And I also wanted\r\n% to show my meanders a bit as well.  But since you won't see much happen\r\n% on a map, I have included a montage of pictures I took on my very local\r\n% meanderings throughout the seasons.\r\n  \r\nt = tiledlayout(4,4);\r\ntitle(t,\"Loren's 2020 mostly NON Travels\")\r\nt.TileSpacing = \"compact\";\r\nt.Padding = \"compact\";\r\nnexttile; imshow(\"mw01_2020.jpg\"), title(\"Jan 01\")\r\nnexttile, imshow(\"mw02_2020.jpg\"), title(\"Feb\")\r\nnexttile, imshow(\"mw03_2020.jpg\"), title(\"Mar\")\r\nnexttile, imshow(\"mw04_2020.jpg\"), title(\"Apr\")\r\nnexttile, imshow(\"mw05_2020.jpg\"), title(\"May\")\r\nnexttile(8), imshow(\"mw06_2020.jpg\"), title(\"Jun\")\r\nnexttile(9), imshow(\"mw07_2020.jpg\"), title(\"Jul\")\r\nnexttile(12), imshow(\"mw08_2020.jpg\"), title(\"Aug\")\r\nnexttile(13), imshow(\"mw09_2020.jpg\"), title(\"Sep\")\r\nnexttile(14), imshow(\"mw10_2020.jpg\"), title(\"Oct\")\r\nnexttile(15), imshow(\"mw11_2020.jpg\"), title(\"Nov\")\r\nnexttile(16), imshow(\"mw12_2020.jpg\"), title(\"Dec\")\r\n% nexttile(6,[2,2]); geoplot([-44 77],[172 20],\"m-*\")\r\n%% \r\n% Instead of a map, I will fill the middle with a montage of photos over\r\n% the seasons here this year (including some wildlife!).  Ones I often\r\n% don't see since I've usually been elsewhere!\r\nmydir = dir(\"*.jpg\");\r\nmydir = mydir(14:end-1);\r\nnexttile(6,[2,2]); montage({mydir.name}), title(\"seasonal\")\r\n%% Two Pictures Not from New England\r\n% The first two pictures (January and February) are not from New England:\r\n%\r\n% * January - the 1st - spent in Fort Worth, TX - nighttime view at the\r\n% Modern Art Museum\r\n% * February - view of some volcanos from Mexico City hotel roof\r\n%\r\n% As for the rest, I got to the beach in Massachusetts as often as\r\n% possible, and managed to see quite a cross-section of wildlife in my yard\r\n% and nearby.\r\n%\r\n% Here's hoping we all have more choices in the coming year.  Have a happy,\r\n% healthy, safe 2021!\r\n%%\r\n% Notice how I lay out my grid of plots, which thankfully has room for 12\r\n% months surrounding the central montage of pictures.  Did you know that\r\n% you could lay out plots so nicely now?  And add the all important\r\n% annotations, plot by plot, including titles and axis labels?  Let me know\r\n% <https:\/\/blogs.mathworks.com\/loren\/?p=3911#respond here>.\r\n##### SOURCE END ##### e647cbc9aa4240789311c192207e3a6a\r\n-->","protected":false},"excerpt":{"rendered":"<div class=\"overview-image\"><img decoding=\"async\"  class=\"img-responsive\" src=\"https:\/\/blogs.mathworks.com\/images\/loren\/2020\/yearRedux_02.png\" onError=\"this.style.display ='none';\" \/><\/div><!--introduction--><p>Earlier this year, I blogged about <a href=\"https:\/\/blogs.mathworks.com\/loren\/2020\/01\/14\/how-to-chart-my-year\/\">charting<\/a> my year of travels.  Well, my year didn't go the way I expected it to go.  The same for (almost?) everyone else.... <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/loren\/2020\/12\/22\/how-to-chart-my-year-redux\/\">read more >><\/a><\/p>","protected":false},"author":39,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[21],"tags":[],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/loren\/wp-json\/wp\/v2\/posts\/3911"}],"collection":[{"href":"https:\/\/blogs.mathworks.com\/loren\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.mathworks.com\/loren\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/loren\/wp-json\/wp\/v2\/users\/39"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/loren\/wp-json\/wp\/v2\/comments?post=3911"}],"version-history":[{"count":2,"href":"https:\/\/blogs.mathworks.com\/loren\/wp-json\/wp\/v2\/posts\/3911\/revisions"}],"predecessor-version":[{"id":3915,"href":"https:\/\/blogs.mathworks.com\/loren\/wp-json\/wp\/v2\/posts\/3911\/revisions\/3915"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/loren\/wp-json\/wp\/v2\/media?parent=3911"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/loren\/wp-json\/wp\/v2\/categories?post=3911"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/loren\/wp-json\/wp\/v2\/tags?post=3911"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}