{"id":1169,"date":"2012-10-04T09:55:31","date_gmt":"2012-10-04T09:55:31","guid":{"rendered":"http:\/\/localhost\/wordpress\/?page_id=1169"},"modified":"2012-10-16T15:34:49","modified_gmt":"2012-10-16T15:34:49","slug":"faq-latex-and-postscript-figures","status":"publish","type":"page","link":"https:\/\/www.noiseboard.com\/?page_id=1169","title":{"rendered":"[FAQ] Latex and Postscript Figures"},"content":{"rendered":"<p><a name=\"top\"><\/a><\/p>\n<h2 style=\"background-color: #aac5e0;\">Questions<\/h2>\n<ul>\n<li><a href=\"#q13\">How do I change the line thickness in Matlab postscript figures<\/a><\/li>\n<li><a href=\"#q14\">The axes labels are clipped in my Matlab figure, how do I fix it?<\/a><\/li>\n<li><a href=\"#q15\">My postscript MS Excel chart doesn&#8217;t display properly<\/a><\/li>\n<li><a href=\"#q16\">What software can I use to edit postscript figures?<\/a><\/li>\n<\/ul>\n<h2 style=\"background-color: #aac5e0;\">Answer<\/h2>\n<p><a name=\"q13\"><\/a><\/p>\n<div>\n<p><strong>How do I change the line thickness in Matlab postscript figures<\/strong><\/p>\n<p>Matlab will generate postscript files that can be easily edited. Search the file for the \/<code>SO \/DO<\/code> definitions and replace the lines with this:<\/p>\n<blockquote><p><code>\/SO { [] 0 setdash } bdef<br \/>\n\/DO { [2 dpi2point mul 3 dpi2point mul] 0 setdash } bdef<br \/>\n\/DA { [6 dpi2point mul] 0 setdash } bdef<br \/>\n\/DD { [.5 dpi2point mul 4 dpi2point mul 6 dpi2point mul 4 dpi2point mul] 0 setdash } bdef<br \/>\n<\/code><\/p><\/blockquote>\n<p>This will change the line styles so that they are easier to see when the figure is reduced in size for journal papers.<\/p>\n<p><a href=\"#top\">Back to top<\/a><\/p>\n<hr \/>\n<\/div>\n<p><a name=\"q14\"><\/a><\/p>\n<div>\n<p><strong>The axes labels are clipped in my Matlab figure, how do I fix it?<\/strong><\/p>\n<p>Edit the postscript file and find the string<\/p>\n<blockquote><p><code>%%PageBoundingBox:<\/code><\/p><\/blockquote>\n<p>and change the coordinates <code>llx lly urx ury<\/code> , where <code>ll<\/code> is lower left corner and <code>ur<\/code> is upper right corner. To determine the coordinates, use ghostview with the bounding box markers turned on. Also look for the lines something like:<\/p>\n<blockquote><p><code>portraitMode 0432 7344 csm<\/code><\/p>\n<p>0 28 6894 5156 MR c np<br \/>\n85 dict begin %Colortable dictionary<br \/>\n\/c0 { 0 0 0 sr} bdef<br \/>\n\/c1 { 1 1 1 sr} bdef<\/p><\/blockquote>\n<p>and change the 4 numbers before the <code>MR<\/code>. The <code>c<\/code> character was defined earlier as<\/p>\n<blockquote><p><code>% operator abbreviations<br \/>\n\/c \/clip ldef<br \/>\n<\/code><\/p><\/blockquote>\n<p>so the figure is clipped at the coordinates before the <code>MR<\/code>. The format for the coordinate is <code>ulx uly lrx lry<\/code>, where <code>ul<\/code> is upper left and <code>lr<\/code> is lower right.<\/p>\n<p><a href=\"#top\">Back to top<\/a><\/p>\n<hr \/>\n<\/div>\n<p><a name=\"q15\"><\/a><\/p>\n<div>\n<p><strong>My postscript MS Excel chart doesn&#8217;t display properly<\/strong><\/p>\n<p>To generate postscript output from Excel, you normally print the chart to a file using a postscript printer driver. After you have set the page bounding boxes to enclose the figure, remove all occurrences of &#8220;<code>setpagedevice<\/code>&#8220;.<\/p>\n<p><a href=\"#top\">Back to top<\/a><\/p>\n<hr \/>\n<\/div>\n<p><a name=\"q16\"><\/a><\/p>\n<div>\n<p><strong>What software can I use to edit postscript figures?<\/strong><\/p>\n<p>The popular programs are Corel Draw and Adobe Illustrator. However my experience has been that when a file is imported into those programs and then exported again, the file size is usually 10x the original size!<\/p>\n<p>The only software I have used that handles editing of postscript figures relatively well is <a href=\"http:\/\/www.mayura.com\/\">Mayura Draw<\/a>, inexpensive shareware software that <em>only<\/em> doubles the file size of the original.<\/p>\n<p><a href=\"#top\">Back to top<\/a><\/p>\n<hr \/>\n<\/div>\n<div>[ <a href=\"?page_id=1120\">FAQ index<\/a> ]<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Questions How do I change the line thickness in Matlab postscript figures The axes labels are clipped in my Matlab figure, how do I fix <span class=\"ellipsis\">&hellip;<\/span> <span class=\"entry-more-link-wrapper\"><a href=\"https:\/\/www.noiseboard.com\/?page_id=1169\" class=\"entry-more-link entry-more-link-excerpt btn btn-primary\"><span>Read More<\/span><\/a><\/span><\/p>\n","protected":false},"author":2,"featured_media":0,"parent":1120,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1169","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.noiseboard.com\/index.php?rest_route=\/wp\/v2\/pages\/1169","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.noiseboard.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.noiseboard.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.noiseboard.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.noiseboard.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1169"}],"version-history":[{"count":12,"href":"https:\/\/www.noiseboard.com\/index.php?rest_route=\/wp\/v2\/pages\/1169\/revisions"}],"predecessor-version":[{"id":1334,"href":"https:\/\/www.noiseboard.com\/index.php?rest_route=\/wp\/v2\/pages\/1169\/revisions\/1334"}],"up":[{"embeddable":true,"href":"https:\/\/www.noiseboard.com\/index.php?rest_route=\/wp\/v2\/pages\/1120"}],"wp:attachment":[{"href":"https:\/\/www.noiseboard.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1169"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}