Trying to plot a point on m_map but it does not appear.
Mostra commenti meno recenti
Hello, I have creating a map using m_map and now have to plot a few points on it. I was using the m_plot function and hold on to plot these coordinates but for some reason they do not appear on the map. I am fairly new to matlab and I do not understand what is going wrong. I have attached my code as well as the figure. Thank you!
Risposte (1)
Kelly Kearney
il 22 Mag 2017
Like plot, the default marker for m_plot is none... good for plotting lines, but not single points. Add a marker and you should see your points:
m_plot(-95.9002, 27.3821, 'bo') %plot the moorings
2 Commenti
andrea molina
il 23 Mag 2017
Kelly Kearney
il 24 Mag 2017
Modificato: Kelly Kearney
il 24 Mag 2017
Place it where your previous call to m_plot was (all I did was change the LineSpec in your original line of code from 'b' to 'bo', i.e. blue-with-circle markers).
Categorie
Scopri di più su Color and Styling in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!