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1 2.79 -1.0 2.83 -0.9 2.86 -0.8 2.89 -0.7 2.92 -0.6 2.94 -0.5 2.96 -0.4 2.97 -0.3 2.98 -0.2 2.99 -0.1 3.0 -0.0 3.0 question The first number and second number are x and y-coordinate of a point in Cartesian coordinate. Write a program to open and read the attached graph.csv file and plot the data. Use the csv module to read the graph.csv. The data are string and they need to convert to float.
pycharm graph
graph.csv file
0.0 3.0
0.1 3.0
0.2 2.99
0.3 2.98
0.4 2.97
0.5 2.96
0.6 2.94
0.7 2.92
0.8 2.89
0.9 2.86
1.0 2.83
1.1 2.79
1.2 2.75
1.3 2.7
1.4 2.65
1.5 2.6
1.6 2.54
1.7 2.47
1.8 2.4
1.9 2.32
2.0 2.24
2.1 2.14
2.2 2.04
2.3 1.93
2.4 1.8
2.5 1.66
2.6 1.5
2.7 1.31
2.8 1.08
2.9 0.77
3.0 0.0
3.0 -0.0
2.9 -0.77
2.8 -1.08
2.7 -1.31
2.6 -1.5
2.5 -1.66
2.4 -1.8
2.3 -1.93
2.2 -2.04
2.1 -2.14
2.0 -2.24
1.9 -2.32
1.8 -2.4
1.7 -2.47
1.6 -2.54
1.5 -2.6
1.4 -2.65
1.3 -2.7
1.2 -2.75
1.1 -2.79
1.0 -2.83
0.9 -2.86
0.8 -2.89
0.7 -2.92
0.6 -2.94
0.5 -2.96
0.4 -2.97
0.3 -2.98
0.2 -2.99
0.1 -3.0
0.0 -3.0
-0.0 -3.0
-0.1 -3.0
-0.2 -2.99
-0.3 -2.98
-0.4 -2.97
-0.5 -2.96
-0.6 -2.94
-0.7 -2.92
-0.8 -2.89
-0.9 -2.86
-1.0 -2.83
-1.1 -2.79
-1.2 -2.75
-1.3 -2.7
-1.4 -2.65
-1.5 -2.6
-1.6 -2.54
-1.7 -2.47
-1.8 -2.4
-1.9 -2.32
-2.0 -2.24
-2.1 -2.14
-2.2 -2.04
-2.3 -1.93
-2.4 -1.8
-2.5 -1.66
-2.6 -1.5
-2.7 -1.31
-2.8 -1.08
-2.9 -0.77
-3.0 -0.0
-3.0 0.0
-2.9 0.77
-2.8 1.08
-2.7 1.31
-2.6 1.5
-2.5 1.66
-2.4 1.8
-2.3 1.93
-2.2 2.04
-2.1 2.14
-2.0 2.24
-1.9 2.32
-1.8 2.4
-1.7 2.47
-1.6 2.54
-1.5 2.6
-1.4 2.65
-1.3 2.7
-1.2 2.75
-1.1 2.79
-1.0 2.83
-0.9 2.86
-0.8 2.89
-0.7 2.92
-0.6 2.94
-0.5 2.96
-0.4 2.97
-0.3 2.98
-0.2 2.99
-0.1 3.0
-0.0 3.0
question
The first number and second number are x and y-coordinate of a point in Cartesian coordinate. Write a program to open and read the attached graph.csv file and plot the data.
Use the csv module to read the graph.csv. The data are string and they need to convert to float.
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 2 images