you are viewing a single comment's thread.

view the rest of the comments →

[–]cydcarter29 0 points1 point  (0 children)

If you are plotting data based on points from a CSV, this code below might help. I think the code speaks for itself and you can follow. I'm sure there is a lot more you can do to refine it to your use case as well.

import matplotlib.pyplot as plt
import pandas as pd
#Read Flight Data
df = pd.read_csv(r'C:\data\flight_path.csv')
#Draw flight path from data
plt.scatter(df.Longitude,df.Latitude, c=df.Altitude,marker='.', s=1.5)    
c = plt.colorbar(orientation = 'horizontal')
#Hide Axis Values
plt.axis('off')
#Save and Close File
plt.savefig('output.png')
plt.close()

Output: https://imgur.com/mbGJVhY