Graph with origin other than zero
11 次查看(过去 30 天)
显示 更早的评论
Hello, I have a questions regarding plotting data in graphs. I have data for two scales ranging from 1-10, which I would like to plot on the x- and y-axis in a graph. However I would like to have the axes crossing in scale point 5 in each of the axis. I.e. I want the origin to be in 5 instead of 0.
Would be very thankful for help in this!
0 个评论
回答(1 个)
Luuk van Oosten
2015-3-3
编辑:Luuk van Oosten
2015-3-3
There is a variety of things you could do to achieve this. An example; set the axis range using:
axis([ xmin xmax ymin ymax ])
so in your case that would be something like:
axis([ 5 10 5 10])
2 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!