File tree Expand file tree Collapse file tree 2 files changed +12
-17
lines changed Expand file tree Collapse file tree 2 files changed +12
-17
lines changed Original file line number Diff line number Diff line change 6060 obj.PlotOptions.AspectRatio = [];
6161 obj.PlotOptions.CameraEye = [];
6262 obj.PlotOptions.is_headmap_axis = false ;
63- obj.PlotOptions.Quality = - 1 ;
64- obj.PlotOptions.Zmin = [];
6563 obj.PlotOptions.FrameDuration = 1 ; % in ms.
6664 obj.PlotOptions.FrameTransitionDuration = 0 ; % in ms.
6765 obj.PlotOptions.geoRenderType = ' geo' ;
66+ obj.PlotOptions.DomainFactor = [1 1 1 1 ];
6867
6968 % offline options
7069 obj.PlotOptions.Offline = true ;
274273 if (strcmpi(varargin{a },' geoRenderType' ))
275274 obj.PlotOptions.geoRenderType = varargin{a + 1 };
276275 end
276+ if (strcmpi(varargin{a },' DomainFactor' ))
277+ len = length(varargin{a + 1 });
278+ obj .PlotOptions .DomainFactor(1 : len ) = varargin{a + 1 };
279+ end
277280 end
278281 end
279282
Original file line number Diff line number Diff line change 8989
9090% -------------------------------------------------------------------------%
9191
92- % -getting and setting postion data-%
93- xo = axisData .Position(1 );
94- yo = axisData .Position(2 );
95- w = axisData .Position(3 );
96- h = axisData .Position(4 );
97-
98- if obj .PlotOptions .AxisEqual
99- wh = min(axisData .Position(3 : 4 ));
100- w = wh ;
101- h = wh ;
102- end
92+ % -get position data-%
93+ axisPos = axisData .Position .* obj .PlotOptions .DomainFactor ;
94+ if obj .PlotOptions .AxisEqual , axisPos(3 : 4 ) = min(axisPos(3 : 4 )); end
10395
10496% -------------------------------------------------------------------------%
10597
10698% -xaxis domain-%
107- xaxis.domain = min([xo xo + w ], 1 );
108- scene.domain.x = min([ xo xo + w ], 1 ) ;
99+ xaxis.domain = min([axisPos( 1 ) sum(axisPos([ 1 , 3 ]))], 1 );
100+ scene.domain.x = xaxis . domain ;
109101
110102% -------------------------------------------------------------------------%
111103
112104% -yaxis domain-%
113- yaxis.domain = min([yo yo + h ], 1 );
114- scene.domain.y = min([ yo yo + h ], 1 ) ;
105+ yaxis.domain = min([axisPos( 2 ) sum(axisPos([ 2 , 4 ]))], 1 );
106+ scene.domain.y = yaxis . domain ;
115107
116108% -------------------------------------------------------------------------%
117109
You can’t perform that action at this time.
0 commit comments