meditationatae

Just another WordPress.com site

PostScript “source code”, 14-vertex 33-edge graph

Starts below, with a fixed number of lines (4 it seems) for each of the 33 edges programmed to be drawn. File name should end in .ps :

newpath
73 269 moveto
353 289 lineto
stroke
newpath
73 269 moveto
353 289 lineto
stroke
newpath
73 269 moveto
296 440 lineto
stroke
newpath
73 269 moveto
230 36 lineto
stroke
newpath
136 466 moveto
172 188 lineto
stroke
newpath
136 466 moveto
259 719 lineto
stroke
newpath
136 466 moveto
353 289 lineto
stroke
newpath
136 466 moveto
416 486 lineto
stroke
newpath
172 188 moveto
296 440 lineto
stroke
newpath
172 188 moveto
453 207 lineto
stroke
newpath
576 460 moveto
353 289 lineto
stroke
newpath
576 460 moveto
296 440 lineto
stroke
newpath
576 460 moveto
539 738 lineto
stroke
newpath
576 460 moveto
453 207 lineto
stroke
newpath
576 460 moveto
316 567 lineto
stroke
newpath
259 719 moveto
36 548 lineto
stroke
newpath
259 719 moveto
296 440 lineto
stroke
newpath
259 719 moveto
539 738 lineto
stroke
newpath
259 719 moveto
416 486 lineto
stroke
newpath
353 289 moveto
316 567 lineto
stroke
newpath
353 289 moveto
230 36 lineto
stroke
newpath
36 548 moveto
296 440 lineto
stroke
newpath
36 548 moveto
193 315 lineto
stroke
newpath
36 548 moveto
316 567 lineto
stroke
newpath
296 440 moveto
453 207 lineto
stroke
newpath
193 315 moveto
453 207 lineto
stroke
newpath
193 315 moveto
316 567 lineto
stroke
newpath
193 315 moveto
230 36 lineto
stroke
newpath
193 315 moveto
416 486 lineto
stroke
newpath
539 738 moveto
316 567 lineto
stroke
newpath
539 738 moveto
416 486 lineto
stroke
newpath
453 207 moveto
230 36 lineto
stroke
newpath
453 207 moveto
416 486 lineto
stroke

 

Comment: Bill Casselman at UBC has written a book on using PostScript in mathematical illustrations. Some of the chapters can be downloaded for free in PDF from his web-site.

You can google:

Casselman UBC PostScript

to find this.

Coordinates above are in points, where a point is 1/72 of an inch in PostScript. ps2pdf will convert a *.ps file to a *.pdf file that can be opened with Adobe Reader. Below, I add a screenshot of the screen-displayed PDF file. I still need to label the vertices, so it becomes possible to name triangles, paths and so on in the graph. I’ll do that later by hand, since my knowledge of PostScript is beginner level.

graph33ascreenshot

Advertisements

Written by meditationatae

February 27, 2017 at 4:31 pm

Posted in History

%d bloggers like this: