Mirror plotting on Matlab
7 次查看(过去 30 天)
显示 更早的评论
Hi , looking to create a plot similar to the plot attached. I have two sets of data which are similar and I want to compare them 'back-to-back'. How do I go about doing that on Matlab? I'm familiar with matlab plotting but with only very basic knowledge. Any help would be appreciated.
This is the image.

Thanks
1 个评论
somayeh Mohammady
2018-6-25
I found that the easiest way doing it is to multiply the matrix containing your figure by .*(-1), and plot it as usual. It worked for me.
回答(1 个)
Jan
2015-7-19
Wouldn't it be the most direct and easiest way to draw the data in one axes?
t = 1:10;
data1 = rand(1, 10);
data2 = rand(1, 10);
plot(t, data1, 'r');
hold on
plot(t, data2, 'b');
3 个评论
Image Analyst
2015-7-19
JL's "Answer" moved here since it's not an actual official "Answer" to his original question:
No it must be mirrored below y axis like in the photo. The intensities will be roughly the same but not quite so drawing the data in one axis won't show the difference well enough.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Annotations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!