I have two CSV files that produce a raster image, each are 300x300.
I can get the program to display one, but if I try to display both, it just produces a blank white graph. All I want it to show is the two sets of data as separate images, it does not need to be changed in any way.
import csv
import matplotlib.pyplot as plt
import math
lidar = [] # height of object
radar = [] # texture of object
with open('lidar1.csv', newline='') as f:
reader = csv.reader(f, quoting=csv.QUOTE_NONNUMERIC)
for row in reader:
rowlist = []
for value in row:
rowlist.append(value)
lidar.append(rowlist)
with open('radar1.csv', newline='') as f:
reader = csv.reader(f, quoting=csv.QUOTE_NONNUMERIC)
for row in reader:
rowlist = []
for value in row:
rowlist.append(value)
radar.append(rowlist)
plt.imshow(lidar)