【问题标题】:How to make a semilog plot within a semilog plot in MATLAB?如何在 MATLAB 的半对数图中制作半对数图?
【发布时间】:2013-09-12 06:54:44
【问题描述】:

是否可以在半对数图中创建半对数图(semilogx、semilogy、loglog)?我需要有一个放大的情节。我发现的大多数解决方案只解决线性比例而不是对数比例。

【问题讨论】:

    标签: matlab plot matlab-figure insets


    【解决方案1】:

    尝试使用axes,例如:

    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))
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多