How do I hide or resize poseplot local axes?

11 visualizaciones (últimos 30 días)
Floris-Jan Nieuwenhuis
Floris-Jan Nieuwenhuis el 23 de Mayo de 2022
Comentada: Floris-Jan Nieuwenhuis el 30 de Mayo de 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?

Respuesta aceptada

Ryan Salvo
Ryan Salvo el 25 de Mayo de 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 comentarios
Ryan Salvo
Ryan Salvo el 26 de Mayo de 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.
Floris-Jan Nieuwenhuis
Floris-Jan Nieuwenhuis el 30 de Mayo de 2022
I've tried a few configurations with the plotTransforms command, but utlimately not being able to scale the model has a huge disadvantage in my application. I'll stick to the poseplot command.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Coordinate Transformations and Trajectories en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by