[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Projection on the axis X.

From: Przemek Klosowski
Subject: Re: Projection on the axis X.
Date: Wed, 22 May 2019 10:17:59 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1

On 5/22/19 7:53 AM, FH_2137 wrote:
It is possible to projection points from plot to X axis? Probably this is
popular topic, but i do not found nothing in internet.

Please explain what exactly do you want to accomplish. From your picture, it looks like you have a plot of several data points, linked by straight lines, and a horizontal construction line (presumably placed by mouse movements) intersecting those plot lines. It looks like you want to draw vertical lines from those intersections down to the X axis.

I don't know of an existing functionality in Octave graphics system that does that, but you can of course synthesize it from existing primitives:

- find Y position of the mouse:  [x,y,button]=ginput(1)

- draw a horizontal line at that Y position: line([0 1],[Y Y])

- find intersections with an interpolation of your data points:

- draw vertical lines from the intersection points: line([X X],[0 1])

reply via email to

[Prev in Thread] Current Thread [Next in Thread]