add cirlce around lat lon

I would like to draw a simple circle around a specified latitude and longitude but I cannot find an appropriate command.
I have tried using
map.drawgreatcircle(myLON, myLAT,myLON, myLAT, linewidth=20,color=‘k’)
but this doesn’t do anything
or even
map.drawgreatcircle(myLON+1, myLAT+1,myLON-1, myLAT-1, linewidth=2,color=‘k’)
and this appears to draw a line.
Any other commands I could try for this?
thanks in advance

drawgreatcircle() doesn’t actually draw a circle, but rather an arc that represents the shortest distance between two points on the globe.

Maybe you would rather use a Circle object?

Ben Root

···

On Tuesday, December 6, 2011, questions anon <questions.anon@…287…> wrote:

I would like to draw a simple circle around a specified latitude and longitude but I cannot find an appropriate command.

I have tried using
map.drawgreatcircle(myLON, myLAT,myLON, myLAT, linewidth=20,color=‘k’)
but this doesn’t do anything
or even
map.drawgreatcircle(myLON+1, myLAT+1,myLON-1, myLAT-1, linewidth=2,color=‘k’)

and this appears to draw a line.
Any other commands I could try for this?
thanks in advance

Dear,

you can try my tutorial to achieve this properly : Matplotlib Basemap tutorial 09: Drawing circles – Géophysique.be

Cheers,

Thom

ps : on the “things to do when I have some time” list : commit a method to the default basemap package to do this…

···

Date: Tue, 6 Dec 2011 21:23:18 -0600
From: ben.root@…1304…
To: questions.anon@…287…
CC: Matplotlib-users@lists.sourceforge.net
Subject: Re: [Matplotlib-users] add cirlce around lat lon

On Tuesday, December 6, 2011, questions anon <questions.anon@…287…> wrote:

I would like to draw a simple circle around a specified latitude and longitude but I cannot find an appropriate command.

I have tried using
map.drawgreatcircle(myLON, myLAT,myLON, myLAT, linewidth=20,color=‘k’)
but this doesn’t do anything
or even
map.drawgreatcircle(myLON+1, myLAT+1,myLON-1, myLAT-1, linewidth=2,color=‘k’)

and this appears to draw a line.
Any other commands I could try for this?
thanks in advance

drawgreatcircle() doesn’t actually draw a circle, but rather an arc that represents the shortest distance between two points on the globe.

Maybe you would rather use a Circle object?

Ben Root


Cloud Services Checklist: Pricing and Packaging Optimization
This white paper is intended to serve as a reference, checklist and point of discussion for anyone considering optimizing the pricing and packaging model of a cloud services business. Read Now!
http://www.accelacomm.com/jaw/sfnl/114/51491232/


Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net

thanks for the responses.
Sebastians suggestion to use tissot function is exactly what I needed.
map.tissot(lon, lat, r, 96)
thanks again

···

On Wed, Dec 7, 2011 at 6:36 PM, Thomas Lecocq <thlecocq@…1954…> wrote:

Dear,

you can try my tutorial to achieve this properly : http://www.geophysique.be/2011/02/20/matplotlib-basemap-tutorial-09-drawing-circles/

Cheers,

Thom

ps : on the “things to do when I have some time” list : commit a method to the default basemap package to do this…


Date: Tue, 6 Dec 2011 21:23:18 -0600
From: ben.root@…1304…

To: questions.anon@…287…
CC: Matplotlib-users@lists.sourceforge.net
Subject: Re: [Matplotlib-users] add cirlce around lat lon

On Tuesday, December 6, 2011, questions anon <questions.anon@…287…> wrote:

I would like to draw a simple circle around a specified latitude and longitude but I cannot find an appropriate command.

I have tried using
map.drawgreatcircle(myLON, myLAT,myLON, myLAT, linewidth=20,color=‘k’)
but this doesn’t do anything
or even
map.drawgreatcircle(myLON+1, myLAT+1,myLON-1, myLAT-1, linewidth=2,color=‘k’)

and this appears to draw a line.
Any other commands I could try for this?
thanks in advance

drawgreatcircle() doesn’t actually draw a circle, but rather an arc that represents the shortest distance between two points on the globe.

Maybe you would rather use a Circle object?

Ben Root


Cloud Services Checklist: Pricing and Packaging Optimization
This white paper is intended to serve as a reference, checklist and point of discussion for anyone considering optimizing the pricing and packaging model of a cloud services business. Read Now!
http://www.accelacomm.com/jaw/sfnl/114/51491232/


Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Cloud Services Checklist: Pricing and Packaging Optimization

This white paper is intended to serve as a reference, checklist and point of

discussion for anyone considering optimizing the pricing and packaging model

of a cloud services business. Read Now!

http://www.accelacomm.com/jaw/sfnl/114/51491232/


Matplotlib-users mailing list

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users