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

Home » Public Forums » archive » size of usersym symbols
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
size of usersym symbols [message #8392] Thu, 27 February 1997 00:00 Go to next message
haskell is currently offline  haskell
Messages: 3
Registered: January 1997
Junior Member
does anyone know how to 'calibrate' the size of usersym symbols?

the manuals state that the dimensions used in the usersym call are approximately the size of character size units but that does not seem to be the case for me.

for example:

x=indgen(3)
usersym,[0,0,1,1,0],[0,1,1,0,0] ; trying to make a box with a height of one char
plot,x,x,psym=8
xyouts,x,x,' X'

the square produced by usersym is less than half the height of the 'X' that is placed next to it. it appears this way both on the screen and in postscript plots.

i am running version 4.0.1 on a sunos unix system.

i would like to produce symbols that are the same size as characters produced with the xyouts call without using trial and error. does anybody have any suggestions?

cheers,
eddie
Re: size of usersym symbols [message #8414 is a reply to message #8392] Thu, 06 March 1997 00:00 Go to previous message
tonya is currently offline  tonya
Messages: 2
Registered: March 1997
Junior Member
In article <5f45l1$dq5@kuroshio.ccpo.odu.edu>,
eddie haskell <haskell@ccpo.odu.edu> wrote:
> does anyone know how to 'calibrate' the size of usersym symbols?
>
> the manuals state that the dimensions used in the usersym call are approximately the size of character size units but that does not seem to be the case for me.
>
> for example:
>
> x=indgen(3)
> usersym,, ; trying to make a box with a height of one char
> plot,x,x,psym=8
> xyouts,x,x,' X'
>
> the square produced by usersym is less than half the height of the 'X' that is placed next to it. it appears this way both on the screen and in postscript plots.
>
> i am running version 4.0.1 on a sunos unix system.
>
> i would like to produce symbols that are the same size as characters produced with the xyouts call without using trial and error. does anybody have any suggestions?
>
> cheers,
> eddie

Hi Eddie,

To alter the symbol size:
(Note: the variable my_s_size need not be an integer)

my_s_size=2. ;or whatever
usersym,*my_s_size,[0,1,1,0,0]*my_s_size
plot,x,x,psym=8

Regards, Tony.
--
| Tony Adriaansen ~ @_ ~ )))
| Phone: +61 2 413 7211 ~ __| \ )))
| Fax: +61 2 413 7204 [__/__) )))
| email: TonyA@dap.csiro.au __/ \< /__
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: The intersection of 2 arrays
Next Topic: Problems with map_set

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

Current Time: Wed Oct 08 17:36:30 PDT 2025

Total time taken to generate the page: 0.00466 seconds