File tree 3 files changed +15
-218
lines changed
3 files changed +15
-218
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 27
27
28
28
% POSITION
29
29
xd_range = xa .domain(2 ) - xa .domain(1 );
30
- yd_range = ya .domain(2 ) - ya .domain(1 );
31
30
xr_range = xa .range(2 ) - xa .range(1 );
31
+ if strcmp(' linear' , xa .type )
32
+ data.x = xa .domain(1 )+ (d .Extent(1 ) - xa .range(1 ))*xd_range / xr_range ;
33
+ data.x = xa .domain(1 )+ 0.5 * xd_range ;
34
+ end
35
+ if strcmp(' log' , xa .type )
36
+ data.x = xa .domain(1 )+ 0.5 * xd_range ;
37
+ end
38
+ yd_range = ya .domain(2 ) - ya .domain(1 );
32
39
yr_range = ya .range(2 ) - ya .range(1 );
33
-
34
- % use center of bounding box as reference
35
- data.x = xa .domain(1 )+ (d .Extent(1 )+d .Extent(3 )/2 - xa .range(1 ))*xd_range / xr_range ;
36
- data.y = ya .domain(1 )+ (d .Extent(2 )+d .Extent(4 )/2 - ya .range(1 ))*yd_range / yr_range ;
40
+ if strcmp(' linear' , ya .type )
41
+ data.y = ya .domain(1 )+ (d .Extent(2 ) - ya .range(1 ))*yd_range / yr_range ;
42
+ data.y = ya .domain(2 )+ 0.04 ;
43
+ end
44
+ if strcmp(' log' , ya .type )
45
+ data.y = ya .domain(2 )+ 0.04 ;
46
+ end
37
47
38
48
data.align = d .HorizontalAlignment ;
39
49
data.xanchor = ' center' ;
You can’t perform that action at this time.
0 commit comments