How to draw a straight line accurately?

To draw a straight line accurately, choose the "Science" on the sidebar, then select "Straight Line" to open the "Enter Line Equation" panel.

image.png

After entering the straight line equation, click "OK". This editor provides the following five forms of  straight-line equation for selection:

1) Point-Slope Plus: Input the slope and the coordinates of a point on the straight line. The system will automatically generate a straight line. The input slope must be a number, and the input coordinate format is "x-axis" + "," + "y-axis".

2) Slope-Intercept Type: Input the slope and the y-intercept (the y-coordinate where the line intersects the y-axis) respectively, and the system will automatically generate the straight line. The slope and intercept input must be numbers.

3) Intercept Type: Input the x-intercept (the x-coordinate where the line intersects the x-axis) and the y-intercept. The system will generate the line. Both intercepts must be numbers. 

4) Two-Point Form (default): Input the coordinates of two points passing through the desired straight line respectively, and the system will automatically generate a straight line. The input coordinate format is "x-axis" + "," + "y-axis".

5) General Formula: Input the general form of the straight line equation ax+by+c=0, where a, b, and c must be numbers, and the system can automatically generate a straight line.

Note: The straight line drawn by this method will exceed the canvas range.