You are on page 1of 9

Page 9 - 1

GRAPHING

Christy
10:15
07/08/16

ENGINEERING with the SPREADSHEET


Copyright 2006 American Society of Civil Engineers
A

323284548.xls
E

GRAPHING RECTANGLES
Generally, the XY Scatter graph works best for most purposes.
Graphing can be used for analysis and error trapping. You'll
find graphing throughout this manual.

in
in
in
unitless

width of inside rectangle


length of large rectangle in the x direction
height of the large rectangle in the y direction
adjust for accuracy in convergence

20

Feet

6
24
24
3

Shooting Method
b
4.2426
4.2426
4.1890
4.1945
4.1940
4.1940
Horiz leg
4.1940
Vert leg
4.2907
Graphing Ranges
x
a
0
0
24
24
0
4.1940
0.0000
19.8060
24.0000
4.1940
24

30

25

w diagonal
Horiz_1
Vert_1
adjust

8
9

15

10
difference
0.000
23.6464
-0.018
5
7
23.6509
0.002
23.6505
0.000
0
10
23.6505
0.000
0
5
10
15
20
25
30
23.6505
0.000
Feet
23.6505
0.000
Figure 9-1 A rectangle within a rectangle.
vert leg of triangle
row 30
Highlight your graphing ranges and click on the graphing icon in the toolbar.
Select XY (Scatter) and, in this case, select
labels
the icon with straight lines only.
Fractions Table
0"
0.06 1/16"
0.13 1/8"
0.19 3/16"
4'-2 5/16"
0.25 1/4"
4'-3 7/16"
0.31 5/16" row 40
19'-9 5/8"
0.38 3/8"
19'-8 1/2"
0.44 7/16"
0.5 1/2"
0.56 9/16"
values to
0.63 5/8"
maintain an
0.69 11/16"
aspect ratio
0.75 3/4"
0.81 13/16"
0.88 7/8"
0.94 15/16"
1 1"

vertical
in
in
in
in
in
in
in
in

b
0
24
24
0
0
0.0000
4.2907
24.0000
19.7093
0.0000
24

Figure 9-2 Graph ranges.

You can click on Next > or Finish. If you click on


Next >, be sure to make sure that your data is in
columns if that is how your data is arranged.
Figure 9-3 Selecting XY (Scatter) from the Chart Wizard window.
row 60

Page 9 - 2

GRAPHING

Christy
10:15
07/08/16

ENGINEERING with the SPREADSHEET


Copyright 2006 American Society of Civil Engineers
B

323284548.xls
E

Graphing Rectangles -- Continued


w diagonal
6 in
Horiz_1
24 in
Vert_1
24 in
adjust
3 unitless

width of inside rectangle


length of large rectangle in the x direction
height of the large rectangle in the y direction
adjust for accuracy in convergence

Shooting Method
b

vert
4.2426
4.2426
4.1890
4.1945
4.1940
4.1940
4.1940
4.2907

Horiz leg
Vert leg
x

a
0
0
24
24
0
2.5260
0.0000
21.4740
24.0000
2.5260

0
24
24
0
0

24

24

in
in
in
in
in
in
in
in

difference
0.000
23.6464
-0.018
23.6509
0.002
23.6505
0.000
23.6505
0.000
23.6505
0.000
23.6505
0.000
vert leg of triangle

labels

30

row 70

25

20

15

10

6
10
0

2'-6 5/16"
4'-3 7/16"
21'-5 11/16"
19'-8 1/2"

row 80

0.0000
4.2907
24.0000
19.7093
0.0000

10

15

20

25

"
1/16"
1/8"
3/16"
1/4"
5/16"
3/8"
7/16"
1/2"
9/16"
5/8"
11/16"
3/4"
13/16"
7/8"
15/16"
1"

30

Fe et

Figure 9-4 A rectangle within a rectangle.

values to
maintain an
aspect ratio

Fractions Table
0
0.0625
0.125
0.1875
0.25
0.3125
0.375
0.4375
0.5
0.5625
0.625
0.6875
0.75
0.8125
0.875
0.9375
1

Fee t

row 90

To attach labels to the


rectangle, click on the
shape and then select
Format Data Series
row 100

Figure 9-5 The graph formatting menu.


row 110

Page 9 - 3

GRAPHING

Christy
10:15
07/08/16

ENGINEERING with the SPREADSHEET


Copyright 2006 American Society of Civil Engineers
A

323284548.xls

