We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I'm trying to generate a 4x4 heat map using data that I'm streaming from an arduino serial using the serial library. Here is my code so far.
import numpy as np
import matplotlib.pyplot as plt
from matplotlib import mlab, cm
def setup():
portName = Serial.list()[0]
myPort = Serial(self, portName, 9600)
return
def drawMap():
if myPort.available() > 0:
val = myPort
fig = plt.figure()
v = np.linspace(0, 100, 25)
x,y = np.meshgrid(v,v)
I doubt this is correct though. I'm quite new to processing so any help on generating a heat map easily would be appreciated. Any help on better understanding serial would also be greatly appreciated. I'm not sure how to set the values of each quadrant in my 4x4 grid to the values that i'm streaming from the arduino.
Answers
https://forum.Processing.org/two/discussion/21628/gsoc-2017-application-for-processing-py