Question

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.

Était-ce utile?

La solution

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

Autres conseils

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.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top