patch object exceed axes when zoomed
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi, I found the same question on this forum, but no answer for that. So I'm reposting this, hopefully somebody can help!
I've a GUI containing two panels, one to the left and the other right. The right panel contains an axes, which in turn contains a 3d patch object. When zoomed in, the patch object would exceed the panel borders, and appears in the background on the left panel. How to contain the patch object strictly inside the panel so that it doesn't mess up with other components?
I tried change figure renderer, doesn't help.
Thank you!
0 Kommentare
Antworten (2)
Walter Roberson
am 3 Dez. 2012
Set the Clipping property of the uipanel to 'on'. See http://www.mathworks.com/help/matlab/ref/uipanelproperties.html#bqxrv_e_1
Jan
am 3 Dez. 2012
Bearbeitet: Jan
am 3 Dez. 2012
Try to set the Clipping property of the patch object, not of the axes. Then the patch should not be displayed outside the axes and in consequence not outside the panel also (when the axes do not exceed the panel also).
If this does not help, you could try to switch the renderer from OpenGL to ZBuffer.
1 Kommentar
Silvia
am 24 Feb. 2014
Hi Jan,
Do you know if there is a way to solve it with renderer OpenGL? the problem is that the problem is solved with Zbuffer but if Zbuffer is used the patches with transparency are lost. thank you very much
Silvia
Siehe auch
Kategorien
Mehr zu Graphics Object Programming finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!