Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PLEASE HELP ME COMPLETE THIS WHOLE PYTHON PROGRAMMING PROJECT Activity 1: Scatter Plot 1 In this acitivity you have to create a scatter plot with

PLEASE HELP ME COMPLETE THIS WHOLE PYTHON PROGRAMMING PROJECT

Activity 1: Scatter Plot 1

In this acitivity you have to create a scatter plot with 10 random numbers arrays at the x-axis and y-axis. Add different values to size and colour the markers manually by creating arrays.

Steps:

Create an array x of 10 random integers between 1-100 for the X-axis.

Create an array y of 10 random integers between 101-1000 for the Y-axis.

Create an array for 10 marker sizes sizes from 10 to 100 such that the difference between two consecutive numbers is 10.

Create an array of 10 different colours colors. For example:

["red","green","blue","yellow","pink","black","orange","purple","magenta","brown"]

Plot the scatter plot with all four parameters x, y, c, and s.

Display the graph.

[ ]

 
 
# Create a scatter plot where all markers will have different colors and are of different sizes. # Import the libraries # Create arrays for x-axis, y-axis, colors # Print all the arrays # Create the scatter plot 

After this activity, a scatter plot should be created with 10 markers of different colours and different sizes.

Activity 2: Scatter Plot 2

In this activity you have to create a scatter plot with 10 random numbers arrays at the x-axis and y-axis. And colour the marker with different shades from the rainbow palette using cmap='rainbow' by creating arrays.

Steps:

Create an array x of 10 random integers between 1-100 for the X-axis.

Create an array y of 10 random integers between 101-1000 for the Y-axis.

Create an array for 10 different shades of colour from 10 to 100 such that the difference between two consecutive numbers is 10.

Plot the scatter plot with parameters x, y, c, and cmap.

Display the colorbar.

Display the graph.

[ ]

 
 
# Create a scatter plot where all markers will have a different shade of colours from the rainbow palette # Create arrays for x-axis, y-axis, colors # Print all the arrays # Create the scatter plot 

After this activity, a scatter plot should be created with 10 markers of 10 different colours using cmap. The color will show which marker has which color

Activity 3: Scatter Plot 3

In this acitivity you have to create a scatter plot with 20 random numbers arrays at the x-axis and y-axis. Also, the 20 numbers will be divided into 4 labels 1, 2, 3, and 4 randomly. Add colour to the marker which will differentiate them according to the label. Add different shades from the dark palette using cmap='Dark2' by creating arrays.

Steps:

Create an array x of 20 random integers between 1-100 for the X-axis.

Create an array y of 20 random integers between 101-1000 for the Y-axis.

Create an array of 20 random integers for labels between range 1-4.

Plot the scatter plot with parameters x, y, c, and cmap.

Display the colorbar.

[ ]

# Create a scatter plot where all markers will have a different shade of colours from the rainbow palette

# Create arrays for x-axis, y-axis, labels

# Print all the arrays

# Create the scatter plot

After this activity, a scatter plot should be created with 10 markers of 4 different colours to reflect the labels using cmap where,

1. Label 1: Green marker

2. Label 2: Purple marker

3. Label 3: Yellow marker

4. Label 4: Black marker

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

Students also viewed these Databases questions