GR_PLOT(1)
β¨ NAME β¨
ok so gr_plot β it displays a time series of samples from a file π that's it, that's the whole gig
π¦ DESCRIPTION π¦
bestie. have you ever captured a bunch of data with the gnuradio file sink and then justβ¦ stared at the raw bytes like ποΈπποΈ? yeah. that's what this is for. it shows you data captured using the gnuradio file sink, plotted versus time, and it is lowkey iconic.
here's the usage, verbatim, no notes:
usage: gr_plot [-h]
[-d {complex64,float32,uint32,int32,uint16,int16,uint8,int8}] [-B
BLOCK] [-s START] [-R SAMPLE_RATE] FILE [FILE ...]
so what it does: it takes a GNU Radio binary file and displays the samples versus time. periodt. π
you can set the block size to specify how many points to read in at a time, and you can set the start position in the file. those are your two lil knobs. ποΈ
and here's the part that gets people: by default, the system assumes a sample rate of 1, so in time, each sample is plotted versus the sample number. that means your x-axis is literally just "sample 0, sample 1, sample 2β¦" π if you want a true time axis, you gotta set the sample rate (-R or --sample-rate) to the sample rate used when capturing the samples. like, the actual one. the real one. not the fake default one. iykyk. β
πΈ positional arguments: πΈ
FILEβ Input file with samples π (yes you can pass more than one, look at the usage line, it saysFILE [FILE ...], we love options)
π optional arguments: π
-h,--helpβ show this help message and exit. the classic. the moment. the "wait what does this do again" button π«Ά-d {complex64,float32,uint32,int32,uint16,int16,uint8,int8},--data-type {complex64,float32,uint32,int32,uint16,int16,uint8,int8}β Specify the data type [default='complex64']. choose wisely bestie, pick the wrong one and your plot is gonna look like abstract art π-B BLOCK,--block BLOCKβ Specify the block size [default=1000]. how many points it reads in at a time π-s START,--start STARTβ Specify where to start in the file [default=0]. skip ahead, main character energy, start wherever you want β¨-R SAMPLE_RATE,--sample-rate SAMPLE_RATEβ Set the sampler rate of the data [default=1.0]. (yes, it says "sampler rate", we're keeping it exactly as written, don't @ me π) set this to your actual capture sample rate and boom, real time axis π§
heads up: if you leave-Rat its default of1.0, your x-axis is sample numbers, not seconds. not a bug, just the vibe. set the rate if you want real time. π
π SEE ALSO π
go read these too, they're all family π
gr_plot_char(1)gr_plot_const(1)gr_plot_fft_c(1)gr_plot_fft_f(1)gr_plot_float(1)gr_plot_int(1)gr_plot_iq(1)gr_plot_psd_c(1)gr_plot_psd_f(1)gr_plot_qt(1)gr_plot_short(1)
ok that's the whole page, mwah π this was gr_plot version 3.8, and the date on it is March 2019 β a whole era, honestly. go plot something pretty. slay πβ¨π¦
π¦ where this page comes from
- debian bookworm: gnuradio 3.10.5.1-3 Β· GPL-3.0-or-later
- debian trixie: gnuradio 3.10.12.0-1 Β· GPL-3.0-or-later
- ubuntu jammy: gnuradio 3.10.1.1-2 Β· GPL-3.0-or-later
- ubuntu noble: gnuradio 3.10.9.2-1.1ubuntu2 Β· GPL-3.0-or-later
- ubuntu questing: gnuradio 3.10.12.0-1build3
- ubuntu resolute: gnuradio 3.10.12.0-6 Β· GPL-3.0-or-later
- ubuntu stonking: gnuradio 3.10.12.0-6build2 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms