Article View: adobe.postscript.programming
Article #21postscript & sparse matrices: howto?
From: Nico_Schl�mer
Date: Sat, 31 Jan 2009 16:03
Date: Sat, 31 Jan 2009 16:03
17 lines
1570 bytes
1570 bytes
hi! i'm dealing with matrices here and want to plot its value into postscript. in fact, i just need a black spot where a matrix entry is not zero, white everywhere else. easy, isn't it? particulary, my matrices have very few non-zero entries, so the ps file would only have a few black spots here and there. now, what's the best way to write this in postscript? the first thing i tried was the image environment: works well as soon as you got used to the syntax, but the big disadvantage for me was that i have to explicitly code all the white pixels, so the eps file gets a lot bigger than needed (it feels). the second thing i tried was defining a small "draw tiny box" command, then "move to" the non-zero spots, and evoke the function. that's better then the image way (the files are a lot smaller), but it still feels like a hack somehow. do you have any hints or suggestions for the issue? are there any commands or environment that would be better suited? all hints appreciated! cheers, nico
Technical Details
Message-ID:
<59b7be49.-1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newshub.sdsu.edu!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: 10c61a,527ad8c75b709cef,start X-Google-Attributes: gid10c61a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Nico_Schl�mer@adobeforums.com Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.postscript.programming Subject: postscript & sparse matrices: howto? Message-ID: <59b7be49.-1@webcrossing.la2eafNXanI> Date: Sat, 31 Jan 2009 08:03:04 -0800 Lines: 27 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit