File tree 2 files changed +6
-2
lines changed
Filter options
2 files changed +6
-2
lines changed
Original file line number Diff line number Diff line change @@ -123,7 +123,9 @@ proto.merge = function(options) {
123
123
124
124
this . tickEnable [ i + j ] = false ;
125
125
this . tickColor [ i + j ] = str2RGBArray ( ( ax . tickfont || { } ) . color ) ;
126
- this . tickAngle [ i + j ] = ( ax . tickangle === 'auto' ) ? 0 : - ax . tickangle ;
126
+ this . tickAngle [ i + j ] = ( ax . tickangle === 'auto' ) ?
127
+ 0 :
128
+ Math . PI * - ax . tickangle / 180 ;
127
129
this . tickPad [ i + j ] = this . getTickPad ( ax ) ;
128
130
129
131
this . tickMarkLength [ i + j ] = 0 ;
Original file line number Diff line number Diff line change @@ -109,7 +109,9 @@ proto.merge = function(sceneLayout) {
109
109
if ( 'tickcolor' in axes ) opts . lineTickColor [ i ] = str2RgbaArray ( axes . tickcolor ) ;
110
110
if ( 'tickwidth' in axes ) opts . lineTickWidth [ i ] = axes . tickwidth ;
111
111
if ( 'tickangle' in axes ) {
112
- opts . tickAngle [ i ] = axes . tickangle === 'auto' ? 0 : axes . tickangle ;
112
+ opts . tickAngle [ i ] = ( axes . tickangle === 'auto' ) ?
113
+ 0 :
114
+ Math . PI * - axes . tickangle / 180 ;
113
115
}
114
116
//// tick labels
115
117
if ( 'showticklabels' in axes ) opts . tickEnable [ i ] = axes . showticklabels ;
You can’t perform that action at this time.
0 commit comments