1

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.

mattiav27
  • 655
  • 2
  • 9
  • 27

2 Answers2

0

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

Community
  • 1
  • 1
frits
  • 327
  • 2
  • 15
  • Then I think the same approach solves your problem. Just plot and see if it is correct. – frits Oct 07 '13 at 15:46
0

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.

Community
  • 1
  • 1
Dan H
  • 14,044
  • 6
  • 39
  • 32