Pergunta

I have some data defined on a sphere (a sphere not the earth): is it possible with Python 2.6 and matplotlib to draw them on map (of the type of Mercator map) "automatically" or do I have to project the data?

Edit: All of my data are lat-long.

Foi útil?

Solução

It really depends on what you have and what you want: x-y and/or lat-lon? It looks like your question is similar to a problem I had and more-or-less answered: matplotlib and apect ratio of geographical-data plots

Outras dicas

Consider using set_aspect(), using the reciprocal of the mean latitude of your data.

See matplotlib and apect ratio of geographical-data plots for a working example.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top