[5]: import matplotlib.pyplot as plt #PythonGeeks dataset #Maths Marks students_id = [1,2,3,4,5,6,7,8,9,10] x1=students_id students_marks |y1=students_marks = #science marks students_id= [1,2,3,4,5,6,7,8,9,10] |x2=students_id students_marks |y2=students_marks plt.show() [95,98,83,75,67,58,67,78,53,32] = [58,90,67,78,53,32,95,98,83,67,] plt.scatter (x1, y1, c ="yellow", linewidths 1, marker ="*", edgecolo plt.scatter(x2, y2, c = "aqua", linewidths = 1, marker ="^", edgecolor plt.title("PythonGeeks") plt.xlabel("Students ID") plt.ylabel("Students Marks") =

New Perspectives on HTML5, CSS3, and JavaScript
6th Edition
ISBN:9781305503922
Author:Patrick M. Carey
Publisher:Patrick M. Carey
Chapter14: Exploring Object-based Programming: Designing An Online Poker
Section14.1: Visual Overview: Custom Objects, Properties, And Methods
Problem 7QC
icon
Related questions
Question
100%

What is the error on this program, posted on https://pythongeeks.org/python-scatter-plot/?

Hints: Was x1 defined?

[5]: import matplotlib.pyplot as plt
#PythonGeeks dataset
#Maths Marks
students_id = [1,2,3,4,5,6,7,8,9,10]
x1=students_id
students_marks
|y1=students_marks
#science marks
students_id= [1,2,3,4,5,6,7,8,9,10]
|x2=students_id
students_marks
|y2=students_marks
plt.show()
Students Marks
100
plt.scatter (x1, y1, c ="yellow", linewidths 1, marker ="*", edgecolo
plt.scatter(x2, y2, c = "aqua", linewidths = 1, marker ="^", edgecolor
plt.title("PythonGeeks")
plt.xlabel("Students ID")
plt.ylabel("Students Marks")
90
80-
70
60
50-
40
=
30
A
=
[95,98,83,75,67,58,67,78,53,32]
A
2
[58,90,67,78,53,32,95,98,83,67,]
4
4
PythonGeeks
A
6
Students ID
=
☆
8
10
Transcribed Image Text:[5]: import matplotlib.pyplot as plt #PythonGeeks dataset #Maths Marks students_id = [1,2,3,4,5,6,7,8,9,10] x1=students_id students_marks |y1=students_marks #science marks students_id= [1,2,3,4,5,6,7,8,9,10] |x2=students_id students_marks |y2=students_marks plt.show() Students Marks 100 plt.scatter (x1, y1, c ="yellow", linewidths 1, marker ="*", edgecolo plt.scatter(x2, y2, c = "aqua", linewidths = 1, marker ="^", edgecolor plt.title("PythonGeeks") plt.xlabel("Students ID") plt.ylabel("Students Marks") 90 80- 70 60 50- 40 = 30 A = [95,98,83,75,67,58,67,78,53,32] A 2 [58,90,67,78,53,32,95,98,83,67,] 4 4 PythonGeeks A 6 Students ID = ☆ 8 10
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
File Input and Output Operations
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
New Perspectives on HTML5, CSS3, and JavaScript
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:
9781305503922
Author:
Patrick M. Carey
Publisher:
Cengage Learning