Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Idl-pvware > Re: IDlgrSymbol...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 5 Topic 5596 of 6457
Post > Topic >>

Re: IDlgrSymbol recompute_dimensions ??

by David Fanning <news@[EMAIL PROTECTED] > Apr 3, 2008 at 12:42 PM

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.")
 




 5 Posts in Topic:
IDlgrSymbol recompute_dimensions ??
bernat <bernat.puigdom  2008-04-03 10:46:02 
Re: IDlgrSymbol recompute_dimensions ??
David Fanning <news@[E  2008-04-03 11:58:51 
Re: IDlgrSymbol recompute_dimensions ??
bernat <bernat.puigdom  2008-04-03 11:24:22 
Re: IDlgrSymbol recompute_dimensions ??
David Fanning <news@[E  2008-04-03 12:42:13 
Re: IDlgrSymbol recompute_dimensions ??
bernat <bernat.puigdom  2008-04-03 12:31:36 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Dec 3 21:44:59 CST 2008.