Graphing Rectangles -- Continued


Select Data Labels and click on
Show label

This yields numerical labels that are attached to the


points they reference.

row 120

row 130

Figure 9-6 Formatting the graph.

row 140
To alter these labels to the foot and inch labels,
click on the label to highlight it.
Figure 9-7 Setting up graph data labels.

Enter an equals sign "="


in the edit bar. Reference
the appropriate cell to get
this:

row 150
Figure 9-8 Creating the data label.
This yields a label that
will follow the point it
references
Figure 9-9 The finished data label.
Note: I did check this in AutoCAD to make
sure that my math is accurate.
row 160

Page 9 - 4

GRAPHING

Christy
10:15
07/08/16

ENGINEERING with the SPREADSHEET


Copyright 2006 American Society of Civil Engineers
A

323284548.xls
E

3D ARRAY
This is a method of presenting information of a three dimensional
data. In this example, Z represents individual planes. In a following
example, a 3-dimensional spiral is represented where Z represents
the length of the spiral.
We use an apect ratio to allow adjustment for convenient viewing.
In this case, an aspect ratio of 0, 0 allows us to superimpose
the three curves.

aspect_x
aspect_y

0 unitless
0 unitless

inactive input for demonstration


inactive input for demonstration

Figure 9-10 Superimposed data curves.

In this case, an aspect ration of 0.5, 0.5 is used to display the


ability to show the three curves on three different planes.

aspect_x
aspect_y

0.5 unitless
0.5 unitless

this input is active


this input is active

The grid lines are part of the graphing math. They are used to
help relate the three curves to each other.

2.50

2.00

1.50
y_1

1.00

y_2
y_3

0.50

0.00
0.0000

0.5000

1.0000

1.5000

2.0000

2.5000

3.0000

-0.50

-1.00

Figure 9-11 Data curves in an array.


row 210

Page 9 - 5

GRAPHING

Christy
10:15
07/08/16

ENGINEERING with the SPREADSHEET


Copyright 2006 American Society of Civil Engineers
A

323284548.xls

3D ARRAY -- Continued
X 1 is an arbitrary
Z is a hard number
array of numbers
that defines a plane
=SIN(X_1*2*PI())
to plot the
=SIN(X_1*PI())
=Y_1+Z_1*aspect_y
curves against
=X_1+ Z_1*$aspect_x
X_1
0
0.0278
0.0556
0.0833
0.1111
0.1389
0.1667
0.1944
0.2222
0.2500
0.2778
0.3056
0.3333
0.3611
0.3889
0.4167
0.4444
0.4722
0.5000
0.5278
0.5556
0.5833
0.6111
0.6389
0.6667
0.6944
0.7222
0.7500
0.7778
0.8056
0.8333
0.8611
0.8889
0.9167
0.9444
0.9722
1.0000
max x grid
max y grid

Y_1

Z_1
0.0000
0.0872
0.1736
0.2588
0.3420
0.4226
0.5000
0.5736
0.6428
0.7071
0.7660
0.8192
0.8660
0.9063
0.9397
0.9659
0.9848
0.9962
1.0000
0.9962
0.9848
0.9659
0.9397
0.9063
0.8660
0.8192
0.7660
0.7071
0.6428
0.5736
0.5000
0.4226
0.3420
0.2588
0.1736
0.0872
0.0000
1.0000
1.0000

x_1
0.5
0.5
0.5
0.5
0.5
0.5
0.5
0.5
0.5
0.5
0.5
0.5
0.5
0.5
0.5
0.5
0.5
0.5
0.5
0.5
0.5
0.5
0.5
0.5
0.5
0.5
0.5
0.5
0.5
0.5
0.5
0.5
0.5
0.5
0.5
0.5
0.5

y_1

Y_2

=Y_2+Z_2*aspect_y
=X_2+ Z_2*$aspect_x

Z_2
0.0000
0.1736
0.3420
0.5000
0.6428
0.7660
0.8660
0.9397
0.9848
1.0000
0.9848
0.9397
0.8660
0.7660
0.6428
0.5000
0.3420
0.1736
0.0000
-0.1736
-0.3420
-0.5000
-0.6428
-0.7660
-0.8660
-0.9397
-0.9848
-1.0000
-0.9848
-0.9397
-0.8660
-0.7660
-0.6428
-0.5000
-0.3420
-0.1736
0.0000

1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1

