Offset data sets on log-log axis?

Hi,
I have plotted muliple data sets on a scatter plot with log log axis. However, to make the data more clear to understand I would like to offset thes data sets.
How can I do this?
Thanks!

댓글 수: 6

Adam Danz
Adam Danz 2019년 1월 23일
Could you provide a screen shot of your scatter plot and describe what you mean by offsetting the data?
Below is my plot, the points are plotted using
errorbar((x(:,1)),(x(:,2)),(x(:,3)))
and the solid lines using
plot(x(:,1),x(:,5))
test.jpg
David Goodmanson
David Goodmanson 2019년 1월 25일
Hi Hannah,
After you posted the plot I withdrew my answer since I realized I did not really understand the question. That puts this back in the queue of unanswered questions and makes it more noticeable to people.
Adam Danz
Adam Danz 2019년 1월 25일
The picture helps, Hannah. But it's still not clear how you'd like to offset the data. Do you mean you'd like to vertically shift some of the lines so there is vertical space along the y axis between the lines? That could open a can of worms. If I understood the ultimate goal I might be able to advise alternative solutions.
Adam Danz
Adam Danz 2019년 1월 25일
편집: Adam Danz 2019년 1월 30일
"Hi Adam, Yes I would like to offset in the y direction, spreading them out to make the everything clearer to see.
Thanks!"
It's not a good practice since the viewer will no longer understand the true y value of your data and the relationship between your data points. Small differences in their shape will be more difficult to see.
Here's an alternative. What if you plotted all 3 lines on 3 different subplots (so each subplot contained all 3 lines) but each subplot featured only 1 of the lines by include the markers while the other 2 lines did not contain markers.
Hannah Boyd
Hannah Boyd 2019년 1월 30일
Hi,
So I have decided to scale each plot by a factor of 5 along the y axis i.e. plot one as it is, multiple one by 5 and the other by 25. This works for me as i am interested in comparing the shape of the curves rather than the y values.
I think for the purpose of comparing values, the subplot idea is the best solution.
Thank you all for the help!

댓글을 달려면 로그인하십시오.

답변 (1개)

Hannah Boyd
Hannah Boyd 2019년 1월 25일

0 개 추천

Hi Adam, Yes I would like to offset in the y direction, spreading them out to make the everything clearer to see.
Thanks!

카테고리

도움말 센터File Exchange에서 Creating, Deleting, and Querying Graphics Objects에 대해 자세히 알아보기

질문:

2019년 1월 23일

편집:

2019년 1월 30일

Community Treasure Hunt

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

Start Hunting!

Translated by