{"id":234,"date":"2010-05-27T12:59:38","date_gmt":"2010-05-27T12:59:38","guid":{"rendered":"https:\/\/blogs.mathworks.com\/loren\/2010\/05\/27\/matlab-for-typography\/"},"modified":"2017-11-17T12:46:19","modified_gmt":"2017-11-17T17:46:19","slug":"matlab-for-typography","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/loren\/2010\/05\/27\/matlab-for-typography\/","title":{"rendered":"MATLAB for Typography?"},"content":{"rendered":"<div xmlns:mwsh=\"https:\/\/www.mathworks.com\/namespace\/mcode\/v1\/syntaxhighlight.dtd\" class=\"content\">\r\n   <introduction>\r\n      <p>I was wandering around the web and came across work by <a href=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/authors\/54679\">Ankur Pawar<\/a> on <a href=\"http:\/\/www.flickr.com\/photos\/powerofankur\/\">flickr<\/a>.  He has some beautiful pictures with font embellishments, as well as gorgeous depictions of some transcendental functions.\r\n      <\/p>\r\n   <\/introduction>\r\n   <h3>Contents<\/h3>\r\n   <div>\r\n      <ul>\r\n         <li><a href=\"#1\">MATLAB Typography on flickr<\/a><\/li>\r\n         <li><a href=\"#2\">Make These Yourself<\/a><\/li>\r\n         <li><a href=\"#4\">How about You?<\/a><\/li>\r\n      <\/ul>\r\n   <\/div>\r\n   <h3>MATLAB Typography on flickr<a name=\"1\"><\/a><\/h3>\r\n   <p>Here are some of the typography images that Ankur has placed on flickr.<\/p>\r\n   <p><img decoding=\"async\" vspace=\"5\" hspace=\"5\" src=\"http:\/\/farm5.static.flickr.com\/4054\/4577041006_464bfcd3b9_m.jpg\"> <\/p>\r\n   <p><img decoding=\"async\" vspace=\"5\" hspace=\"5\" src=\"http:\/\/farm5.static.flickr.com\/4025\/4577039752_469fd6e6f9_m.jpg\"> <\/p>\r\n   <h3>Make These Yourself<a name=\"2\"><\/a><\/h3>\r\n   <p>Lo and behold, Ankur has entries for how to achieve these results on <a href=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/25773-domain-coloring\">MATLAB Central<\/a>.  Download the code, and you can embellish on Ankur's work.\r\n   <\/p>\r\n\r\n   <h3>How about You?<a name=\"4\"><\/a><\/h3>\r\n   <p>Have you created some beautiful pictures in MATLAB that give you some special insight?  I don't have a way to gather your\r\n      pictures here, but you could post them <a href=\"https:\/\/blogs.mathworks.com\/loren\/?p=234#respond\">here<\/a>, with the right html formatting.  To include a picture, you might use code like this, with obvious spaces omitted:\r\n   <\/p><pre>          &lt;img src = \"your url here\"&gt;<\/pre><script language=\"JavaScript\">\r\n<!--\r\n\r\n    function grabCode_c0ff4d4f6a724ff7a5d0973a20c328b2() {\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='c0ff4d4f6a724ff7a5d0973a20c328b2 ' + '##### ' + 'SOURCE BEGIN' + ' #####';\r\n        t2='##### ' + 'SOURCE END' + ' #####' + ' c0ff4d4f6a724ff7a5d0973a20c328b2';\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        author = 'Loren Shure';\r\n        copyright = 'Copyright 2010 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 author and copyright lines at the bottom if specified.\r\n        if ((author.length > 0) || (copyright.length > 0)) {\r\n            d.writeln('');\r\n            d.writeln('%%');\r\n            if (author.length > 0) {\r\n                d.writeln('% _' + author + '_');\r\n            }\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      \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_c0ff4d4f6a724ff7a5d0973a20c328b2()\"><span style=\"font-size: x-small;        font-style: italic;\">Get \r\n            the MATLAB code \r\n            <noscript>(requires JavaScript)<\/noscript><\/span><\/a><br><br>\r\n      Published with MATLAB&reg; 7.10<br><\/p>\r\n<\/div>\r\n<!--\r\nc0ff4d4f6a724ff7a5d0973a20c328b2 ##### SOURCE BEGIN #####\r\n%% MATLAB for Typography?\r\n% I was wandering around the web and came across work by\r\n% <https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/authors\/54679 Ankur\r\n% Pawar> on <http:\/\/www.flickr.com\/photos\/powerofankur\/ flickr>.  He has\r\n% some beautiful pictures with font embellishments, as well as gorgeous\r\n% depictions of some transcendental functions.\r\n\r\n%% MATLAB Typography on flickr\r\n% Here are some of the typography images that Ankur has placed on flickr.\r\n%\r\n% <<http:\/\/farm5.static.flickr.com\/4054\/4577041006_464bfcd3b9_m.jpg>>\r\n%\r\n% <<http:\/\/farm5.static.flickr.com\/4025\/4577039752_469fd6e6f9_m.jpg>>\r\n%\r\n%% Make These Yourself\r\n% Lo and behold, Ankur has entries for how to achieve these results on\r\n% <https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/25773-domain-coloring\r\n% MATLAB Central>.  Download the code, and you can embellish on Ankur's\r\n% work.\r\n%% Functions in the Complex Plane\r\n% Ankur also creates some beautiful displays of functions in the complex\r\n% plane.  Here's a teaser for you to go check them out in more detail.\r\n%\r\n% <<https:\/\/www.mathworks.com\/matlabcentral\/fx_files\/25773\/3\/preview.jpg>>\r\n%\r\n%% How about You?\r\n% Have you created some beautiful pictures in MATLAB that give you some\r\n% special insight?  I don't have a way to gather your pictures here, but\r\n% you could post them <https:\/\/blogs.mathworks.com\/loren\/?p=234#respond\r\n% here>, with the right html formatting.  To include a picture, you might\r\n% use code like this, with obvious spaces omitted:\r\n%\r\n%            <img src = \"your url here\">\r\n\r\n##### SOURCE END ##### c0ff4d4f6a724ff7a5d0973a20c328b2\r\n-->","protected":false},"excerpt":{"rendered":"<p>\r\n   \r\n      I was wandering around the web and came across work by Ankur Pawar on flickr.  He has some beautiful pictures with font embellishments, as well as gorgeous depictions of some... <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/loren\/2010\/05\/27\/matlab-for-typography\/\">read more >><\/a><\/p>","protected":false},"author":39,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[33,21],"tags":[],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/loren\/wp-json\/wp\/v2\/posts\/234"}],"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=234"}],"version-history":[{"count":3,"href":"https:\/\/blogs.mathworks.com\/loren\/wp-json\/wp\/v2\/posts\/234\/revisions"}],"predecessor-version":[{"id":2474,"href":"https:\/\/blogs.mathworks.com\/loren\/wp-json\/wp\/v2\/posts\/234\/revisions\/2474"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/loren\/wp-json\/wp\/v2\/media?parent=234"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/loren\/wp-json\/wp\/v2\/categories?post=234"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/loren\/wp-json\/wp\/v2\/tags?post=234"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}