comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Problem writing SCATTERPLOT() with more than 4096 points to PDF file
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Problem writing SCATTERPLOT() with more than 4096 points to PDF file [message #94341 is a reply to message #94323] Fri, 14 April 2017 10:21 Go to previous messageGo to previous message
Heinz Stege is currently offline  Heinz Stege
Messages: 189
Registered: January 2003
Senior Member
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
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: parse subdirectories
Next Topic: masking float/interger arrays in IDL

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:07:44 PDT 2025

Total time taken to generate the page: 0.00447 seconds