On Apr 14, 9:16 am, moxam...@[EMAIL PROTECTED]
wrote:
> Dear All,
>
> I have the following problem:
>
> I have an array lets say A = [3,4,6,8,3,2,5,7,10,5,4]. As you can see,
> in this array we have two peaks (8 and 10) and one gap (2). I want to
> plot this array and draw a line on the gap element (which is in 2)
> vertical on the x axes and parallel to the y axes. In other words, I
> want to segment the the curve produced by plotting the array by
> drawing a line on the gap element.
>
> Any help will be appreciated.
>
> Thank you very much in advance,
>
> Dabboor
Is this what you want:
idx = (where(A eq min(A)))[0]
plot, A
plots, [idx,idx], !y.crange


|