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)
Se****e ma de ni thui. ("Perhaps thou speakest truth.")


|