Python Forum
URGENT: How to plot data from text file. Trying to recreate plots from MATLAB
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
URGENT: How to plot data from text file. Trying to recreate plots from MATLAB
#3
(May-08-2021, 08:03 PM)perfringo Wrote: You should provide separator. By default it's whitespace:

>>> s = '0,0.001,0.002,0.003,0.004,0.005'
>>> s.split()
['0,0.001,0.002,0.003,0.004,0.005']                # no whitespace
>>> s.split(',')
['0', '0.001', '0.002', '0.003', '0.004', '0.005']
If I do that I get the plot but it's empty? no data is plotted Huh Huh Huh Huh
python
Reply


Messages In This Thread
RE: URGENT: How to plot data from text file. Trying to recreate plots from MATLAB - by JamieAl - May-08-2021, 08:44 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Fit straight line to pandas time series data with semilog plot schniefen 2 1,586 Mar-10-2023, 01:08 PM
Last Post: jefsummers
  Plot time series data schniefen 3 1,379 Mar-04-2023, 04:22 PM
Last Post: noisefloor
Exclamation Python Homework (Urgent help needed!!) chickenseizuresalad 6 4,413 Oct-11-2021, 01:59 AM
Last Post: Underscore
Exclamation urgent , Python homework alm 2 2,362 May-09-2021, 11:19 AM
Last Post: Yoriz
  urgent I got a syntax errors alm 2 5,955 Feb-28-2021, 02:54 PM
Last Post: alm
Heart Urgent homework help needed Medou 4 2,796 Nov-24-2020, 09:28 AM
Last Post: buran
  Working with text data APK 4 2,561 Aug-22-2020, 04:48 AM
Last Post: buran
  [Urgent] build code GodMaster 2 1,848 Mar-23-2020, 12:25 AM
Last Post: jefsummers
  Bifid Genkey (Urgent) Laura123 2 2,100 Mar-09-2020, 08:09 PM
Last Post: micseydel
  Read text file, process data and print specific output Happythankyoumoreplease 3 2,968 Feb-20-2020, 12:19 PM
Last Post: jefsummers

Forum Jump:

User Panel Messages

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