Plot gradient vector in ContourPlot

  • #1
Lambda96
161
60
TL;DR Summary
Plot gradient vector in ContourPlot
Hi,

I have made the following ContourPlot in mathematica and now I wanted to ##\vec{r}_1= \left(\begin{array}{c} -1 \\ 1 \end{array}\right)##, ##\vec{r}_2= \left(\begin{array}{c} 0 \\ \sqrt{2} \end{array}\right)## and ##\vec{r}_3= \left(\begin{array}{c} 1 \\ 1 \end{array}\right)## insert the gradient into the ContourPlot.

Bildschirmfoto 2023-12-11 um 15.33.19.png


Is this possible and if so, how?
 
Physics news on Phys.org
  • #3
Thank you Orodruin for your help 👍

Since I want to have the vectors at certain points in the ContourPlot, I used ListVectorPlot[{{x1,y1},{vx1,vy1}},...}].

Unfortunately, Mathematica then plots a vector field

Bildschirmfoto 2023-12-12 um 12.35.57.png
 
  • #4
Check out the VectorPoints option
 

Similar threads

  • Advanced Physics Homework Help
Replies
6
Views
653
  • Advanced Physics Homework Help
Replies
19
Views
1K
  • Advanced Physics Homework Help
Replies
6
Views
956
  • Advanced Physics Homework Help
Replies
5
Views
824
  • Advanced Physics Homework Help
Replies
3
Views
447
  • MATLAB, Maple, Mathematica, LaTeX
Replies
2
Views
2K
  • Calculus and Beyond Homework Help
Replies
6
Views
567
Replies
1
Views
427
  • Special and General Relativity
5
Replies
146
Views
6K
  • Advanced Physics Homework Help
Replies
7
Views
1K
Back
Top