Streamline and Quiver plot

Hi,
I am trying to figure something out,
  1. I want to add arrows on to the streamline plot. Streamline plot is a two dimensional. So I can't use slice function.
  2. Also want to check if I can normalise the arrows in the quiver plot arrows. The quiver plot show arrow which are not visible, I tried to scale but that is destorying the figure. So can any one suggest a better approch so that I can get all arrows with decent visible size. (Ref: Figure 1)

4 Kommentare

VBBV
VBBV am 12 Okt. 2020
Use streamslice function to plot streamlines with arrows. See more info in the link below
Kushal Kumar
Kushal Kumar am 12 Okt. 2020
Sorry Vasishta I tried Streamslice that doesn't work. Coz I have only x, y and vx and vy.
VBBV
VBBV am 12 Okt. 2020
Use the index resource below
<https://matplotlib.org/3.1.1/gallery/images_contours_and_fields/quiver_demo.html#sphx-glr-gallery-images-contours-and-fields-quiver-demo-py>
VBBV
VBBV am 12 Okt. 2020
Bearbeitet: VBBV am 12 Okt. 2020
Or use the autoscalefactor as
% if true
% code
% end
h = quiver(x,y,vx,vy);
set(h,'autoscale','on','autoscalefactor',1.5);
axis equal

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Vector Fields finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2020b

Gefragt:

am 11 Okt. 2020

Bearbeitet:

am 12 Okt. 2020

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by