Question: plotting 2 lists python i want to plot 2 lists against each other but theyre different... but kind of the same dimension theyre dimensions are

plotting 2 lists python

i want to plot 2 lists against each other but theyre different... but kind of the same dimension theyre dimensions are (1,30) and (30)...... same thing if you ask me

############

tlib.pyplot as plt import math import random import numpy def func(f,T): # f = frequency j=(2*f)*(1/((e**(50/T))-1)) #print(B) return(j) T = 2.73 e=3 num=30 fre=[numpy.linspace(1,10**10,num)] #print(str(frequency)+ " frequencies") list_1=[]

for i in range(num): w=func(fre[0][i], 2.73) list_1.append(w) plt.plot(fre,list_1) #i want to fix the dimensions of my list so this works

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!