Qurak

Plot the density and mesh and overlay streamlines

Example 2 steps, run in order in one session. Every step was executed against the engine and the output below is what it produced.

Step 1
f = Sin[x + y ^ 2];
gradient = Grad[f, {x, y}];

No output - this step sets something up for the next one.

Step 2
StreamDensityPlot[{gradient, f}, {x, -2, 2}, {y, -2, 2}, Mesh -> 5, ColorFunction -> "BeachColors", MaxRecursion -> 1]
Output
-Graphics-

Functions used

Related recipes

All recipes · Function reference · Use this from an MCP client