Python Forum
Substituting Values in Plot
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Substituting Values in Plot
#3
import numpy as np
import matplotlib.pyplot as plt
plt.clf() 
u=5;
E=1000;
w = np.linspace(0, 100000,100000) 
f1= ((w*u)/(np.sqrt(1+(((w*u)/E)**2)))) 
plt.plot(w, f1)
axes = plt.gca()
axes.set_xscale('log')
axes.set_yscale('log')
axes.set_xlim([0, 10E4])            # x-axis bounds
axes.set_ylim([0, 10E4])              # y-axis bounds
plt.show()
This is how my graph should look like:
Image Graph should look
Reply


Messages In This Thread
Substituting Values in Plot - by Hotdog1 - Nov-11-2017, 07:41 AM
RE: Substituting Values in Plot - by sparkz_alot - Nov-11-2017, 01:37 PM
RE: Substituting Values in Plot - by Hotdog1 - Nov-11-2017, 08:07 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Matplotlib scatter plot in loop with None values ivan_sc 1 2,281 Nov-04-2021, 11:25 PM
Last Post: jefsummers
  Plot correct values Felipe 9 7,089 Feb-18-2017, 09:21 AM
Last Post: merlem

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020