Loading [MathJax]/extensions/mml2jax.js
Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Physics LibreTexts

Search

  • Filter Results
  • Location
  • Classification
    • Article type
    • Author
    • Embed Hypothes.is?
    • Embebbed CalcPlot3D?
    • Cover Page
    • License
    • Show TOC
    • Transcluded
    • OER program or Publisher
    • Student Analytics
    • Autonumber Section Headings
    • License Version
    • Print CSS
      • Screen CSS
      • PrintOptions
    • Include attachments
    Searching in
    About 1 results
    • https://phys.libretexts.org/Courses/Berea_College/Introductory_Physics%3A_Berea_College/28%3A_The_Python_Programming_Language/28.03%3A_Plotting
      For example, we can easily plot the data in the two arrays from the previous section in order to plot the position versus time for the object: #Now, evaluate the function for all of those values of x....For example, we can easily plot the data in the two arrays from the previous section in order to plot the position versus time for the object: #Now, evaluate the function for all of those values of x. #We use the numpy version of cos, since it allows us to take the cos #of all values in the array. #fvals will be an array with the 1000 corresponding cosines of the xvals squared fvals = np.cos(xvals**2)

    Support Center

    How can we help?