@@ -42,11 +42,11 @@ module.exports = {
4242 title : {
4343 valType : 'string' ,
4444 role : 'info' ,
45- editType : 'ticks' ,
45+ editType : 'ticks+margins ' ,
4646 description : 'Sets the title of this axis.'
4747 } ,
4848 titlefont : fontAttrs ( {
49- editType : 'ticks' ,
49+ editType : 'ticks+margins ' ,
5050 description : [
5151 'Sets this axis\' title font.'
5252 ] . join ( ' ' )
@@ -100,10 +100,10 @@ module.exports = {
100100 valType : 'info_array' ,
101101 role : 'info' ,
102102 items : [
103- { valType : 'any' , editType : 'plot' , impliedEdits : { '^autorange' : false } } ,
104- { valType : 'any' , editType : 'plot' , impliedEdits : { '^autorange' : false } }
103+ { valType : 'any' , editType : 'plot+margins ' , impliedEdits : { '^autorange' : false } } ,
104+ { valType : 'any' , editType : 'plot+margins ' , impliedEdits : { '^autorange' : false } }
105105 ] ,
106- editType : 'plot' ,
106+ editType : 'plot+margins ' ,
107107 impliedEdits : { 'autorange' : false } ,
108108 description : [
109109 'Sets the range of this axis.' ,
@@ -198,7 +198,7 @@ module.exports = {
198198 valType : 'enumerated' ,
199199 values : [ 'auto' , 'linear' , 'array' ] ,
200200 role : 'info' ,
201- editType : 'ticks' ,
201+ editType : 'ticks+margins ' ,
202202 impliedEdits : { tick0 : undefined , dtick : undefined } ,
203203 description : [
204204 'Sets the tick mode for this axis.' ,
@@ -216,7 +216,7 @@ module.exports = {
216216 min : 0 ,
217217 dflt : 0 ,
218218 role : 'style' ,
219- editType : 'ticks' ,
219+ editType : 'ticks+margins ' ,
220220 description : [
221221 'Specifies the maximum number of ticks for the particular axis.' ,
222222 'The actual number of ticks will be chosen automatically to be' ,
@@ -227,7 +227,7 @@ module.exports = {
227227 tick0 : {
228228 valType : 'any' ,
229229 role : 'style' ,
230- editType : 'ticks' ,
230+ editType : 'ticks+margins ' ,
231231 impliedEdits : { tickmode : 'linear' } ,
232232 description : [
233233 'Sets the placement of the first tick on this axis.' ,
@@ -243,7 +243,7 @@ module.exports = {
243243 dtick : {
244244 valType : 'any' ,
245245 role : 'style' ,
246- editType : 'ticks' ,
246+ editType : 'ticks+margins ' ,
247247 impliedEdits : { tickmode : 'linear' } ,
248248 description : [
249249 'Sets the step in-between ticks on this axis. Use with `tick0`.' ,
@@ -269,7 +269,7 @@ module.exports = {
269269 } ,
270270 tickvals : {
271271 valType : 'data_array' ,
272- editType : 'ticks' ,
272+ editType : 'ticks+margins ' ,
273273 description : [
274274 'Sets the values at which ticks on this axis appear.' ,
275275 'Only has an effect if `tickmode` is set to *array*.' ,
@@ -278,7 +278,7 @@ module.exports = {
278278 } ,
279279 ticktext : {
280280 valType : 'data_array' ,
281- editType : 'ticks' ,
281+ editType : 'ticks+margins ' ,
282282 description : [
283283 'Sets the text displayed at the ticks position via `tickvals`.' ,
284284 'Only has an effect if `tickmode` is set to *array*.' ,
@@ -289,7 +289,7 @@ module.exports = {
289289 valType : 'enumerated' ,
290290 values : [ 'outside' , 'inside' , '' ] ,
291291 role : 'style' ,
292- editType : 'ticks' ,
292+ editType : 'ticks+margins ' ,
293293 description : [
294294 'Determines whether ticks are drawn or not.' ,
295295 'If **, this axis\' ticks are not drawn.' ,
@@ -341,9 +341,19 @@ module.exports = {
341341 valType : 'boolean' ,
342342 dflt : true ,
343343 role : 'style' ,
344- editType : 'ticks' ,
344+ editType : 'ticks+margins ' ,
345345 description : 'Determines whether or not the tick labels are drawn.'
346346 } ,
347+ automargin : {
348+ valType : 'boolean' ,
349+ dflt : false ,
350+ role : 'style' ,
351+ editType : 'ticks+margins' ,
352+ description : [
353+ 'Determines whether long tick labels automatically grow the figure' ,
354+ 'margins.'
355+ ] . join ( ' ' )
356+ } ,
347357 showspikes : {
348358 valType : 'boolean' ,
349359 dflt : false ,
@@ -396,14 +406,14 @@ module.exports = {
396406 description : 'Determines whether spikelines are stuck to the cursor or to the closest datapoints.'
397407 } ,
398408 tickfont : fontAttrs ( {
399- editType : 'ticks' ,
409+ editType : 'ticks+margins ' ,
400410 description : 'Sets the tick font.'
401411 } ) ,
402412 tickangle : {
403413 valType : 'angle' ,
404414 dflt : 'auto' ,
405415 role : 'style' ,
406- editType : 'ticks' ,
416+ editType : 'ticks+margins ' ,
407417 description : [
408418 'Sets the angle of the tick labels with respect to the horizontal.' ,
409419 'For example, a `tickangle` of -90 draws the tick labels' ,
@@ -414,15 +424,15 @@ module.exports = {
414424 valType : 'string' ,
415425 dflt : '' ,
416426 role : 'style' ,
417- editType : 'ticks' ,
427+ editType : 'ticks+margins ' ,
418428 description : 'Sets a tick label prefix.'
419429 } ,
420430 showtickprefix : {
421431 valType : 'enumerated' ,
422432 values : [ 'all' , 'first' , 'last' , 'none' ] ,
423433 dflt : 'all' ,
424434 role : 'style' ,
425- editType : 'ticks' ,
435+ editType : 'ticks+margins ' ,
426436 description : [
427437 'If *all*, all tick labels are displayed with a prefix.' ,
428438 'If *first*, only the first tick is displayed with a prefix.' ,
@@ -434,23 +444,23 @@ module.exports = {
434444 valType : 'string' ,
435445 dflt : '' ,
436446 role : 'style' ,
437- editType : 'ticks' ,
447+ editType : 'ticks+margins ' ,
438448 description : 'Sets a tick label suffix.'
439449 } ,
440450 showticksuffix : {
441451 valType : 'enumerated' ,
442452 values : [ 'all' , 'first' , 'last' , 'none' ] ,
443453 dflt : 'all' ,
444454 role : 'style' ,
445- editType : 'ticks' ,
455+ editType : 'ticks+margins ' ,
446456 description : 'Same as `showtickprefix` but for tick suffixes.'
447457 } ,
448458 showexponent : {
449459 valType : 'enumerated' ,
450460 values : [ 'all' , 'first' , 'last' , 'none' ] ,
451461 dflt : 'all' ,
452462 role : 'style' ,
453- editType : 'ticks' ,
463+ editType : 'ticks+margins ' ,
454464 description : [
455465 'If *all*, all exponents are shown besides their significands.' ,
456466 'If *first*, only the exponent of the first tick is shown.' ,
@@ -463,7 +473,7 @@ module.exports = {
463473 values : [ 'none' , 'e' , 'E' , 'power' , 'SI' , 'B' ] ,
464474 dflt : 'B' ,
465475 role : 'style' ,
466- editType : 'ticks' ,
476+ editType : 'ticks+margins ' ,
467477 description : [
468478 'Determines a formatting rule for the tick exponents.' ,
469479 'For example, consider the number 1,000,000,000.' ,
@@ -479,7 +489,7 @@ module.exports = {
479489 valType : 'boolean' ,
480490 dflt : false ,
481491 role : 'style' ,
482- editType : 'ticks' ,
492+ editType : 'ticks+margins ' ,
483493 description : [
484494 'If "true", even 4-digit integers are separated'
485495 ] . join ( ' ' )
@@ -488,7 +498,7 @@ module.exports = {
488498 valType : 'string' ,
489499 dflt : '' ,
490500 role : 'style' ,
491- editType : 'ticks' ,
501+ editType : 'ticks+margins ' ,
492502 description : [
493503 'Sets the tick label formatting rule using d3 formatting mini-languages' ,
494504 'which are very similar to those in Python. For numbers, see:' ,
@@ -507,10 +517,10 @@ module.exports = {
507517 valType : 'info_array' ,
508518 role : 'info' ,
509519 items : [
510- { valType : 'any' , editType : 'ticks' } ,
511- { valType : 'any' , editType : 'ticks' }
520+ { valType : 'any' , editType : 'ticks+margins ' } ,
521+ { valType : 'any' , editType : 'ticks+margins ' }
512522 ] ,
513- editType : 'ticks' ,
523+ editType : 'ticks+margins ' ,
514524 description : [
515525 'range [*min*, *max*], where *min*, *max* - dtick values' ,
516526 'which describe some zoom level, it is possible to omit *min*' ,
@@ -521,12 +531,12 @@ module.exports = {
521531 valType : 'string' ,
522532 dflt : '' ,
523533 role : 'style' ,
524- editType : 'ticks' ,
534+ editType : 'ticks+margins ' ,
525535 description : [
526536 'string - dtickformat for described zoom level, the same as *tickformat*'
527537 ] . join ( ' ' )
528538 } ,
529- editType : 'ticks'
539+ editType : 'ticks+margins '
530540 } ,
531541 hoverformat : {
532542 valType : 'string' ,
@@ -628,7 +638,7 @@ module.exports = {
628638 constants . idRegex . y . toString ( )
629639 ] ,
630640 role : 'info' ,
631- editType : 'plot' ,
641+ editType : 'plot+margins ' ,
632642 description : [
633643 'If set to an opposite-letter axis id (e.g. `x2`, `y`), this axis is bound to' ,
634644 'the corresponding opposite-letter axis.' ,
@@ -641,7 +651,7 @@ module.exports = {
641651 valType : 'enumerated' ,
642652 values : [ 'top' , 'bottom' , 'left' , 'right' ] ,
643653 role : 'info' ,
644- editType : 'plot' ,
654+ editType : 'plot+margins ' ,
645655 description : [
646656 'Determines whether a x (y) axis is positioned' ,
647657 'at the *bottom* (*left*) or *top* (*right*)' ,
@@ -685,11 +695,11 @@ module.exports = {
685695 valType : 'info_array' ,
686696 role : 'info' ,
687697 items : [
688- { valType : 'number' , min : 0 , max : 1 , editType : 'plot' } ,
689- { valType : 'number' , min : 0 , max : 1 , editType : 'plot' }
698+ { valType : 'number' , min : 0 , max : 1 , editType : 'plot+margins ' } ,
699+ { valType : 'number' , min : 0 , max : 1 , editType : 'plot+margins ' }
690700 ] ,
691701 dflt : [ 0 , 1 ] ,
692- editType : 'plot' ,
702+ editType : 'plot+margins ' ,
693703 description : [
694704 'Sets the domain of this axis (in plot fraction).'
695705 ] . join ( ' ' )
@@ -700,7 +710,7 @@ module.exports = {
700710 max : 1 ,
701711 dflt : 0 ,
702712 role : 'style' ,
703- editType : 'plot' ,
713+ editType : 'plot+margins ' ,
704714 description : [
705715 'Sets the position of this axis in the plotting space' ,
706716 '(in normalized coordinates).' ,
@@ -744,7 +754,7 @@ module.exports = {
744754 autotick : {
745755 valType : 'boolean' ,
746756 role : 'info' ,
747- editType : 'ticks' ,
757+ editType : 'ticks+margins ' ,
748758 description : [
749759 'Obsolete.' ,
750760 'Set `tickmode` to *auto* for old `autotick` *true* behavior.' ,
0 commit comments