Borrar filtros
Borrar filtros

Quiver Plot Arrows too Wide

28 visualizaciones (últimos 30 días)
Andrew Chen
Andrew Chen el 23 de Abr. de 2017
Comentada: Joaquin Guillamon el 21 de Ag. de 2021
Hello everyone, sorry I'm asking what seems like a rudimentary question but I've probably spent the better half of an hour online trying to solve my problem and I have not gotten anything to work. I'm making a quiver plot with specific vectors at specific locations using the plot function:
quiver(x,y,u,v)
unfortunately, my plot is what is shown below...
Those are arrows believe it or not. I can't seem to find a simple solution to making the arrow heads not so wide! My data in the x direction only varies from .6 to .7 but the x axis has been severely widened due to these wide arrows. Thank you for any help!
  4 comentarios
Pablo Israel Morales Guzmán
Pablo Israel Morales Guzmán el 4 de Mayo de 2021
I think it has something to do with the values in both axes. They need to be have similar values in order for the arrows to display properly.
Joaquin Guillamon
Joaquin Guillamon el 21 de Ag. de 2021
Hi Pablo, I'm writing regading a similar issue with the width of the arrows in the quiver plot you've got some years ago. Could you realized what was the problem?? I've tried a lot of different things but cannot make it look nice those arrows... If you know how to solve it, I appreciate any suggestion or help you can give me! Thanks!

Iniciar sesión para comentar.

Respuestas (2)

Andrew Newell
Andrew Newell el 23 de Abr. de 2017
Have you tried looking at the documentation for quiver? There is an option
quiver(...,scale)
In your example, you could try
scale=0.1;
quiver(x,y,u,v,scale)
and tweak scale to get what you want.
  4 comentarios
Andrew Chen
Andrew Chen el 24 de Abr. de 2017
I've never come across this notation before. It doesn't seem to work. How would this code factor into actually plotting the quiver plot? I will do some searching to see if I can find an answer and will let you know if I find one if I do before you respond.
Andrew Newell
Andrew Newell el 24 de Abr. de 2017
Working with Graphics Objects may help familiarize you with my use of h and the get/set interface. It certainly works in tests I have done.

Iniciar sesión para comentar.


Timothy Russell
Timothy Russell el 26 de Mayo de 2017
Another question I have about the quiver3 plot...I'm trying to graph a vector in 3D and want to save a picture of it at a certain angle but the arrow head doesn't show up well at that angle. Can I somehow rotate the vector so the arrowhead shows up? thanks, tim
  1 comentario
KAE
KAE el 11 de Feb. de 2020
Make this a separate question and you are more likely to get an answer.

Iniciar sesión para comentar.

Categorías

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

Community Treasure Hunt

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

Start Hunting!

Translated by