x_2
0.5000
0.5278
0.5556
0.5833
0.6111
0.6389
0.6667
0.6944
0.7222
0.7500
0.7778
0.8056
0.8333
0.8611
0.8889
0.9167
0.9444
0.9722
1.0000
1.0278
1.0556
1.0833
1.1111
1.1389
1.1667
1.1944
1.2222
1.2500
1.2778
1.3056
1.3333
1.3611
1.3889
1.4167
1.4444
1.4722
1.5000

y_2
0.500
0.674
0.842
1.000
1.143
1.266
1.366
1.440
1.485
1.500
1.485
1.440
1.366
1.266
1.143
1.000
0.842
0.674
0.500
0.326
0.158
0.000
-0.143
-0.266
-0.366
-0.440
-0.485
-0.500
-0.485
-0.440
-0.366
-0.266
-0.143
0.000
0.158
0.326
0.500

Y_3 Z_3 x_3 y_3


0.00
2 1.00 1.00
0.26
2 1.03 1.26
0.50
2 1.06 1.50 row 220
0.71
2 1.08 1.71
0.87
2 1.11 1.87
0.97
2 1.14 1.97
1.00
2 1.17 2.00
0.97
2 1.19 1.97
0.87
2 1.22 1.87
0.71
2 1.25 1.71
0.50
2 1.28 1.50
0.26
2 1.31 1.26
0.00
2 1.33 1.00 row 230
-0.26
2 1.36 0.74
-0.50
2 1.39 0.50
-0.71
2 1.42 0.29
-0.87
2 1.44 0.13
-0.97
2 1.47 0.03
-1.00
2 1.50 0.00
-0.97
2 1.53 0.03
-0.87
2 1.56 0.13
-0.71
2 1.58 0.29
-0.50
2 1.61 0.50 row 240
-0.26
2 1.64 0.74
0.00
2 1.67 1.00
0.26
2 1.69 1.26
0.50
2 1.72 1.50
0.71
2 1.75 1.71
0.87
2 1.78 1.87
0.97
2 1.81 1.97
1.00
2 1.83 2.00
0.97
2 1.86 1.97
0.87
2 1.89 1.87 row 250
0.71
2 1.92 1.71
0.50
2 1.94 1.50
0.26
2 1.97 1.26
0.00
2 2.00 1.00

0.2500
0.2778
0.3056
0.3333
0.3611
0.3889
0.4167
0.4444
0.4722
0.5000
0.5278
0.5556
0.5833
0.6111
0.6389
0.6667
0.6944
0.7222
0.7500
0.7778
0.8056
0.8333
0.8611
0.8889
0.9167
0.9444
0.9722
1.0000
1.0278
1.0556
1.0833
1.1111
1.1389
1.1667
1.1944
1.2222
1.2500

0.2500
0.3372
0.4236
0.5088
0.5920
0.6726
0.7500
0.8236
0.8928
0.9571
1.0160
1.0692
1.1160
1.1563
1.1897
1.2159
1.2348
1.2462
1.2500
1.2462
1.2348
1.2159
1.1897
1.1563
1.1160
1.0692
1.0160
0.9571
0.8928
0.8236
0.7500
0.6726
0.5920
0.5088
0.4236
0.3372
0.2500

0
0.2500

0
0.2500

0
0
0.5000 0.5000

0
0
1.00 1.00

0.5000
1.5000

0
1.0000

1
0
2.0000 1.0000

1.5
0
2.50 1.00 row 260

Page 9 - 6

GRAPHING

Christy
10:15
07/08/16

ENGINEERING with the SPREADSHEET


Copyright 2006 American Society of Civil Engineers
A

323284548.xls

3D SPIRAL
This example graphs three bolt threads in 3D.
aspect_x
aspect_y

2.5000

5 unitless
5 unitless

2.0000

1.5000

D_threads
Hard
Number
series

0.9729 in
1.0000
=(COS(Number/6*PI()))
Number series
=(SIN(Number/6*PI()))
$D_threads * Sine
0.5000
$D_threads * Cosine
=X + Z*$a=Z + Z*$aspect_z
Sine

0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36

0.0000
0.5000
0.8660
1.0000
0.8660
0.5000
0.0000
-0.5000
-0.8660
-1.0000
-0.8660
-0.5000
0.0000
0.5000
0.8660
1.0000
0.8660
0.5000
0.0000
-0.5000
-0.8660
-1.0000
-0.8660
-0.5000
0.0000
0.5000
0.8660
1.0000
0.8660
0.5000
0.0000
-0.5000
-0.8660
-1.0000
-0.8660
-0.5000
0.0000

