I have a function called $s$ which is a very complicated function of two variables x and y. I want to plot a 2d graph with axes representing x and y parameters and colored points show sign of function $s$ for $x=x_0$ and $y=y_0$ (For example if $s(x_0,y_0)$ is positive it plots a blue point and if not, it plots red point in $(x_0,y_0)$ position of the graph.)
I want $x_0$ to go from $x_1$ to $x_2$ with step equal to $\Delta x$ and $y_0$ to go from $y_1$ to $y_2$ with step equal to $\Delta y$. The reason I want to do that is: Plot3D cannot plot $s(x,y)$, because as I mentioned, it is a very difficult function of x and y. The code I used to plot the function is as below but I don't know how to plot different colors for different signs(nagative and positive):
ListPointPlot3D[Table[s, {x, 0.03, 1, 0.05}, {y, 40, 50, 1}]]
Any answers with an example will be highly appreciated.
Comments
Post a Comment