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

Home » Public Forums » archive » Any alternatives of "circle" ('o') symbol using New Graphics?
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: Any alternatives of "circle" ('o') symbol using New Graphics? [message #89172 is a reply to message #89164] Wed, 30 July 2014 09:38 Go to previous messageGo to previous message
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
On 07/30/14 03:16, stpjhj@gmail.com wrote:
> Hello,
>
> I've been using DG for a couple of years, but recently I began to use
> NG.
>
> Today, I needed to save a scatter plot of 20K data points in eps
> format. I marked each point with circular symbol, 'o'. IDL generated
> 54MB eps file in about 5 to 10 minutes. I soon realised that this is
> due to the fact that each circular symbol has too many vertices, and
> if I change symbol into '+' it would yield a simple small 1.4MB eps
> file instantly.
>
> So, would there be any alternative circular symbol that I can use
> like "p=plot(..., sym_object=foo(),...)" that does not make my plot
> file as large as a high-def music video?
>
> Thanks in advance.

What about a really thick dot?

E.g.

IDL> x=randomu(seed,20000)
IDL> y=randomu(seed,20000)
IDL> p=plot(x,y,linestyle='none',symbol='dot',sym_thick=4)
IDL> p.save,'test.eps'
IDL> $ls -l test.eps
-rw-r--r--. 1 wd20pd wd4 2532131 Jul 30 12:34 test.eps

Using a circle produces a 4-5x larger file:

IDL> p=plot(x,y,linestyle='none',symbol='circle')
IDL> p.save,'test.eps'
IDL> $ls -l test.eps
-rw-r--r--. 1 wd20pd wd4 11658936 Jul 30 12:34 test.eps


But use of + still wins for size:

IDL> p=plot(x,y,linestyle='none',symbol='+')
IDL> p.save,'test.eps'
IDL> $ls -l test.eps
-rw-r--r--. 1 wd20pd wd4 1506428 Jul 30 12:34 test.eps


cheers,

paulv
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Deleting rows in a matrix
Next Topic: Unable to allocate memory: to make array for panchromatic file

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

Current Time: Fri Oct 10 06:03:22 PDT 2025

Total time taken to generate the page: 0.71990 seconds