3. You will need to import the function random from the module numpy.random. Here we will make 4 sub-plots in a 2 × 2 arrangement. Use linspace (-1,1,201) appropriately, so we have 100 equally spaced intervals from -1 to 1. a) In the upper left, plot a histogram of 500 random numbers distributed between -1 an 1 using random. Note that if you have an array xr you can make a new array yr that has 1 added to each value in xr by simply executing yr = xr + 1. b) In the upper right quadrant, plot 2 functions on the same set of axes, y(t) = t² and y(t) = t³ — t 1 c) In the lower left, plot 100 random points with −1 < x < 1 and −1 < y < 1. Make sure you use dots to represent the points and that they are not joined by lines! d) For the lower right, plot the points (x(t), y(t)), where x(t) = tcos(10t) and y(t) t sin(10t). e) Place the title Data Visualization over the entire set of 4 sub-plots. =
3. You will need to import the function random from the module numpy.random. Here we will make 4 sub-plots in a 2 × 2 arrangement. Use linspace (-1,1,201) appropriately, so we have 100 equally spaced intervals from -1 to 1. a) In the upper left, plot a histogram of 500 random numbers distributed between -1 an 1 using random. Note that if you have an array xr you can make a new array yr that has 1 added to each value in xr by simply executing yr = xr + 1. b) In the upper right quadrant, plot 2 functions on the same set of axes, y(t) = t² and y(t) = t³ — t 1 c) In the lower left, plot 100 random points with −1 < x < 1 and −1 < y < 1. Make sure you use dots to represent the points and that they are not joined by lines! d) For the lower right, plot the points (x(t), y(t)), where x(t) = tcos(10t) and y(t) t sin(10t). e) Place the title Data Visualization over the entire set of 4 sub-plots. =
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
please write the python code to implement without error for this problem. I am stuck.

Transcribed Image Text:3. You will need to import the function random from the module numpy.random. Here we
will make 4 sub-plots in a 2 × 2 arrangement. Use linspace (-1,1,201) appropriately,
so we have 100 equally spaced intervals from -1 to 1.
a) In the upper left, plot a histogram of 500 random numbers distributed between -1
an 1 using random. Note that if you have an array xr you can make a new array yr that
has 1 added to each value in xr by simply executing yr
= xr + 1.
b) In the upper right quadrant, plot 2 functions on the same set of axes, y(t) = t² and
y(t) = t³ — t
1
c) In the lower left, plot 100 random points with −1 < x < 1 and −1 < y < 1. Make
sure you use dots to represent the points and that they are not joined by lines!
d) For the lower right, plot the points (x(t), y(t)), where x(t) = tcos(10t) and y(t)
t sin(10t).
e) Place the title Data Visualization over the entire set of 4 sub-plots.
=
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps with 1 images

Recommended textbooks for you

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON

Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education