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

Home » Public Forums » archive » IDlgrSymbol recompute_dimensions ??
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: IDlgrSymbol recompute_dimensions ?? [message #59668 is a reply to message #59571] Thu, 03 April 2008 11:42 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
bernat writes:

> I do that,
>
> plot=OBJ_NEW('IDlgrPlot', SYMBOL=oSymbol)
>
> plot->SetProperty, DATAX=datax, DATAY=datay
> plot->GetProperty, XRANGE=xrange, YRANGe=yrange
>
> xs=NORMALIZE(xrange, POSITION=[location[0],
> location[0]+dimensions[0]])
> ys=NORMALIZE(yrange, POSITION=[location[1],
> location[1]+dimensions[1]])
>
> plot->SetProperty, XCOOR_CONV=xs, YCOORD_CONV=ys
>
> Where datax and datay are my values, oSymbol is my IDLgrSymbol and
> location and dimensions is the position and dimensions of the plot in
> the View.

Oh, right. I don't have time to work on this, but
I see in XPLOT (on my web page), I have had to size
the symbol according to the axes ranges. I've done
something like this:

; Size the symbols appropriately for the plot.
xSymSize = (xrange[1] - xrange[0]) * 0.015 * symSize
ySymSize = (yrange[1] - yrange[0]) * 0.015 * symSize
IF Obj_Valid(thisSymbol) THEN $
thisSymbol->SetProperty, Size=[xSymSize, ySymSize]

If I don't do that, the symbols are completely misshaped.

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming (www.dfanning.com)
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: something strange with MESH_VOLUME
Next Topic: Re: something strange with MESH_VOLUME

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

Current Time: Fri Oct 10 09:42:52 PDT 2025

Total time taken to generate the page: 1.67890 seconds