I'm trying to have a 2d histogram with matplotlib. I then save it as a .svg file. It kinda works but I don't know why I get a grid over my plot.
data = self.getHistData(t)# returns something like [[x1, x2, ...], [y1, y2, ...]]
fig = plt.figure()
cmap = plt.colormaps["plasma"]
plt.hist2d(data[0], data[1], bins=(self.histRes, self.histRes), cmap=cmap)#self.histRes = 100
cbar = plt.colorbar()
cbar.ax.set_ylabel('Number')
plt.savefig(path_join(self.scriptPath, "plot.svg"), bbox_inches='tight')