What Is Output Of Following Python C.ode?
import numpy as np
import matplotlib.pyplot as plt
data=[[5,25,45,20], [8,13,29,27], [9,29,27,39]]
x=np.arange(4)
plt.plot(x,data[0],color='b',label='range1')
plt.plot(x,data[1],color='g',label='range2')
plt.plot(x,data[2],color='r',label='range3')
plt.legend(loc='upper left')
plt.title("MultiRange Line Chart")
plt.xlabel('X')
plt.ylabel('Y')
plt.show()
Answers
Answered by
21
Answer:
After Running Above Python C.ode The Output
produced is Given in The Above Attachment.
Python Version is Python IDLE 3.8.6 shell
The Answer is an Original answer by Me.
after Interpreting C.odes .
May help future python aspirant. . .
Attachments:
Answered by
0
Answer:
import numpy as np
import matplotlib.pyplot as plt
data=[[5,25,45,20], [8,13,29,27], [9,29,27,39]]
x=np.arange(4)
plt.plot(x,data[0],color='b',label='range1')
plt.plot(x,data[1],color='g',label='range2')
plt.plot(x,data[2],color='r',label='range3')
plt.legend(loc='upper left')
plt.title("MultiRange Line Chart")
plt.xlabel('X')
plt.ylabel('Y')
plt.show()
Explanation:
Similar questions