Create semilogy plot with original values on Y-Axis

4 ビュー (過去 30 日間)
Hannah W
Hannah W 2016 年 3 月 28 日
コメント済み: Azzi Abdelmalek 2016 年 3 月 28 日
How may I vary the axis settings of the semilogy plot in a way that it depicts the 'original' (not log()) values? I attach an example of what I have in mind.
[The purpose of this is to make the log-scale more apparent in comparison to other, non-logarithmic graphs). Thank you so much, I appreciate your help!

回答 (1 件)

Azzi Abdelmalek
Azzi Abdelmalek 2016 年 3 月 28 日
編集済み: Azzi Abdelmalek 2016 年 3 月 28 日
set(gca,'ysclae','log')
  2 件のコメント
Hannah W
Hannah W 2016 年 3 月 28 日
Thank you very much for your help. Unfortunately it does not seem to work on my MATLAB 2015b... It says "There is no scale property on the Axes class." My code looks like this:
semilogy(X,Y,'Color',[1 0 0]); set(gca,'scale','log')
I have tried with the property 'YScale', with this one it runs ok but does not give the result needed. Can you maybe give me a hint what I do wrong here? Thank you so much!
Azzi Abdelmalek
Azzi Abdelmalek 2016 年 3 月 28 日
What do you mean by the result needed?

サインインしてコメントする。

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by