This post is an extension of the post:
How to 2D-plot function in two varibles
Actually I got the answer for that question from
I guess you want to color a list of 2D points using a function like k[s,f]. You can Style the original data and use the resulting data with ListPlot.
But I didn't understand from here:
" If the data is 3D and the third entry is obtained by applying a
function like k[s,f] to the first two entries (like data set dt3d
below), then the function we use to style the data is slightly
different:"
I understand in the example of td
and styleddt
that in Style[{##}
and k[##]
, that ##
refers to the two variables which k
is function of them.
But now I try to plot another function, like Y[s,f,d]= s+f+d;
, with -1 < s < 1
, f= 0.5
, and -0.5 < d < 0.5
, and I want to plot Y[s,f,d]
only at -2 < Y < 0
, or Piecewise can be used as in the first example to know Y values.