Cosine
X
1.0000
0.8660
0.5000
0.0000
-0.5000
-0.8660
-1.0000
-0.8660
-0.5000
0.0000
0.5000
0.8660
1.0000
0.8660
0.5000
0.0000
-0.5000
-0.8660
-1.0000
-0.8660
-0.5000
0.0000
0.5000
0.8660
1.0000
0.8660
0.5000
0.0000
-0.5000
-0.8660
-1.0000
-0.8660
-0.5000
0.0000
0.5000
0.8660
1.0000

Y
0.9729
0.8426
0.4865
0.0000
-0.4865
-0.8426
-0.9729
-0.8426
-0.4865
0.0000
0.4865
0.8426
0.9729
0.8426
0.4865
0.0000
-0.4865
-0.8426
-0.9729
-0.8426
-0.4865
0.0000
0.4865
0.8426
0.9729
0.8426
0.4865
0.0000
-0.4865
-0.8426
-0.9729
-0.8426
-0.4865
0.0000
0.4865
0.8426
0.9729

Z
0.0000
0.4865
0.8426
0.9729
0.8426
0.4865
0.0000
-0.4865
-0.8426
-0.9729
-0.8426
-0.4865
0.0000
0.4865
0.8426
0.9729
0.8426
0.4865
0.0000
-0.4865
-0.8426
-0.9729
-0.8426
-0.4865
0.0000
0.4865
0.8426
0.9729
0.8426
0.4865
0.0000
-0.4865
-0.8426
-0.9729
-0.8426
-0.4865
0.0000

x
0.0000
0.0069
0.0139
0.0208
0.0278
0.0347
0.0417
0.0486
0.0556
0.0625
0.0694
0.0764
0.0833
0.0903
0.0972
0.1042
0.1111
0.1181
0.1250
0.1319
0.1389
0.1458
0.1528
0.1597
0.1667
0.1736
0.1806
0.1875
0.1944
0.2014
0.2083
0.2153
0.2222
0.2292
0.2361
0.2431
0.2500

y
0.9729
0.8773
0.5559
0.1042
-0.3476
-0.6690
-0.7646
-0.5995
-0.2087
0.3125
0.8337
1.2245
1.3896
1.2940
0.9726
0.5208
0.0691
-0.2523
-0.3479
-0.1829
0.2080
0.7292
1.2504
1.6412
1.8063
1.7106
1.3892
0.9375
0.4858
0.1644
0.0687
0.2338
0.6246
1.1458
1.6670
2.0579
2.2229

0.0000
0.5212
0.9120
1.0771
0.9815
0.6601
0.2083
-0.2434
-0.5648
-0.6604
-0.4954
-0.1045
0.4167
0.9379
1.3287
1.4938
1.3981
1.0767
0.6250
0.1733
-0.1481
-0.2438
-0.0787
0.3121
0.8333
1.3545
1.7454
1.9104
1.8148
1.4934
1.0417
0.5899
0.2685
0.1729
0.3380
0.7288
1.2500

0.0000
-1.0000

-0.5000

0.0000

0.5000

1.0000

1.5000

2.0000

2.5000

-0.5000

-1.0000

Figure 9-12 A 3D spiral.

row 280

row 290

row 300

row 310

Page 9 - 7

GRAPHING

Christy
10:15
07/08/16

ENGINEERING with the SPREADSHEET


Copyright 2006 American Society of Civil Engineers
A

323284548.xls

3D BOX -- SIMPLE PROJECTION


Vpoint
45 degrees
0.785 rad
x
0.70711
y
0.70711

This is just one method of showing 3D data in a 2D graph.


The image of a box is fairly easy to manipulate.
Notice that the X, Y, and Z axis are displayed in a different
color. Gridlines could be shown in a third color with lines
formatted to be much thinner than the box outline.

LX

10

LY

10

The box can be replaced with another figure or data points.

LZ

10 depth

Separate data groups are separated by a blank row.


row 320

x
x axis

20

-0.5
11

0
0

y axis

0
0

-0.5
11

z axis

0
7.07106781

0
7.0710678119

15
10
5
0
-0.5 1.5 3.5 5.5 7.5 9.5 11.5 13.5 15.5 17.5 19.5

0
10
10
0
0

0
0
10
10
0

7.07106781
17.0710678
17.0710678
7.07106781
7.07106781

