سؤال

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.

هل كانت مفيدة؟

المحلول

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

نصائح أخرى

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.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top