X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 01 Jul 2007 11:02 PM by  anon
another plot question
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
01 Jul 2007 11:02 PM
    When I use psym=0, I get the results I want, except that it draws a line from the last data point horizontally across the chart to the y-axis. Why is it connecting my highest x point to the x=0 point? How do I tell it to stop doing this? Thanks. screenshot: http://orbitsimulator.com/gravity/images/idlq.GIF

    Deleted User



    New Member


    Posts:
    New Member


    --
    01 Jul 2007 11:02 PM
    PSYM=0 does nothing, and there is never any reason to use it. The only reason the line you are seeing should be drawn "from the last data point" is if there were one additional datapoint described in your x and y arrays that you did not expect to be there, one that has a 0 value for x and a y value equal to the second-to-last value in the y array. Thus, I would query to see what the values of x and y are at subscripts [0:1] and at subscripts [n_elements(x)-2:n_elements(x)-2]] and/or I might try to: PLOT, x[1:n_elements(x)-2], y[1:n_elements(x)-2] just to see what happens if I get rid of the endpoints. James Jones
    You are not authorized to post a reply.