Python Forum
How do I open a file and the plot it?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How do I open a file and the plot it?
#2
Try importing 'loadtext' from numpy so you can input your text as data (float) into the histogram function. You won't need to define 'peaks' anymore.

Hopefully that will do it for you
Reply


Messages In This Thread
RE: How do I open a file and the plot it? - by thirteendec - Apr-17-2020, 11:00 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Trying to open depracated joblib file mckennamason 0 815 Sep-19-2024, 03:30 PM
Last Post: mckennamason
  Open/save file on Android frohr 0 1,214 Jan-24-2024, 06:28 PM
Last Post: frohr
  file open "file not found error" shanoger 8 9,810 Dec-14-2023, 08:03 AM
Last Post: shanoger
  How can i combine these two functions so i only open the file once? cubangt 4 2,080 Aug-14-2023, 05:04 PM
Last Post: snippsat
  I cannot able open a file in python ? ted 5 11,958 Feb-11-2023, 02:38 AM
Last Post: ted
  testing an open file Skaperen 7 2,835 Dec-20-2022, 02:19 AM
Last Post: Skaperen
  Graphic line plot with matplotlib, text file in pytho khadija 2 2,621 Aug-15-2022, 12:00 PM
Last Post: khadija
  I get an FileNotFouerror while try to open(file,"rt"). My goal is to replace str decoded 1 2,132 May-06-2022, 01:44 PM
Last Post: Larz60+
  Dynamic File Name to a shared folder with open command in python sjcsvatt 9 10,433 Jan-07-2022, 04:55 PM
Last Post: bowlofred
  Sample labels from excel file in order to put them on x-axis and y-axis of a plot hobbyist 11 7,113 Sep-14-2021, 08:29 AM
Last Post: hobbyist

Forum Jump:

User Panel Messages

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