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

Home » Public Forums » archive » Symsize doesn't seem to work?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Symsize doesn't seem to work? [message #65748] Fri, 20 March 2009 18:42 Go to next message
stefan5465 is currently offline  stefan5465
Messages: 13
Registered: March 2009
Junior Member
Dear all,

I'm trying to make plots with the post script device, and am trying to
increase the size of my psym=3 circular points to something that is
actually visible when saved as a .ps, but it doesn't seem to have any
effect. Can anyone see why from the below code? :
FOR i=0,a-1 DO BEGIN

!P.MULTI=0
SET_PLOT,'PS'
DEVICE,/ENCAPSULATED,FILENAME=string(filefolder)+'/Star'+str ing
(FORMAT='(I0)',ensarray[1,0,i])+'.ps',/color,bits_per_pixel= 8
loadct,13

plot,ensarray[0,*,i],ensarray[3,*,i],
$
psym=3,yrange=[min(ensarray[3,*,i]),max(ensarray
[3,*,i])],color=0,symsize=10.0,$
xtitle='HJD - 2450000',$
ytitle='dMag',$
title=' "Intrinsic Photometric Variability" of Star '+string
(FORMAT='(I0)',ensarray[1,0,i]),$
YSTYLE=8
AXIS,yaxis=1,yrange=[min(nofailarray[1,*,*]),max(nofailarray
[1,*,*])],/SAVE,ytitle='Airmass' ;Plots the right axis
oplot,nofailarray[0,*,0],nofailarray[1,*,0],psym =
3,color=120,LINESTYLE=3


ENDFOR
Re: Symsize doesn't seem to work? [message #65831 is a reply to message #65748] Wed, 25 March 2009 18:52 Go to previous message
David Klassen is currently offline  David Klassen
Messages: 27
Registered: December 2004
Junior Member
On Mar 25, 8:45 am, Jeremy Bailin <astroco...@gmail.com> wrote:
> On Mar 24, 7:53 am, Dave Klassen <klas...@rowan.edu> wrote:
>
>> On Mar 22, 8:55 am, Jeremy Bailin <astroco...@gmail.com> wrote:
>
>>> If you want a filled circle (which is not the same as a dot!), I'm
>
>> Interestingly, in the PostScript, a dot is a filled polygon.  No
>> wonder
>> my 40000 point, psym=3 plots are HUGE.
>
> Really? Here's what I see for a plot containing 3 points (once all the
> headers etc. are stripped):
>
> 10 setlinewidth L0 0.000 K 9667 6702 M Z 8178 5643 M Z 6688 4584 M Z
>
> and the definitions of M are {moveto} and Z is {gsave currentpoint
> lineto 20
> setlinewidth 1 setlinecap stroke grestore}. My ps is rusty, but it
> looks like it's just drawing a line from the current point to the
> current point, with rounded edges at each end of the line - so a real
> dot.

Doh! I looked at my code and my plot command does, indeed have
a sym=3 in the line, but it's really a hacked up version of plot and
in *that* code, it specifically swaps a 3 for an 8 where 8 is an
attempt
at really, really, small circle. Never mind... I didn't say
anything... :p
Re: Symsize doesn't seem to work? [message #65842 is a reply to message #65748] Wed, 25 March 2009 05:45 Go to previous message
Jeremy Bailin is currently offline  Jeremy Bailin
Messages: 618
Registered: April 2008
Senior Member
On Mar 24, 7:53 am, Dave Klassen <klas...@rowan.edu> wrote:
> On Mar 22, 8:55 am, Jeremy Bailin <astroco...@gmail.com> wrote:
>
>
>
>> If you want a filled circle (which is not the same as a dot!), I'm
>
> Interestingly, in the PostScript, a dot is a filled polygon.  No
> wonder
> my 40000 point, psym=3 plots are HUGE.

Really? Here's what I see for a plot containing 3 points (once all the
headers etc. are stripped):

10 setlinewidth L0 0.000 K 9667 6702 M Z 8178 5643 M Z 6688 4584 M Z

and the definitions of M are {moveto} and Z is {gsave currentpoint
lineto 20
setlinewidth 1 setlinecap stroke grestore}. My ps is rusty, but it
looks like it's just drawing a line from the current point to the
current point, with rounded edges at each end of the line - so a real
dot.

-Jeremy.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Linux installation problems.. - Solution
Next Topic: Re: Passing more than one variable out of a function.

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

Current Time: Wed Oct 08 15:50:26 PDT 2025

Total time taken to generate the page: 0.00477 seconds