How to make my quiver plot readable?

14 visualizaciones (últimos 30 días)
A LL
A LL el 24 de En. de 2022
Comentada: A LL el 24 de En. de 2022
I have the vector field (U,V) of size 361x361 that I want to plot as a quiver plot.
For now, the vector field is just unreadable because there are too many arrows plotted and the arrows are way too small (see image below).
How can I plot fewer arrows on my quiver plot and make the arrows bigger so that we can understand the figure?
I have attached the data for U and V.
Here is my code:
figure(1)
clf;
hold on;
h1 = quiver(U,V,'k');
set(h1,'AutoScale','on', 'AutoScaleFactor', 5)
axis equal square
set(h1,'MaxHeadSize',10)
set(h1,'LineWidth',1)
xlim([0 360]);
ylim([0 360]);
shading flat;
axis ij;
figure(gcf);
Thank you

Respuesta aceptada

KSSV
KSSV el 24 de En. de 2022
You have limited the axes to a large extent. Don't limit the axes. Remove these lines:
xlim([0 360]);
ylim([0 360]);
Let MATLAB select the axes automatically depending on the limits. (Here dimensions).
It looks like there are lot many NaN's in the data. You may remove them, select only square region which have values.
If you want to skip some data and plot. Use as show below:
id = 4 ; % plot every 4th value
h1 = quiver(U(1:id:end,1:id:end),V(1:id:end,1:id:end),'k');

Más respuestas (0)

Categorías

Más información sobre Vector Fields en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by