7.07106781
7.07106781
17.0710678
17.0710678
7.07106781

row 330

-5

Figure 9-13 Set the aspect ratio for this 3D box in Lx, Ly, and Lz above.

row 340

0
0
0 7.07106781
10
0
17.0710678 7.07106781
10
10
17.0710678 17.0710678

row 350

0
10
7.07106781 17.0710678

row 360

Page 9 - 8

GRAPHING

Christy
10:15
07/08/16

ENGINEERING with the SPREADSHEET


Copyright 2006 American Society of Civil Engineers
A

323284548.xls

3D BOX -- ORTHOGRAPHIC PROJECTION


This is another method of showing 3D data in a 2D graph. The inputs are the same as AutoCAD inputs and
the results are similar to AutoCAD views. The Z-axis is always vertical.
Notice that in the Excel the X, Y, and Z axis are displayed in a different color. Gridlines could
be shown in a third color with lines formatted to be much thinner than the box outline.
Z

The image of a box is fairly easy to manipulate. The box can be replaced with another figure
or data plots. Separate data groups are separated by a blank row.

VIEW
ALONG +Z

row 370

VIEW
ALONG
+Y

VPoint
VPx
VPy
VPz

-0.2
-0.2
1

LX

10

LY

10

LZ

10
5

STANDAR
D VIEW OF
THE XY
PLANE

row 380

VIEW ALONG +X
Figure 9-14 The diagram of ACAD type
orthographic views.
Conditional formating to row 390
highlight logic choice

Figure 9-15 Graph of an orthographic box.


Logic Table
1, 1, 1

0, 1, 1

1, 0, 0

1, 1, 0

0, 1, 0

1, 0, 1

-1,-1,0

logic
VPx mult x
VPx mult y
VPy mult x
VPy mult y

0
-1
-1
1
-1

0
-1
1
-1
-1

0
1
-1
1
1

0
-1
1
1
1

0
-1
1
1
1

0
1
-1
1
1

0
1
1
-1
1

VPx mult x
VPx mult y
VPy mult x
VPy mult y

0
0
0
0

0
0
0
0

0
0
0
0

0
0
0
0

0
0
0
0

0
0
0
0

0
0
0
0

logic results
x
y
x
y

-1,-1,1 -1,0,- -1,0,- -1,-1,-1


1
0
0
0
1
1
1
1
1
-1
1
-1
-1
1
1
-1
1
1
-1
-1
1
1
-1
1

0
0
0
0

0
0
0
0

0
0
0
0

0
-1
1
-1
-1
0
0
0
0

1
1
-1
1
row 410

Page 9 - 9

GRAPHING

Christy
10:15
07/08/16

ENGINEERING with the SPREADSHEET


Copyright 2006 American Society of Civil Engineers
A

323284548.xls

3D BOX -- ORTHOGRAPHIC PROJECTION -- Continued


0, 0, 0
0, 0, -1
1, 0, 0
0
0
0
1
-1
0
0
0
0
0
0
-1
1
1
0
logic results
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0.276
0.272
0.272
0.283

VPx
VPy
VPz
X, Y, and Z axis
multiplier
max
max mult

calculations
x axis
y axis
z axis

1.1
10
11

Reference
Radians Degrees
0.524
30
0.785
45
1.047
60
1.571
90
3.142
180
row 420

y
0.70711
0.70711
0

output to graph
0.68041 x axis
0.70711
0.68041 y axis
-0.7071
0.27217 z axis
0

y
0.6804
0.6804
0.2722

row 430

y2

x axis

0
7.77819

0
7.48454

y axis

0
-7.77819

0
7.48454

z axis

0
0

0
2.99382

-0.8556

-0.8233

0.8556

-0.3293

Note that the graph makes use of two X-axis to conserve


space in the template (and printout).
x
y
along x
-2.35703 2.268
14057
###
-4.71406 4.5361
7028
11.34
row 440

standoff

top plane

bottom plane

0
0
7.07108549 6.80413163
0
13.60826
-7.0710855 6.80413163
0
0
0
7.07108549
0
-7.0710855
0

2.72165275
9.52578438
16.329916
9.52578438
2.72165275

along y

2.35703
-4.71406

2.268
###

4.71406 4.5361
-2.35703 11.3402
1085 6.8041
1085 9.5258
0 13.608
0 16.33

row 450

-7.07109 6.8041
-7.07109 9.5258

row 460

You might also like