Changing tick-values in raster-plot #1987
-
Consider this gallery example. How can I change x-axis tick values to go from e.g. 700 to 1000 instead of from 0 to 87, which is just an enumeration of the input data? I've tried changing the domain, range and ticks args, but I can't get it working. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
If you want to keep data as an array of pixel colors, the best solution is to apply an affine transform on x and y:
Otherwise you can see data as an array of samples with abstract positions and values, and use a spatial interpolator to fill the image; but it's not going to give the same image (for better or worse).
|
Beta Was this translation helpful? Give feedback.
If you want to keep data as an array of pixel colors, the best solution is to apply an affine transform on x and y:
Otherwise you can see data as an array of samples with abstract positions and values, and use a spatial interpolator to fill the image; but it's not going to give the same image (for better or worse).