For the FabScanner, the application does several jobs
I used Python and the Gestalt libraries to coordinate data acqusition with motion, used Python to estimate the surface based on scattering amplitudes, and used JavaScript, D3, and Plotly.js to display the surface.
https://wiki.python.org/moin/TkInterNadya noted that when the machine finishes execution, its origin is reset compared to its previous value. In other words, when the program begins execution, its initial position is the origin. So I should Raster at specific XY positions, generate a grid.
I first tried to plot values from Python scripts using Matplotlib. Though I have Matplotlib installed, nothing happened when I used it, a documented issue. Following guidelines, I tried to install Matplotlib again using
Next I looked for Tkinter examples. I displayed some simple scatter plots, but my feeling is the functionality is much lower level than other options, especially when comes time to display surfaces.
Thus I decided to display the data using JavaScript. I should have done this from the start. Examples such as Plotly.js have lots of functionality, seems straightforward to include my own data, and might even have the advantage of being integrated as a JavaScript module into mods in future.
To pass data from Python to the JavaScript, seems I can use a JSON file. Perhaps ask Amanda this afternoon. I may need to run a local webserver to make this work.
First, I plotted a static surface using the Plotly.js environment. I cloned the Plotly.js library usinggit clone https://github.com/plotly/plotly.js