How do I hide or resize poseplot local axes?
11 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Floris-Jan Nieuwenhuis
le 23 Mai 2022
Commenté : Floris-Jan Nieuwenhuis
le 30 Mai 2022
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?
0 commentaires
Réponse acceptée
Ryan Salvo
le 25 Mai 2022
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 commentaires
Ryan Salvo
le 26 Mai 2022
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.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Coordinate Transformations and Trajectories dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!