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

Home » Public Forums » archive » NORMALIZE.pro strange behavior ?
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
NORMALIZE.pro strange behavior ? [message #69383] Thu, 14 January 2010 14:00
natha is currently offline  natha
Messages: 482
Registered: October 2007
Senior Member
Hi guys,

I want to plot, using object graphics, the following data:
xr=[0,10]
yr=[5,-5]
datax=findgen(10)
datay=reverse(findgen(10)-5)

Using direct graphics I don't have any problem: PLOT, datax, datay,
xr=xr, yr=yr
Normally, when I use object graphics I use the normalize.pro function
from coyote's library. So, the same code to plot the data using object
graphics should be this:

aa=OBJ_NEW('IDLgrPlot')
aa->Setproperty, datax=datax, datay=datay, xr=xr, yr=yr, THICK=20
position=[10,90]
xs=NORMALIZE(xr, POSITION=position)
ys=NORMALIZE(yr, POSITION=position)
aa->SetProperty, xcoord_conv=xs, ycoord_conv=ys
XOBJVIEW, aa

Oups ! what's happening here. There is no result... ?? I think that
the problem is because my yrange is from a positive value to a
negative value.
Do you know what's happening here and how can I obtain the same result
as direct graphics ?
thanks

nata
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: "workspace in use or cannot be created"
Next Topic: iTools Widgets

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

Current Time: Fri Oct 10 12:02:46 PDT 2025

Total time taken to generate the page: 1.51828 seconds