On Mon, 10 Apr 2017 11:18:38 -0700 (PDT), Chris Torrence wrote:
If shading is not important for you and you have installed ghostscript
on your system, you can try "good old direct graphics". Here is a demo
for Windows. It should need only small changes for Linux and Mac.
psfile='scatterplot_demo.ps'
pdffile='scatterplot_demo.pdf'
page_width=29.7
page_height=21.
set_plot,'ps'
device,/color,/isolatin1
device,xsize=page_width-3.,ysize=page_height-2.5,xoff=1.5,yo ff=1.
device,file=psfile
temp=findgen(17)*!pi/8.
usersym,cos(temp),sin(temp),/fill
blue='ff5000'x
tvlct,byte(blue,0,1,3),10
x=randomn(seed,4096)
y=randomn(seed,4096)
plot,x,y,/nodata
oplot,x,y,psym=8,syms=.5,color=10
device,/close
factor=720./2.54
command='"'+getenv('ProgramFiles')+'\gs\gs8.61\bin\gswin32c.exe "'+$
' -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite'+$
' -dPDFSETTINGS=/prepress'+$
' -dDEVICEWIDTH='+strtrim(round(page_width*factor),2)+$
' -dDEVICEHEIGHT='+strtrim(round(page_height*factor),2)+$
' -sOutputFile="'+pdffile+'" "'+psfile+'"'
spawn,command,stdout,stderr,/noshell
if stdout ne '' then print,stdout
if stderr ne '' then print,stderr
Cheers, Heinz
|