Skip to content

Instantly share code, notes, and snippets.

@jgamage91
Forked from luigifcruz/heatmap.py
Created August 1, 2018 09:10
Show Gist options
  • Save jgamage91/c5c670ce22fbfbefadc0606fab33a9e7 to your computer and use it in GitHub Desktop.
Save jgamage91/c5c670ce22fbfbefadc0606fab33a9e7 to your computer and use it in GitHub Desktop.
import numpy as np
import seaborn as sns
import pandas as pd
import matplotlib.pyplot as plt
sns.set()
sps = 3.75e6
samples_per_us = sps*1e-6
max_range_us = samples_num/samples_per_us
max_range_m = (max_range_us*299792458*1e-6)/2
linear = np.linspace(0, max_range_us, samples_num)
linear = np.floor(linear)
df = pd.DataFrame(plot, columns=linear)
ax = sns.heatmap(df, cmap='viridis')
plt.title('Pulse Radar Bursts - Passive Monitoring w/ LimeSDR')
plt.ylabel('Bursts')
plt.xlabel('Microseconds')
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment