Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You are given a set of six data ( x , y ) points as a list of tuples. Here is an example, [ (

You are given a set of six data (x, y) points as a list of tuples. Here is an example, [(20,80),(40,170),(60,10),(80,70),(100,90),(120,150)]. Note that each pair of value in the tuple is x, y coordinate pair of the data set. Write a Python turtle function to draw a scatter plot of given such data set. Please follow the instructions below:
Write a separate function to draw two axis; explain why it is good to have separate function for this as a code comment
Write a separate function for drawing the scatter plot. Make sure your function can handle any list of 6 coordinate pairs, not just above list
Give the user a choice of color for the plot
Add scaling and option to draw starting at any location (to use the entire pane)
Write a sperate function to mark points as a circle or "x" mark

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Issues In Database Management A Refernce For The Thinking Practitioner

Authors: Fabian Pascal

1st Edition

0201485559, 978-0201485554

More Books

Students also viewed these Databases questions