Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6700633
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T06:50:17+00:00 2026-05-26T06:50:17+00:00

I am trying to plot arrowheads on the lines between two geospatial points (latitude,

  • 0

I am trying to plot arrowheads on the lines between two geospatial points (latitude, longitude pairs) on Matlab without success. To plot just the lines without the arrowheads, I am using the following:

path = loadGPSPoints();
[lttrk,lntrk] = track(path);    
geoshow(lttrk,lntrk,'DisplayType','line','color','r');

The track function builds a list of coordinates that allows the geoshow function to build a set of lines between these coordinates. However, I have no control over these lines. They are, apparently, one object. So I cannot add arrowheads to the end of each point in the path.

The annotation() function does not work because it does not add the arrow annotation as part of the map. That is, if a zoom in or out the map, for example, the arrow gets displaced.

I also tried the function arrow() function from http://www.mathworks.com/matlabcentral/fileexchange/278 but it apparently does not work with maps.

Finally, I looked into the quiverm() function but it does not allow me to specify two different coordinates. Its application seems incompatible to what I need.

Any other ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T06:50:18+00:00Added an answer on May 26, 2026 at 6:50 am

    To plot stuff manually to a geoshow figure, the trick is to use mfwdtran to convert the lat/long data to the figure coordinate system. Then you can use arrow like normal. Here is an example building on the example from http://www.mathworks.com/help/toolbox/map/ref/track.html :

    load coast
    axesm('mercator','MapLatLimit',[28 47],'MapLonLimit',[-10 37],...
        'Grid','on','Frame','on','MeridianLabel','on','ParallelLabel','on')
    geoshow(lat,long,'DisplayType','line','color','b')
    waypoints = [36,-5; 36,-2; 38,5; 38,11; 35,13; 33,30; 31.5,32];
    [X, Y] = mfwdtran(waypoints(:,1),waypoints(:,2));
    arrow([X(1:(end-1)) Y(1:(end-1))], [X(2:end) Y(2:end)])
    

    enter image description here

    By the way, you can also specify a Marker property in your calls to geoshow. For example:

    geoshow(waypoints(:,1),waypoints(:,2),'DisplayType','line','Marker','>','color','r')
    

    enter image description here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to plot lines between two or more addresses in Google Maps. The
I am trying to plot two lines series on a chart. Each line with
Im trying to plot the roots of a polynomial, and i just cant get
I'm trying to plot some prices vs dates. There are about 10k lines of
I'm trying to plot two sets of data wrt to time on the same
I'm having a problem trying to plot a series of lines in a 3D
I am trying to plot a few points on the following picture in Mathematica:
I am trying to plot a bunch of data points (many thousands) in Python
I am trying to plot two data series in an MSChart. I am using
I am trying to plot a and b, each consisting of 7500 data points.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.