import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
import numpy as np
#read in data from csv organised in columns labelled 'lat','lon','elevation'
data = np.recfromcsv('elevation-sample.csv', delimiter=',')
# create a 3d axis on a figure
fig = plt.figure()
ax = fig.add_subplot(111, projection='3d')
# Find unique (i.e. constant) latitude points
id_list = np.unique(data['lat'])
# stride is how many lines to miss. set to 1 to get every line
# higher to miss more
stride = 5
# Extract each line from the dataset and plot it on the axes
for id in id_list[::stride]:
this_line_data = data[np.where(data['lat'] == id)]
lat,lon,ele = zip(*this_line_data)
# set the viewpoint so we're looking straight at the longitude (x) axis
Great! I remember seeing something like this on a t-shirt - can't find it now though :)
I also saw that and I think it was the topography map of the earth. But I cannot find it too.
I think this is the kind of thing you want - plotting lines of constant latitude on a 3d axis. I've explained what each section does in comments
Note - you can swap latitude and longitude if I've misinterpreted the axis labels in your sketch.
The data set I used to test is not mine, but I found it on github here.
This gives output as follows: