Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please help me to fix my graph to see the other line graph of the graph import numpy as np import matplotlib.pyplot as plt temperature

please help me to fix my graph to see the other line graph of the graph
import numpy as np
import matplotlib.pyplot as plt
temperature_range = np.arange(14,26,1)
def Low (x):
return np.maximum(0, np.minimum((14- x)/4,1))
def Medium (x):
return np.maximum(0, np.minimum(np.minimum((x -18)/2,(18- x)/2),1))
def High (x):
return np.maximum(0, np.minimum(np.minimum((x -22)/2,(22- x)/2),1))
def Very_high(x):
return np.maximum(0, np.minimum(np.minimum((x -26)/2,(26- x)/2),1))
plt.figure(figsize=(10,4))
plt.plot(temperature_range, Low(temperature_range), label="Low")
plt.plot(temperature_range, Medium(temperature_range), label="Medium")
plt.plot(temperature_range, High(temperature_range), label="High")
plt.plot(temperature_range, Very_high(temperature_range), label="Very high")
plt.title("Fan speed ")
plt.xlabel("")
plt.ylabel("Degree of Membership")
plt.legend()
plt.show()
Fan speed
image text in transcribed

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

SQL For Data Science Data Cleaning Wrangling And Analytics With Relational Databases

Authors: Antonio Badia

1st Edition

3030575918, 978-3030575915

More Books

Students also viewed these Databases questions

Question

5. Prepare for the role of interviewee

Answered: 1 week ago

Question

6. Secure job interviews and manage them with confidence

Answered: 1 week ago