You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running the executable test_matrix gives me the following result. The gridline image looks correct (although the order of the colored pixels is not the same as the bash version), but the pixel image is black.
Something wrong with my C code? Or a GMT API bug?
The text was updated successfully, but these errors were encountered:
Although the two grids, gridline.grd and pixel.grd, have different grid registration, the plots are the same. See the output figure below:
Yes, they are equal and that is correct. Both have 3x3 pixels and because the global limits are larger than the grid registered the border pixels are not trimmed.
Here is a bash script, which converts a sample XYZ data to gridline- and pixel-registered grids, and plots them, respectively.
Although the two grids,
gridline.grd
andpixel.grd
, have different grid registration, the plots are the same. See the output figure below:I tried to plot the same figure using the GMT C API, by directly passing a matrix as gridline- or pixel grids. Here is the C code.
The C code is compiled using:
Running the executable
test_matrix
gives me the following result. The gridline image looks correct (although the order of the colored pixels is not the same as the bash version), but the pixel image is black.Something wrong with my C code? Or a GMT API bug?
The text was updated successfully, but these errors were encountered: