I am interested in making an 'interactive mask.' That is, I am creating a model of estuarine flow, where the grid is rectangular, and part of the domain will be land, not included in the simulation through a mask. I would like to be able to modify this mask using a tool that will allow me to click cells on and off.
I can think of a few ways to do this, but I thought I would ask y'all first. A rough outline of the code would be:
1. pcolor the grid
2. Catch clicks in the figure, and determine which cell is clicked.
3. Toggle the masking of that cell, and re-draw the figure
Has anybody done this?
Any ideas about any of the parts? I think I can handle part 1. I'm worried part 3 might be inefficient.
Rob Hetland, Associate Professor
Dept. of Oceanography, Texas A&M University
phone: 979-458-0096, fax: 979-845-6331