New in Wolfram Mathematica 7: Vector & Field Visualization  previous | next 
Show the Divergence as a Background Density
Use the divergence for the background density.
In[1]:=

Click for copyable input
div[x_, y_] = D[Cos[x + y^3], x] + D[Sin[y + x^3], y];
In[2]:=

Click for copyable input
StreamDensityPlot[{{Cos[x + y^3], Sin[y + x^3]}, div[x, y]}, {x, -2, 

  2}, {y, 0, 2}, StreamPoints -> Fine, ColorFunction -> "MintColors", 

 MaxRecursion -> 2, StreamStyle -> Black, ImageSize -> Large]
Out[2]=