How to draw a northarrow on a simple plot, and not on a map?

23 Ansichten (letzte 30 Tage)
Sim
Sim am 28 Okt. 2020
Kommentiert: Sim am 10 Nov. 2020
Hi, how can I draw a northarrow on a simple plot, and not on a map?
I would need a northarrow where I can set the traditional plot position as follows (at least the x and y coordinates)
northarrow('position',[x0 y0 width height]);
and not with the default latitude and longitude values
northarrow('latitude', lat, 'longitude', lon);

Akzeptierte Antwort

Alan Moses
Alan Moses am 30 Okt. 2020
The northarrow function works on map axes. You may want to read the annotation documentation to draw an arrow on a simple plot. Refer this link to find a solution to a similar question. To change the appearance and behaviour of the arrow created using annotation, refer this link.
  1 Kommentar
Sim
Sim am 10 Nov. 2020
Thanks Alan for your kind reply,
I would then suggest to adapt -if possible - the northarrow to simple plots with such a simple syntax:
northarrow('position',[x0 y0 width height]);
Many thanks,
Sim

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Geographic Plots finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by