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

Home » Public Forums » archive » Trig plots auto-shifted (?)
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
Trig plots auto-shifted (?) [message #84689] Thu, 02 August 2012 18:23
A J is currently offline  A J
Messages: 11
Registered: February 2012
Junior Member
Anyone know why IDL plots trig functions of negative numbers as
shifted to the positive?

Example:

x = -1. * dindgen(100)
y = sin(x)
plot, y, xrange=[-100,100]

plots the correct sine function, but over the xrange of [0,100] even
though the input xvalues are all negative. I know I could shift it
back, but I want to know why it is doing this. Any thoughts?
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: FLEXlm, Windows 7 & IDL 6.0
Next Topic: Re: imcontour no longer plotting in color

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

Current Time: Wed Oct 08 15:22:01 PDT 2025

Total time taken to generate the page: 0.00448 seconds