How to change surface plot size in figure window?

6 visualizaciones (últimos 30 días)
Marilena Geng
Marilena Geng el 11 de Nov. de 2016
Comentada: Marilena Geng el 22 de Nov. de 2016
Hey all, so I'm plotting a surface plot with a colorbar next to it, but the ticks and the label of the colorbar always get cut of (they don't fit in the figure window). How could I change that? I wish I could set the plot including the colorbar central in the window, now just the surface plot is central and the colorbar squeezed in next to it. If I change the position of the colorbar it gets to close or overlaps the plot and looks ugly. I tried stuff like InnerPosition and PaperPositionMode but it says that's not a "property on the Surface class"? Thanks in advance!

Respuestas (1)

Image Analyst
Image Analyst el 11 de Nov. de 2016
Try other properties like Position and OuterPosition:
axesHandle.Units = 'normalized';
axesHandles.Position = [.2, .3, .4, .5]; % or whatever....
Try with the colorbar handle also
colorBarHandle = colorbar;
colorBarHandle.OuterPosition = ........
  1 comentario
Marilena Geng
Marilena Geng el 22 de Nov. de 2016
thanks! I've been playin around with those, I'm still not all satisfied with what I get but I'll just keep trying

Iniciar sesión para comentar.

Categorías

Más información sobre Surface and Mesh Plots en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by