Skip to content
Snippets Groups Projects
Commit c4ecd228 authored by John Daniel Bossér's avatar John Daniel Bossér
Browse files

rasterize pcolormesh

parent 2eb5877d
No related branches found
No related tags found
No related merge requests found
......@@ -43,7 +43,7 @@ def main(block: bool) -> None:
# Figure without a target
plt.figure()
time_axis = np.arange(btr_nt.shape[0]) * T
plt.pcolormesh(time_axis, btr_bearings, 10 * np.log10(btr_nt.T), cmap="Greys", vmin = vmin, vmax=vmax)
plt.pcolormesh(time_axis, btr_bearings, 10 * np.log10(btr_nt.T), cmap="Greys", vmin = vmin, vmax=vmax, rasterized=True)
plt.ylim([-60, 60])
plt.xlabel("Time [s]")
plt.ylabel("Bearing [deg]")
......@@ -55,7 +55,7 @@ def main(block: bool) -> None:
# Figure with a target
plt.figure()
time_axis = np.arange(btr.shape[0]) * T
plt.pcolormesh(time_axis, btr_bearings, 10 * np.log10(btr.T), cmap="Greys", vmin=vmin, vmax=vmax)
plt.pcolormesh(time_axis, btr_bearings, 10 * np.log10(btr.T), cmap="Greys", vmin=vmin, vmax=vmax, rasterized = True)
plt.ylim([-60, 60])
plt.xlabel("Time [s]")
plt.ylabel("Bearing [deg]")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment