I have the following
a = np.arange(1000)
b = np.arange(100)
I want to plot both a
and b
on the same plot, with all points from a
appearing, and for each point of b
, have 10 points show up, with no interpolation. b
point values should change every 10 samples from a
, and they should be synchronized such that a[::10]
corresponds to b[:]
.
Plotting with .plot()
is fine, no need for scatter()
.
Can this be done with pure matplotlib? If not, how to do it with numpy?