Question: Python problem: Using the supplied coordinates.txt file , import the data into the program and plot it using pyplot You will need to read and

Python problem:

Using the supplied coordinates.txt file, import the data into the program and plot it using pyplot You will need to read and parse the file to grab useful data and remove the comments Each group of coordinates represents a separate shape that must be plotted separating from the rest. Make sure to use a main function.

Contents of coordinates.text file below:

### Read this file and plot the coordinates ### ### Be sure to keep them grouped together in their groups ### # X,Y # # Group 1 # 11,8 15,8 13,11 11,8

# Group 2 # 17,8 21,8 19,11 17,8

# Group 3 # 15,7 17,7 16,5 15,7

# Group 4 # 11,4 12,6 14,3 15,4 16,3 17,4 18,3 20,6 21,4 19,1 17,2 15,2 13,1 11,4

# Group 5 # 1,13 1,17 1,15 3,15 3,17 3,13

# Group 6 # 4,13 5,17 6,13

# Group 7 # 4,15 6,15

# Group 8 # 7,17 7,13 9,13

# Group 9 # 10,17 10,13 12,13

# Group 10 # 13,13 13,17 15,17 15,13 13,13

# Group 11 # 16,17 17,13 18,15 19,13 20,17

# Group 12 # 23,17 21,17 21,15 22,15 21,15 21,13 23,13

# Group 13 # 26,17 24,17 24,15 25,15 24,15 24,13 26,13

# Group 14 # 27,13 27,17 29,13 29,17

# Group 15 # 31,13 31,14

# Group 16 # 31,15 31,17

# Group 17 # 8,19 8,23 8,21 10,21 10,23 10,19

# Group 18 # 11,19 12,23 13,19

# Group 19 # 11,21 13,21

# Group 20 # 14,19 14,23 16,23 16,21 14,21

# Group 21 # 17,19 17,23 19,23 19,21 17,21

# Group 22 # 20,23 21,21 22,23 21,21 21,19

### END ###

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!