discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss-gnuradio] plotting with python


From: ambily joseph
Subject: [Discuss-gnuradio] plotting with python
Date: Mon, 4 Jun 2012 09:44:24 +0100

Sir


I wanted to take float datas from a file sink and plot those values .
I am using the below python script for this.
I need to change my x -axis and y-axis limits.
What command should i add to this script for this task?

#!/usr/bin/env python
from array import array
import matplotlib.pyplot as plt

input_file = open('mySID_output','r')
float_array = array('d')

float_array.fromstring(input_file.read())

#print float_array

plt.plot(float_array)
plt.show()

Thank you

reply via email to

[Prev in Thread] Current Thread [Next in Thread]