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 #91176 is a reply to message #91175] Thu, 11 June 2015 12:00 Go to previous messageGo to previous message
Helder Marchetto is currently offline  Helder Marchetto
Messages: 520
Registered: November 2011
Senior Member
On Thursday, June 11, 2015 at 8:19:37 PM UTC+2, wlandsman wrote:
> I am having problems writing a SCATTERPLOT() to a PDF file.
>
> The following plot displays correctly in a window.
>
> x = randomn(seed,4096)
> y = randomn(seed,4096)
> p = scatterplot(x,y,/sym_filled,sym_color='blue',symbol='circle' )
>
> But when I then try to save to a PDF file, I get the error message:
>
> % SAVE: Error in PDF creation: INVALID_SHADING
>
> I have no problems when saving the plot in other data formats.
>
> There also is no problem if I plot less than 4096 points.
>
> Finally, the problem still exists if I first open a window with /BUFFER and write directly to a PDF file.
>
> Thanks, --Wayne
>
>
> w = window(dimen=[800,1100],/buffer)
> x = randomn(seed,4096)
> y = randomn(seed,4096)
>
> p = scatterplot(x,y,/current,/sym_filled,sym_color='blue',symbol ='circle')
> w.save,'test.pdf'
>
> IDL> print,!version
> { x86_64 darwin unix Mac OS X 8.4 Sep 27 2014 64 64}

Just to add some statistics: I get the same results.
IDL> !version
{
"ARCH": "x86_64",
"OS": "Win32",
"OS_FAMILY": "Windows",
"OS_NAME": "Microsoft Windows",
"RELEASE": "8.4.1",
"BUILD_DATE": "Feb 17 2015",
"MEMORY_BITS": 64,
"FILE_OFFSET_BITS": 64
}

Cheers,
Helder
[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 14:57:05 PDT 2025

Total time taken to generate the page: 0.00445 seconds