Using Processing to display data graphs


Results 1 to 7 of 7

Threaded View

  1. #2
    Join Date
    May 2013
    Location
    australia
    Posts
    2,680


    Did you find this post helpful? Yes | No

    Default Re: Using Processing to display data graphs

    interesting hobby , would like to see real data

    just for comparison I did this with python, python allows you to zoom in/out on any portion of the graph and save it a png,pdf or whatever too
    for just a dozen lines of code

    Code:
    import csv, sys
    import matplotlib.pyplot as plt
    filename = 'candaroad.csv'
    t=[]   #time
    a=[]   #altitude
    with open(filename, 'rb') as f:
        reader = csv.reader(f)
        for row in reader:
                #print row
                a.append(float(row[4]))
                t.append(float(row[1]))
    plt.plot(t,a,'b-',label='altitude')
    plt.show()
    #print a

    graph looks a bit different to yours , I may have misinterpreted the data

    O:,359.54,-16.05,5.61,577.59
    O:,359.72,-15.96,5.55,577.02
    O:,359.82,-15.97,5.59,576.49
    O:,0.00,-15.96,5.55,576.06
    O:,0.14,-16.01,5.50,575.67
    O:,0.25,-15.96,5.53,575.77
    O:,0.40,-15.97,5.48,575.86
    I assumed the 577.xx is height and 359.xx is time but the time figure seems to rollover at 360 so I must have guessed wrong
    Attached Images Attached Images  
    Attached Images Attached Images
    Warning I'm not a teacher

Similar Threads

  1. Custom data pin for display.
    By Ziko87 in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 19th July 2011, 14:12
  2. how to display data receiving from xbee to LCD
    By NURULHAIZA in forum mel PIC BASIC
    Replies: 2
    Last Post: - 19th November 2010, 21:24
  3. display received data
    By NURULHAIZA in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 12th May 2010, 06:03
  4. Better processing of a serial bitstream
    By breesy in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 8th June 2007, 00:13
  5. audio processing
    By mischl in forum mel PIC BASIC Pro
    Replies: 17
    Last Post: - 7th August 2006, 17:36

Members who have read this thread : 0

You do not have permission to view the list of names.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts