how to limit axes of the graph and the limits of the surface separately?
2 次查看(过去 30 天)
显示 更早的评论
how can I limit the global axes and the limits of the graph separately, for example, that the east axis from -20 to 20 but that the graph is at -5 and 5.
5 个评论
Bish Erbas
2018-9-25
In that case you can simply plot your data with the desired min/max values (i.e. trim your data to the desired min/max values) and manually overwrite the axes limits to the larger numbers you would like. I think the link I posted above should be sufficient to get started.
回答(2 个)
KSSV
2018-9-25
REad about axis. Here you can specify your axis limits. Alternativel individually you can limit using xlim, ylim.
0 个评论
Walter Roberson
2018-9-25
Use two axes. Set the visible property of the top one to off so the box etc are not drawn, but make sure clipping is on for it.
Setting up all the properties properly can be a bit tricky if you need to be able to zoom / pan / rotate the two together
4 个评论
Walter Roberson
2018-9-25
You want three side-by-side graphs, right? You would do that with subplot() . You can control the xlim, ylim, zlim of each subplot individually.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Creating, Deleting, and Querying Graphics Objects 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
