How do I hide or resize poseplot local axes?
8 ビュー (過去 30 日間)
古いコメントを表示
Floris-Jan Nieuwenhuis
2022 年 5 月 23 日
コメント済み: Floris-Jan Nieuwenhuis
2022 年 5 月 30 日
I'm trying to plot a view of my stl mesh file in poseplot. However, the actual object seems to be dwarfed by the set of axes that the poseplot function has added to the mesh file. Is there a way to resize the axes (or remove them altogether) so that the object is properly visible?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1007970/image.png)
0 件のコメント
採用された回答
Ryan Salvo
2022 年 5 月 25 日
Hi Floris-Jan Nieuwenhuis,
If the ScaleFactor Name-Value argument does not resolve the scaling issue, I recommend trying the plotTransforms command instead, as it provides more explicit controls for the length of the axes.
Thanks,
Ryan
3 件のコメント
Ryan Salvo
2022 年 5 月 26 日
To remove the frame axes in the plot, you can search for them in the axes handle returned by plotTransforms and then delete them.
figure
ax = plotTransforms([0 0 0], quaternion(1,0,0,0), "MeshFilePath", "groundvehicle.stl");
% Remove frame axes objects.
frameAxes = findobj(ax, "Type", "Line");
delete(frameAxes);
Please note that you will have to perform a more robust check on the output of findobj if your figure contains other Line objects that should not be deleted.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Coordinate Transformations and Trajectories についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!