How to create a plot with highlight (holes) based on Y value and colored density map based on X value
2 views (last 30 days)
can you please teach me how to plot the following
I start with 2 sin function addition.
>> t = [0:0.0001:0.4*pi];
y=cos(100*t) + cos(110*t);
Then can you please help me with
- highlight the data points with bubble whose Y value is less than 0.5 but great than -0.5 (as in the pic below)
- include a density heat map along the X axis with the relative density of the highlighted data points. (red means the highlighted data is very concentrated and blue means the highlighted data is very scarce)
The plot attached is more or less capture the requirement 1.