Mercurial > repos > public > sbplib
view logsurf.m @ 1345:14f44e81e1e3 feature/poroelastic
Add scheme for Elastic2dVariable, not fully compatible.
author | Martin Almquist <martin.almquist@it.uu.se> |
---|---|
date | Tue, 30 Apr 2024 13:33:39 +0200 |
parents | ac1fc1c9e129 |
children |
line wrap: on
line source
function [srfHandle, cbHandle] = logsurf(X,Y,Z, lim) absLogZ = log10(abs(Z)); srfHandle = surf(X,Y,absLogZ); cbHandle = colorbar(); colormap(hot(256)); ah = gca(); ah.CLim = lim; oldTickLabels = cbHandle.TickLabels; newTickLabels = {}; for i = 1:length(oldTickLabels) newTickLabels{i} = sprintf('10^{%s}',oldTickLabels{i}); end cbHandle.TickLabels = newTickLabels; end