I would need to see your code to know why the image is not updating.
You can set the Z range by LabTalk to force the image to update. Internally, the Z range is taken from the data, but if you know the Z range, you can set it yourself, and thus the image will definitely redraw, as shown below,
void setz(int nr1 = 2, int nc1 = 3, int nr2 = 10, int nc2 = 14, double dZ = 2)
{
MatrixLayer ml = Project.ActiveLayer();
if(ml==NULL)
{
out_str("Must have matrix as active window");
return;
}
Matrix mat(ml);
for(int nr = nr1; nr < nr2; nr++)
{
for(int nc = nc1; nc < nc2; nc++)
mat[nr][nc] = dZ;
}
double zmin = mat.GetMin();
double zmax = mat.GetMax();
mat.SetZRange(zmin, zmax);
}
CP