MATLAB: Is there any way to combine log and linear scaling in ONE y axis

linearlogplotting

Hi all,
Is there any way to combine log and linear scaling in ONE y axis? What I mean – my data are changing very rapidly when they are negative and not too fast when they are positive.
Simon

Best Answer

I doubt that is possible "out of the box".
Two possible solutions:
  • Plot on a linear axis, but take the log of your positive data
  • Use subplots to make two plots, one above the other. Plot the positive data with log axis and the negative data with linear axis.
Either way, I think you'll need some clear annotation to help the viewer of the visualization understand what's going on.