1

Is it possible to create a semilog plot (semilogx, semilogy, loglog) within a semilog plot? I need to have a zoom-in plot. Most solutions I found only solve for linear scale but not log scale.

bla
  • 25,846
  • 10
  • 70
  • 101

1 Answers1

4

Try using axes, for example:

x = linspace(0,1);
figure(1)

% plot on large axes
semilogy(x,1./x)

% create smaller axes in top right, and plot on it
axes('Position',[.55 .55 .33 .33])
box on
loglog(x,exp(x))

enter image description here

bla
  • 25,846
  • 10
  • 70
  • 101