Info

This question is closed. Reopen it to edit or answer.

Is there some kind of input map size limitation that could explain why caxis or CLim do not work?

1 view (last 30 days)
Hello,
I've written a script that turns contour elevation data into a DTM grid and plots the slope at each grid point in 2D:
surf(xi,yi,slope, 'LineStyle', 'none'), colorbar;
colormap jet
title('Slope')
xlabel('Longitude')
ylabel('Latitude')
zlabel('slope')
view(2)
I would like to change the coloubar scale. I tried CLim and caxis, which work when the map is small enough. They don't when the map is several km wide. Is there some kind of limitation in matlab that could explain that? Are there any alternatives to do that?
Thank you
  4 Comments
NP
NP on 2 Oct 2019
No really I'm afraid, the dataset for which resetting the colourbar does not work is huge, which may well be the problem...
Walter Roberson
Walter Roberson on 2 Oct 2019
Unfortunately the implementing code that is called is .p files that we cannot examine.
There are some cases in MATLAB graphics where when you ask to graph over a certain size of data, that a different kind of plot is generated internally; I seem to recall that is done for scatter() but I do not recall it being mentioned for surf()
You should probably open a support case.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!