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.

Was it helpful?

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

OTHER TIPS

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top