How to Draw Lines Passing Through the Origin With Slopes
8.6.2 Creating Drawing Objects
Create-Draw-Objects
Add drawing objects to your Origin windows with buttons on the Tools toolbar.
Additionally, you can "asterisk brackets" -- bars indicating statistical groupings -- using the Add asterisk bracket button on the Add Object to Graph toolbar.
Contents
- 1 Drawing straight lines or arrows
- 1.1 To add a straight line or arrow to the graph window:
- 1.2 To edit the line:
- 2 Drawing curved arrows
- 2.1 To add a curved arrow to the graph:
- 2.2 To edit the curved arrow:
- 3 Drawing Polylines (segmented lines)
- 3.1 To draw a polyline:
- 3.2 To edit the polyline:
- 4 Drawing smooth curve
- 4.1 To draw a smooth curve:
- 4.2 To draw a closed curve:
- 4.3 To edit the curve:
- 5 Drawing freehand lines
- 5.1 To draw a freehand line:
- 5.2 To edit the freehand line:
- 6 Drawing two-dimensional objects
- 6.1 To add a square, rectangle, circle, oval, polygon or region
- 6.2 To edit the object:
- 7 Editing Objects
- 8 Copying and pasting objects
- 8.1 To copy the object:
- 8.2 To paste the object:
- 9 Copying Line Objects and Pasting Data to a Worksheet
- 10 Adding Asterisk Brackets Indicating Groupings on Statistical Charts
Drawing straight lines or arrows
To add a straight line or arrow to the graph window:
- Click on the Line tool or Arrow tool . Click-and-drag at the desired location in the graph window. Release the mouse button and the line or arrow is displayed.
- To draw a vertical or horizontal line or arrow, press the SHIFT key as you drag with the Line tool or Arrow tool . You will see that the line snaps to the horizontal or vertical. When it is oriented properly, release the mouse button.
Note: If you want to draw a vertical or horizontal line within the layer frame, select Insert: Straight Line: Open Dialog menu to open the Straight Line: addline dialog. In this dialog, you can add a vertical or horizontal line to current graph layer by specifying the position value, line format, label format, line selectivity and mobility.
To edit the line:
- To adjust the begin or end point of the line, single click once on the point, then it will show the solid symbols for the bigin and end points of the line. When the cursor on the point, you can change the begin or end points of the line by draging the points.
- To move or resize it, twice click once till diamond handles show. Drag to move it or drag the handles to resize it. Press Ctrl key down while dragging the handles will keep aspect ratio of the curve.
- Press Shift while drawing or moving a point, to force the line to snap to the vertical or horizontal.
- To rotate it, single click 3 till circle handles show around it. Drag the circle handle to rotate it. Drag the cursor in the middle of the shape to change center of rotation.
- To skew it, single click 4 times till triangle handles show around the shape. Drag the triangle handle to skew it.
- Double click curve to open Properties dialog to customize line, arrow head(s), dimension, or code when clicking/moving/resizing the curve, etc.
Drawing curved arrows
To add a curved arrow to the graph:
- Click the Curved Arrow tool .
- Click in four places along the intended arc to locate the curved line's anchor points -- place the first click at the beginning of the curve, the second two clicks along the curve, and the final click at the point where you want the arrow head. After the fourth click, Origin displays the curved arrow. The points are connected with a Bezier curve.
To edit the curved arrow:
- To move or resize it, single click once till diamond handles show. Drag to move it or drag the handles to resize it. Press Ctrl key down while dragging the handles will keep aspect ratio of the curve.
- To rotate it, single click twice till circle handles show around it. Drag the circle handle to rotate it. Drag the cursor in the middle of the shape to change center of rotation.
- To skew it, single click 3 times till triangle handles show around the shape. Drag the triangle handle to skew it.
- You can also single click 4 times to adjust the trace of the curve.
- Double click curve to open Properties dialog to customize line, arrow head(s), dimension, or code when clicking/moving/resizing it, etc.
Drawing Polylines (segmented lines)
To draw a polyline:
- Click on the Polyline tool (Tools toolbar), then click once at each intended anchor point.
- Terminate the polyline by double-clicking with the mouse or hitting ESC or pressing Enter key.
To edit the polyline:
- To adjust the turning point of the polyline, single click once on the polyline, then it will show the solid symbol for the turning points. Move the cursor on the point, then you can change it's positon by draging the point.
- To move or resize it, single click twice till diamond handles show. Drag to move it or drag the handles to resize it. Press Ctrl key down while dragging the handles will keep aspect ratio of the line.
- To rotate it, single click 3 till circle handles show around it. Drag the circle handle to rotate it. Drag the cursor in the middle of the shape to change center of rotation.
- To skew it, single click 4 times till triangle handles show around the shape. Drag the triangle handle to skew it.
- Double click polylin to open Properties dialog to customize line, arrow head(s), dimension, fill or code when clicking/moving/resizing it, etc.
Drawing smooth curve
To draw a smooth curve:
- Click on the Curve tool (on the Tools toolbar), then click once at each intended anchor point.
- Terminate the curve by double-clicking with the mouse or hitting ESC or pressing Enter key.
To draw a closed curve:
- Click on the Curve tool (on the Tools toolbar), then click once at each intended anchor point.
- Move the cursor around begin point, it will snap the point to begin. At this time single click, drawning will finish with a closed curve.
To edit the curve:
- To adjust the anchor point of the curve, single click once on the curve, then it will show the solid symbol for the points that used to draw this curve. Move the cursor on the point, then you can change it's positon by draging the point.
- To move or resize it, single click twice till diamond handles show. Drag to move it or drag the handles to resize it. Press Ctrl key down while dragging the handles will keep aspect ratio of the line.
- To rotate it, single click 3 till circle handles show around it. Drag the circle handle to rotate it. Drag the cursor in the middle of the shape to change center of rotation.
- To skew it, single click 4 times till triangle handles show around the shape. Drag the triangle handle to skew it.
- Double click polylin to open Properties dialog to customize line, arrow head(s), dimension, fill or code when clicking/moving/resizing it, etc.
Drawing freehand lines
To draw a freehand line:
- Click on the Freehand Draw tool .
- Click once and hold while dragging out your line.
- Release the mouse button to complete the operation.
To edit the freehand line:
- To move or resize it, single click once till diamond handles show. Drag to move it or drag the handles to resize it. Press Ctrl key down while dragging the handles will keep aspect ratio of the line.
- To rotate it, single click twice till circle handles show around it. Drag the circle handle to rotate it. Drag the cursor in the middle of the shape to change center of rotation.
- To skew it, single click 3 times till triangle handles show around the shape. Drag the triangle handle to skew it.
- You can also single click 4 times to adjust the trace of the line.
- Double click curve to open Properties dialog to customize line, arrow head(s), dimension, or code when clicking/moving/resizing it, etc.
Drawing two-dimensional objects
To add a square, rectangle, circle, oval, polygon or region
- Click the respective button on the Tools toolbar:
- For all objects but the polygon, click-and-drag at the desired location in the graph window. Release the mouse button to display the object.
- For polygons, single click to draw corners of the polygon. Double click at the last corner.
- To draw a perfect square or circle instead of rectangle/oval, press Ctrl key while dragging.
To edit the object:
- To move or resize the objects single click once till diamond handles show around the object. Drag to move it or drag the handles to resize it. Press Ctrl key down while dragging the handles will keep aspect ratio of the shape.
- To rotate the object, single click twice till circle handles show around the object. Drag the circle handle to rotate it. Drag the cursor in the middle of the shape to change center of rotation.
- To skew the object, single click 3 times till triangle handles show around the shape. Drag the triangle handle to skew it.
- For polygon and region, you can single click 4 times to get handles along the border to adjust the shape further.
- Double click the object to open Properties dialog to customize border, fill, position, or code when clicking/moving/resizing it, etc.
Editing Objects
A drawn object has four possible edit modes, produced by repeated, slow-clicks on the object.
- The order of modes may differ for some objects but the selection-handle shape will indicate which mode is active.
- If you disable an edit option (i.e. Disable group, Dimensions tab of Properties), the associated edit mode will not be available as you click sequentially through edit modes.
Mode | Description |
---|---|
| Point Edit
|
| Resizing
|
| Rotating
|
| Skewing
|
Copying and pasting objects
This is supported for a single object or multiple objects.
To copy the object:
- Click on the object or drag a box around the object with the Pointer tool (selection handles will appear).
- To select multiple objects, click 1st object, then press CTRL or SHIFT key down and continue the selection. Or you can drag a big box around all the objects you want to select.
- Press Ctrl+C, select Edit: Copy menu or right click the select object and choose Copy context menu.
To paste the object:
- On the destination page, click once where you want the object to be pasted, then...
- Press CTRL + V, select Edit: Paste menu or right-click and select Paste context menu.
|
Copying Line Objects and Pasting Data to a Worksheet
Any of the line objects - line, arrow, curved arrow, polyline or freehand -- can be used to generate an XY dataset:
- Select the line object in the graph, then right-click and choose Copy.
- Click on an empty worksheet cell, right-click and choose Paste.
A set of XY coordinates will be created in the worksheet.
Adding Asterisk Brackets Indicating Groupings on Statistical Charts
It is common, particularly in the life sciences, to create column or bar charts and use an "asterisk bracket" object to indicate significant differences. Brackets can be added to an Origin graph using the Add asterisk bracket button (Add Object to Graph toolbar).
- Click the Add asterisk bracket button to add the object to the active graph window.
- Select the object then reposition it by dragging with your mouse.
-
- Use the blue handles to size and position the bracket "legs".
- Use the red handles to add curvature to bracket "shoulders".
- Note that you can manually edit the text block in the center of the bracket to add asterisks (*), p-values, etc.
- Once selected, you can also use the bracket's Mini Toolbar buttons to orient the bracket, modify line thickness, etc.
-
The line cap shape (round, square, flat) is controlled by LabTalk system variable @LCG. For information on changing the value of a system variable, see this FAQ. |
How to Draw Lines Passing Through the Origin With Slopes
Source: https://www.originlab.com/doc/Origin-Help/Create-Draw-Objects
0 Response to "How to Draw Lines Passing Through the Origin With Slopes"
Post a Comment