-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathcarpet_gen.go
1699 lines (1441 loc) · 72.9 KB
/
carpet_gen.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
package grob
// Code generated by go-plotly/generator. DO NOT EDIT.
import (
"encoding/json"
"github.com/MetalBlueberry/go-plotly/pkg/types"
)
var TraceTypeCarpet types.TraceType = "carpet"
func (t *Carpet) GetType() types.TraceType {
return TraceTypeCarpet
}
func (t *Carpet) MarshalJSON() ([]byte, error) {
// Define the custom JSON structure including the "type" field
type Alias Carpet
return json.Marshal(&struct {
Type types.TraceType `json:"type"`
*Alias
}{
Type: t.GetType(), // Add your desired default value here
Alias: (*Alias)(t), // Embed the original struct fields
})
}
// Carpet The data describing carpet axis layout is set in `y` and (optionally) also `x`. If only `y` is present, `x` the plot is interpreted as a cheater plot and is filled in using the `y` values. `x` and `y` may either be 2D arrays matching with each dimension matching that of `a` and `b`, or they may be 1D arrays with total length equal to that of `a` and `b`.
type Carpet struct {
// A
// arrayOK: false
// type: data_array
// An array containing values of the first parameter value
// use types.DataArray to pass any slice of data
// use types.BDataArray to pass data in binary format as provided by numpy
// .schema.traces.carpet.attributes.a
A *types.DataArrayType `json:"a,omitempty"`
// A0
// arrayOK: false
// type: number
// Alternate to `a`. Builds a linear space of a coordinates. Use with `da` where `a0` is the starting coordinate and `da` the step.
// .schema.traces.carpet.attributes.a0
A0 types.NumberType `json:"a0,omitempty"`
// Aaxis
// arrayOK: false
// role: Object
// .schema.traces.carpet.attributes.aaxis
Aaxis *CarpetAaxis `json:"aaxis,omitempty"`
// Asrc
// arrayOK: false
// type: string
// Sets the source reference on Chart Studio Cloud for `a`.
// .schema.traces.carpet.attributes.asrc
Asrc types.StringType `json:"asrc,omitempty"`
// B
// arrayOK: false
// type: data_array
// A two dimensional array of y coordinates at each carpet point.
// use types.DataArray to pass any slice of data
// use types.BDataArray to pass data in binary format as provided by numpy
// .schema.traces.carpet.attributes.b
B *types.DataArrayType `json:"b,omitempty"`
// B0
// arrayOK: false
// type: number
// Alternate to `b`. Builds a linear space of a coordinates. Use with `db` where `b0` is the starting coordinate and `db` the step.
// .schema.traces.carpet.attributes.b0
B0 types.NumberType `json:"b0,omitempty"`
// Baxis
// arrayOK: false
// role: Object
// .schema.traces.carpet.attributes.baxis
Baxis *CarpetBaxis `json:"baxis,omitempty"`
// Bsrc
// arrayOK: false
// type: string
// Sets the source reference on Chart Studio Cloud for `b`.
// .schema.traces.carpet.attributes.bsrc
Bsrc types.StringType `json:"bsrc,omitempty"`
// Carpet
// arrayOK: false
// type: string
// An identifier for this carpet, so that `scattercarpet` and `contourcarpet` traces can specify a carpet plot on which they lie
// .schema.traces.carpet.attributes.carpet
Carpet types.StringType `json:"carpet,omitempty"`
// Cheaterslope
// arrayOK: false
// type: number
// The shift applied to each successive row of data in creating a cheater plot. Only used if `x` is been omitted.
// .schema.traces.carpet.attributes.cheaterslope
Cheaterslope types.NumberType `json:"cheaterslope,omitempty"`
// Color
// arrayOK: false
// type: color
// Sets default for all colors associated with this axis all at once: line, font, tick, and grid colors. Grid color is lightened by blending this with the plot background Individual pieces can override this.
// .schema.traces.carpet.attributes.color
Color types.Color `json:"color,omitempty"`
// Customdata
// arrayOK: false
// type: data_array
// Assigns extra data each datum. This may be useful when listening to hover, click and selection events. Note that, *scatter* traces also appends customdata items in the markers DOM elements
// use types.DataArray to pass any slice of data
// use types.BDataArray to pass data in binary format as provided by numpy
// .schema.traces.carpet.attributes.customdata
Customdata *types.DataArrayType `json:"customdata,omitempty"`
// Customdatasrc
// arrayOK: false
// type: string
// Sets the source reference on Chart Studio Cloud for `customdata`.
// .schema.traces.carpet.attributes.customdatasrc
Customdatasrc types.StringType `json:"customdatasrc,omitempty"`
// Da
// arrayOK: false
// type: number
// Sets the a coordinate step. See `a0` for more info.
// .schema.traces.carpet.attributes.da
Da types.NumberType `json:"da,omitempty"`
// Db
// arrayOK: false
// type: number
// Sets the b coordinate step. See `b0` for more info.
// .schema.traces.carpet.attributes.db
Db types.NumberType `json:"db,omitempty"`
// Font
// arrayOK: false
// role: Object
// .schema.traces.carpet.attributes.font
Font *CarpetFont `json:"font,omitempty"`
// Ids
// arrayOK: false
// type: data_array
// Assigns id labels to each datum. These ids for object constancy of data points during animation. Should be an array of strings, not numbers or any other type.
// use types.DataArray to pass any slice of data
// use types.BDataArray to pass data in binary format as provided by numpy
// .schema.traces.carpet.attributes.ids
Ids *types.DataArrayType `json:"ids,omitempty"`
// Idssrc
// arrayOK: false
// type: string
// Sets the source reference on Chart Studio Cloud for `ids`.
// .schema.traces.carpet.attributes.idssrc
Idssrc types.StringType `json:"idssrc,omitempty"`
// Legend
// arrayOK: false
// type: subplotid
// Sets the reference to a legend to show this trace in. References to these legends are *legend*, *legend2*, *legend3*, etc. Settings for these legends are set in the layout, under `layout.legend`, `layout.legend2`, etc.
// .schema.traces.carpet.attributes.legend
Legend types.StringType `json:"legend,omitempty"`
// Legendgrouptitle
// arrayOK: false
// role: Object
// .schema.traces.carpet.attributes.legendgrouptitle
Legendgrouptitle *CarpetLegendgrouptitle `json:"legendgrouptitle,omitempty"`
// Legendrank
// arrayOK: false
// type: number
// Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with *reversed* `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items. When having unranked or equal rank items shapes would be displayed after traces i.e. according to their order in data and layout.
// .schema.traces.carpet.attributes.legendrank
Legendrank types.NumberType `json:"legendrank,omitempty"`
// Legendwidth
// arrayOK: false
// type: number
// Sets the width (in px or fraction) of the legend for this trace.
// .schema.traces.carpet.attributes.legendwidth
Legendwidth types.NumberType `json:"legendwidth,omitempty"`
// Meta
// arrayOK: true
// type: any
// Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index.
// .schema.traces.carpet.attributes.meta
Meta *types.ArrayOK[*interface{}] `json:"meta,omitempty"`
// Metasrc
// arrayOK: false
// type: string
// Sets the source reference on Chart Studio Cloud for `meta`.
// .schema.traces.carpet.attributes.metasrc
Metasrc types.StringType `json:"metasrc,omitempty"`
// Name
// arrayOK: false
// type: string
// Sets the trace name. The trace name appears as the legend item and on hover.
// .schema.traces.carpet.attributes.name
Name types.StringType `json:"name,omitempty"`
// Opacity
// arrayOK: false
// type: number
// Sets the opacity of the trace.
// .schema.traces.carpet.attributes.opacity
Opacity types.NumberType `json:"opacity,omitempty"`
// Stream
// arrayOK: false
// role: Object
// .schema.traces.carpet.attributes.stream
Stream *CarpetStream `json:"stream,omitempty"`
// Uid
// arrayOK: false
// type: string
// Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions.
// .schema.traces.carpet.attributes.uid
Uid types.StringType `json:"uid,omitempty"`
// Uirevision
// arrayOK: false
// type: any
// Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves.
// .schema.traces.carpet.attributes.uirevision
Uirevision interface{} `json:"uirevision,omitempty"`
// Visible
// arrayOK: false
// default: %!s(bool=true)
// type: enumerated
// Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible).
// .schema.traces.carpet.attributes.visible
Visible CarpetVisible `json:"visible,omitempty"`
// X
// arrayOK: false
// type: data_array
// A two dimensional array of x coordinates at each carpet point. If omitted, the plot is a cheater plot and the xaxis is hidden by default.
// use types.DataArray to pass any slice of data
// use types.BDataArray to pass data in binary format as provided by numpy
// .schema.traces.carpet.attributes.x
X *types.DataArrayType `json:"x,omitempty"`
// Xaxis
// arrayOK: false
// type: subplotid
// Sets a reference between this trace's x coordinates and a 2D cartesian x axis. If *x* (the default value), the x coordinates refer to `layout.xaxis`. If *x2*, the x coordinates refer to `layout.xaxis2`, and so on.
// .schema.traces.carpet.attributes.xaxis
Xaxis types.StringType `json:"xaxis,omitempty"`
// Xsrc
// arrayOK: false
// type: string
// Sets the source reference on Chart Studio Cloud for `x`.
// .schema.traces.carpet.attributes.xsrc
Xsrc types.StringType `json:"xsrc,omitempty"`
// Y
// arrayOK: false
// type: data_array
// A two dimensional array of y coordinates at each carpet point.
// use types.DataArray to pass any slice of data
// use types.BDataArray to pass data in binary format as provided by numpy
// .schema.traces.carpet.attributes.y
Y *types.DataArrayType `json:"y,omitempty"`
// Yaxis
// arrayOK: false
// type: subplotid
// Sets a reference between this trace's y coordinates and a 2D cartesian y axis. If *y* (the default value), the y coordinates refer to `layout.yaxis`. If *y2*, the y coordinates refer to `layout.yaxis2`, and so on.
// .schema.traces.carpet.attributes.yaxis
Yaxis types.StringType `json:"yaxis,omitempty"`
// Ysrc
// arrayOK: false
// type: string
// Sets the source reference on Chart Studio Cloud for `y`.
// .schema.traces.carpet.attributes.ysrc
Ysrc types.StringType `json:"ysrc,omitempty"`
}
// CarpetAaxisTickfont Sets the tick font.
type CarpetAaxisTickfont struct {
// Color
// arrayOK: false
// type: color
//
// .schema.traces.carpet.attributes.aaxis.tickfont.color
Color types.Color `json:"color,omitempty"`
// Family
// arrayOK: false
// type: string
// HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.
// .schema.traces.carpet.attributes.aaxis.tickfont.family
Family types.StringType `json:"family,omitempty"`
// Size
// arrayOK: false
// type: number
//
// .schema.traces.carpet.attributes.aaxis.tickfont.size
Size types.NumberType `json:"size,omitempty"`
}
// CarpetAaxisTickformatstop
type CarpetAaxisTickformatstop struct {
// Dtickrange
// arrayOK: false
// type: info_array
// range [*min*, *max*], where *min*, *max* - dtick values which describe some zoom level, it is possible to omit *min* or *max* value by passing *null*
// .schema.traces.carpet.attributes.aaxis.tickformatstops.items.tickformatstop.dtickrange
Dtickrange interface{} `json:"dtickrange,omitempty"`
// Enabled
// arrayOK: false
// type: boolean
// Determines whether or not this stop is used. If `false`, this stop is ignored even within its `dtickrange`.
// .schema.traces.carpet.attributes.aaxis.tickformatstops.items.tickformatstop.enabled
Enabled types.BoolType `json:"enabled,omitempty"`
// Name
// arrayOK: false
// type: string
// When used in a template, named items are created in the output figure in addition to any items the figure already has in this array. You can modify these items in the output figure by making your own item with `templateitemname` matching this `name` alongside your modifications (including `visible: false` or `enabled: false` to hide it). Has no effect outside of a template.
// .schema.traces.carpet.attributes.aaxis.tickformatstops.items.tickformatstop.name
Name types.StringType `json:"name,omitempty"`
// Templateitemname
// arrayOK: false
// type: string
// Used to refer to a named item in this array in the template. Named items from the template will be created even without a matching item in the input figure, but you can modify one by making an item with `templateitemname` matching its `name`, alongside your modifications (including `visible: false` or `enabled: false` to hide it). If there is no template or no matching item, this item will be hidden unless you explicitly show it with `visible: true`.
// .schema.traces.carpet.attributes.aaxis.tickformatstops.items.tickformatstop.templateitemname
Templateitemname types.StringType `json:"templateitemname,omitempty"`
// Value
// arrayOK: false
// type: string
// string - dtickformat for described zoom level, the same as *tickformat*
// .schema.traces.carpet.attributes.aaxis.tickformatstops.items.tickformatstop.value
Value types.StringType `json:"value,omitempty"`
}
// CarpetAaxisTitleFont Sets this axis' title font. Note that the title's font used to be set by the now deprecated `titlefont` attribute.
type CarpetAaxisTitleFont struct {
// Color
// arrayOK: false
// type: color
//
// .schema.traces.carpet.attributes.aaxis.title.font.color
Color types.Color `json:"color,omitempty"`
// Family
// arrayOK: false
// type: string
// HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.
// .schema.traces.carpet.attributes.aaxis.title.font.family
Family types.StringType `json:"family,omitempty"`
// Size
// arrayOK: false
// type: number
//
// .schema.traces.carpet.attributes.aaxis.title.font.size
Size types.NumberType `json:"size,omitempty"`
}
// CarpetAaxisTitle
type CarpetAaxisTitle struct {
// Font
// arrayOK: false
// role: Object
// .schema.traces.carpet.attributes.aaxis.title.font
Font *CarpetAaxisTitleFont `json:"font,omitempty"`
// Offset
// arrayOK: false
// type: number
// An additional amount by which to offset the title from the tick labels, given in pixels. Note that this used to be set by the now deprecated `titleoffset` attribute.
// .schema.traces.carpet.attributes.aaxis.title.offset
Offset types.NumberType `json:"offset,omitempty"`
// Text
// arrayOK: false
// type: string
// Sets the title of this axis. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated.
// .schema.traces.carpet.attributes.aaxis.title.text
Text types.StringType `json:"text,omitempty"`
}
// CarpetAaxis
type CarpetAaxis struct {
// Arraydtick
// arrayOK: false
// type: integer
// The stride between grid lines along the axis
// .schema.traces.carpet.attributes.aaxis.arraydtick
Arraydtick types.IntegerType `json:"arraydtick,omitempty"`
// Arraytick0
// arrayOK: false
// type: integer
// The starting index of grid lines along the axis
// .schema.traces.carpet.attributes.aaxis.arraytick0
Arraytick0 types.IntegerType `json:"arraytick0,omitempty"`
// Autorange
// arrayOK: false
// default: %!s(bool=true)
// type: enumerated
// Determines whether or not the range of this axis is computed in relation to the input data. See `rangemode` for more info. If `range` is provided, then `autorange` is set to *false*.
// .schema.traces.carpet.attributes.aaxis.autorange
Autorange CarpetAaxisAutorange `json:"autorange,omitempty"`
// Autotypenumbers
// arrayOK: false
// default: convert types
// type: enumerated
// Using *strict* a numeric string in trace data is not converted to a number. Using *convert types* a numeric string in trace data may be treated as a number during automatic axis `type` detection. Defaults to layout.autotypenumbers.
// .schema.traces.carpet.attributes.aaxis.autotypenumbers
Autotypenumbers CarpetAaxisAutotypenumbers `json:"autotypenumbers,omitempty"`
// Categoryarray
// arrayOK: false
// type: data_array
// Sets the order in which categories on this axis appear. Only has an effect if `categoryorder` is set to *array*. Used with `categoryorder`.
// use types.DataArray to pass any slice of data
// use types.BDataArray to pass data in binary format as provided by numpy
// .schema.traces.carpet.attributes.aaxis.categoryarray
Categoryarray *types.DataArrayType `json:"categoryarray,omitempty"`
// Categoryarraysrc
// arrayOK: false
// type: string
// Sets the source reference on Chart Studio Cloud for `categoryarray`.
// .schema.traces.carpet.attributes.aaxis.categoryarraysrc
Categoryarraysrc types.StringType `json:"categoryarraysrc,omitempty"`
// Categoryorder
// arrayOK: false
// default: trace
// type: enumerated
// Specifies the ordering logic for the case of categorical variables. By default, plotly uses *trace*, which specifies the order that is present in the data supplied. Set `categoryorder` to *category ascending* or *category descending* if order should be determined by the alphanumerical order of the category names. Set `categoryorder` to *array* to derive the ordering from the attribute `categoryarray`. If a category is not found in the `categoryarray` array, the sorting behavior for that attribute will be identical to the *trace* mode. The unspecified categories will follow the categories in `categoryarray`.
// .schema.traces.carpet.attributes.aaxis.categoryorder
Categoryorder CarpetAaxisCategoryorder `json:"categoryorder,omitempty"`
// Cheatertype
// arrayOK: false
// default: value
// type: enumerated
//
// .schema.traces.carpet.attributes.aaxis.cheatertype
Cheatertype CarpetAaxisCheatertype `json:"cheatertype,omitempty"`
// Color
// arrayOK: false
// type: color
// Sets default for all colors associated with this axis all at once: line, font, tick, and grid colors. Grid color is lightened by blending this with the plot background Individual pieces can override this.
// .schema.traces.carpet.attributes.aaxis.color
Color types.Color `json:"color,omitempty"`
// Dtick
// arrayOK: false
// type: number
// The stride between grid lines along the axis
// .schema.traces.carpet.attributes.aaxis.dtick
Dtick types.NumberType `json:"dtick,omitempty"`
// Endline
// arrayOK: false
// type: boolean
// Determines whether or not a line is drawn at along the final value of this axis. If *true*, the end line is drawn on top of the grid lines.
// .schema.traces.carpet.attributes.aaxis.endline
Endline types.BoolType `json:"endline,omitempty"`
// Endlinecolor
// arrayOK: false
// type: color
// Sets the line color of the end line.
// .schema.traces.carpet.attributes.aaxis.endlinecolor
Endlinecolor types.Color `json:"endlinecolor,omitempty"`
// Endlinewidth
// arrayOK: false
// type: number
// Sets the width (in px) of the end line.
// .schema.traces.carpet.attributes.aaxis.endlinewidth
Endlinewidth types.NumberType `json:"endlinewidth,omitempty"`
// Exponentformat
// arrayOK: false
// default: B
// type: enumerated
// Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B.
// .schema.traces.carpet.attributes.aaxis.exponentformat
Exponentformat CarpetAaxisExponentformat `json:"exponentformat,omitempty"`
// Fixedrange
// arrayOK: false
// type: boolean
// Determines whether or not this axis is zoom-able. If true, then zoom is disabled.
// .schema.traces.carpet.attributes.aaxis.fixedrange
Fixedrange types.BoolType `json:"fixedrange,omitempty"`
// Gridcolor
// arrayOK: false
// type: color
// Sets the axis line color.
// .schema.traces.carpet.attributes.aaxis.gridcolor
Gridcolor types.Color `json:"gridcolor,omitempty"`
// Griddash
// arrayOK: false
// type: string
// Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*).
// .schema.traces.carpet.attributes.aaxis.griddash
Griddash types.StringType `json:"griddash,omitempty"`
// Gridwidth
// arrayOK: false
// type: number
// Sets the width (in px) of the axis line.
// .schema.traces.carpet.attributes.aaxis.gridwidth
Gridwidth types.NumberType `json:"gridwidth,omitempty"`
// Labelalias
// arrayOK: false
// type: any
// Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. For negative numbers the minus sign symbol used (U+2212) is wider than the regular ascii dash. That means you need to use −1 instead of -1. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.
// .schema.traces.carpet.attributes.aaxis.labelalias
Labelalias interface{} `json:"labelalias,omitempty"`
// Labelpadding
// arrayOK: false
// type: integer
// Extra padding between label and the axis
// .schema.traces.carpet.attributes.aaxis.labelpadding
Labelpadding types.IntegerType `json:"labelpadding,omitempty"`
// Labelprefix
// arrayOK: false
// type: string
// Sets a axis label prefix.
// .schema.traces.carpet.attributes.aaxis.labelprefix
Labelprefix types.StringType `json:"labelprefix,omitempty"`
// Labelsuffix
// arrayOK: false
// type: string
// Sets a axis label suffix.
// .schema.traces.carpet.attributes.aaxis.labelsuffix
Labelsuffix types.StringType `json:"labelsuffix,omitempty"`
// Linecolor
// arrayOK: false
// type: color
// Sets the axis line color.
// .schema.traces.carpet.attributes.aaxis.linecolor
Linecolor types.Color `json:"linecolor,omitempty"`
// Linewidth
// arrayOK: false
// type: number
// Sets the width (in px) of the axis line.
// .schema.traces.carpet.attributes.aaxis.linewidth
Linewidth types.NumberType `json:"linewidth,omitempty"`
// Minexponent
// arrayOK: false
// type: number
// Hide SI prefix for 10^n if |n| is below this number
// .schema.traces.carpet.attributes.aaxis.minexponent
Minexponent types.NumberType `json:"minexponent,omitempty"`
// Minorgridcolor
// arrayOK: false
// type: color
// Sets the color of the grid lines.
// .schema.traces.carpet.attributes.aaxis.minorgridcolor
Minorgridcolor types.Color `json:"minorgridcolor,omitempty"`
// Minorgridcount
// arrayOK: false
// type: integer
// Sets the number of minor grid ticks per major grid tick
// .schema.traces.carpet.attributes.aaxis.minorgridcount
Minorgridcount types.IntegerType `json:"minorgridcount,omitempty"`
// Minorgriddash
// arrayOK: false
// type: string
// Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*).
// .schema.traces.carpet.attributes.aaxis.minorgriddash
Minorgriddash types.StringType `json:"minorgriddash,omitempty"`
// Minorgridwidth
// arrayOK: false
// type: number
// Sets the width (in px) of the grid lines.
// .schema.traces.carpet.attributes.aaxis.minorgridwidth
Minorgridwidth types.NumberType `json:"minorgridwidth,omitempty"`
// Nticks
// arrayOK: false
// type: integer
// Specifies the maximum number of ticks for the particular axis. The actual number of ticks will be chosen automatically to be less than or equal to `nticks`. Has an effect only if `tickmode` is set to *auto*.
// .schema.traces.carpet.attributes.aaxis.nticks
Nticks types.IntegerType `json:"nticks,omitempty"`
// Range
// arrayOK: false
// type: info_array
// Sets the range of this axis. If the axis `type` is *log*, then you must take the log of your desired range (e.g. to set the range from 1 to 100, set the range from 0 to 2). If the axis `type` is *date*, it should be date strings, like date data, though Date objects and unix milliseconds will be accepted and converted to strings. If the axis `type` is *category*, it should be numbers, using the scale where each category is assigned a serial number from zero in the order it appears.
// .schema.traces.carpet.attributes.aaxis.range
Range interface{} `json:"range,omitempty"`
// Rangemode
// arrayOK: false
// default: normal
// type: enumerated
// If *normal*, the range is computed in relation to the extrema of the input data. If *tozero*`, the range extends to 0, regardless of the input data If *nonnegative*, the range is non-negative, regardless of the input data.
// .schema.traces.carpet.attributes.aaxis.rangemode
Rangemode CarpetAaxisRangemode `json:"rangemode,omitempty"`
// Separatethousands
// arrayOK: false
// type: boolean
// If "true", even 4-digit integers are separated
// .schema.traces.carpet.attributes.aaxis.separatethousands
Separatethousands types.BoolType `json:"separatethousands,omitempty"`
// Showexponent
// arrayOK: false
// default: all
// type: enumerated
// If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear.
// .schema.traces.carpet.attributes.aaxis.showexponent
Showexponent CarpetAaxisShowexponent `json:"showexponent,omitempty"`
// Showgrid
// arrayOK: false
// type: boolean
// Determines whether or not grid lines are drawn. If *true*, the grid lines are drawn at every tick mark.
// .schema.traces.carpet.attributes.aaxis.showgrid
Showgrid types.BoolType `json:"showgrid,omitempty"`
// Showline
// arrayOK: false
// type: boolean
// Determines whether or not a line bounding this axis is drawn.
// .schema.traces.carpet.attributes.aaxis.showline
Showline types.BoolType `json:"showline,omitempty"`
// Showticklabels
// arrayOK: false
// default: start
// type: enumerated
// Determines whether axis labels are drawn on the low side, the high side, both, or neither side of the axis.
// .schema.traces.carpet.attributes.aaxis.showticklabels
Showticklabels CarpetAaxisShowticklabels `json:"showticklabels,omitempty"`
// Showtickprefix
// arrayOK: false
// default: all
// type: enumerated
// If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden.
// .schema.traces.carpet.attributes.aaxis.showtickprefix
Showtickprefix CarpetAaxisShowtickprefix `json:"showtickprefix,omitempty"`
// Showticksuffix
// arrayOK: false
// default: all
// type: enumerated
// Same as `showtickprefix` but for tick suffixes.
// .schema.traces.carpet.attributes.aaxis.showticksuffix
Showticksuffix CarpetAaxisShowticksuffix `json:"showticksuffix,omitempty"`
// Smoothing
// arrayOK: false
// type: number
//
// .schema.traces.carpet.attributes.aaxis.smoothing
Smoothing types.NumberType `json:"smoothing,omitempty"`
// Startline
// arrayOK: false
// type: boolean
// Determines whether or not a line is drawn at along the starting value of this axis. If *true*, the start line is drawn on top of the grid lines.
// .schema.traces.carpet.attributes.aaxis.startline
Startline types.BoolType `json:"startline,omitempty"`
// Startlinecolor
// arrayOK: false
// type: color
// Sets the line color of the start line.
// .schema.traces.carpet.attributes.aaxis.startlinecolor
Startlinecolor types.Color `json:"startlinecolor,omitempty"`
// Startlinewidth
// arrayOK: false
// type: number
// Sets the width (in px) of the start line.
// .schema.traces.carpet.attributes.aaxis.startlinewidth
Startlinewidth types.NumberType `json:"startlinewidth,omitempty"`
// Tick0
// arrayOK: false
// type: number
// The starting index of grid lines along the axis
// .schema.traces.carpet.attributes.aaxis.tick0
Tick0 types.NumberType `json:"tick0,omitempty"`
// Tickangle
// arrayOK: false
// type: angle
// Sets the angle of the tick labels with respect to the horizontal. For example, a `tickangle` of -90 draws the tick labels vertically.
// .schema.traces.carpet.attributes.aaxis.tickangle
Tickangle types.NumberType `json:"tickangle,omitempty"`
// Tickfont
// arrayOK: false
// role: Object
// .schema.traces.carpet.attributes.aaxis.tickfont
Tickfont *CarpetAaxisTickfont `json:"tickfont,omitempty"`
// Tickformat
// arrayOK: false
// type: string
// Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*
// .schema.traces.carpet.attributes.aaxis.tickformat
Tickformat types.StringType `json:"tickformat,omitempty"`
// Tickformatstops
// role: Object
// items: CarpetAaxisTickformatstop
// .schema.traces.carpet.attributes.aaxis.tickformatstops
Tickformatstops []CarpetAaxisTickformatstop `json:"tickformatstops,omitempty"`
// Tickmode
// arrayOK: false
// default: array
// type: enumerated
//
// .schema.traces.carpet.attributes.aaxis.tickmode
Tickmode CarpetAaxisTickmode `json:"tickmode,omitempty"`
// Tickprefix
// arrayOK: false
// type: string
// Sets a tick label prefix.
// .schema.traces.carpet.attributes.aaxis.tickprefix
Tickprefix types.StringType `json:"tickprefix,omitempty"`
// Ticksuffix
// arrayOK: false
// type: string
// Sets a tick label suffix.
// .schema.traces.carpet.attributes.aaxis.ticksuffix
Ticksuffix types.StringType `json:"ticksuffix,omitempty"`
// Ticktext
// arrayOK: false
// type: data_array
// Sets the text displayed at the ticks position via `tickvals`. Only has an effect if `tickmode` is set to *array*. Used with `tickvals`.
// use types.DataArray to pass any slice of data
// use types.BDataArray to pass data in binary format as provided by numpy
// .schema.traces.carpet.attributes.aaxis.ticktext
Ticktext *types.DataArrayType `json:"ticktext,omitempty"`
// Ticktextsrc
// arrayOK: false
// type: string
// Sets the source reference on Chart Studio Cloud for `ticktext`.
// .schema.traces.carpet.attributes.aaxis.ticktextsrc
Ticktextsrc types.StringType `json:"ticktextsrc,omitempty"`
// Tickvals
// arrayOK: false
// type: data_array
// Sets the values at which ticks on this axis appear. Only has an effect if `tickmode` is set to *array*. Used with `ticktext`.
// use types.DataArray to pass any slice of data
// use types.BDataArray to pass data in binary format as provided by numpy
// .schema.traces.carpet.attributes.aaxis.tickvals
Tickvals *types.DataArrayType `json:"tickvals,omitempty"`
// Tickvalssrc
// arrayOK: false
// type: string
// Sets the source reference on Chart Studio Cloud for `tickvals`.
// .schema.traces.carpet.attributes.aaxis.tickvalssrc
Tickvalssrc types.StringType `json:"tickvalssrc,omitempty"`
// Title
// arrayOK: false
// role: Object
// .schema.traces.carpet.attributes.aaxis.title
Title *CarpetAaxisTitle `json:"title,omitempty"`
// Type
// arrayOK: false
// default: -
// type: enumerated
// Sets the axis type. By default, plotly attempts to determined the axis type by looking into the data of the traces that referenced the axis in question.
// .schema.traces.carpet.attributes.aaxis.type
Type CarpetAaxisType `json:"type,omitempty"`
}
// CarpetBaxisTickfont Sets the tick font.
type CarpetBaxisTickfont struct {
// Color
// arrayOK: false
// type: color
//
// .schema.traces.carpet.attributes.baxis.tickfont.color
Color types.Color `json:"color,omitempty"`
// Family
// arrayOK: false
// type: string
// HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.
// .schema.traces.carpet.attributes.baxis.tickfont.family
Family types.StringType `json:"family,omitempty"`
// Size
// arrayOK: false
// type: number
//
// .schema.traces.carpet.attributes.baxis.tickfont.size
Size types.NumberType `json:"size,omitempty"`
}
// CarpetBaxisTickformatstop
type CarpetBaxisTickformatstop struct {
// Dtickrange
// arrayOK: false
// type: info_array
// range [*min*, *max*], where *min*, *max* - dtick values which describe some zoom level, it is possible to omit *min* or *max* value by passing *null*
// .schema.traces.carpet.attributes.baxis.tickformatstops.items.tickformatstop.dtickrange
Dtickrange interface{} `json:"dtickrange,omitempty"`
// Enabled
// arrayOK: false
// type: boolean
// Determines whether or not this stop is used. If `false`, this stop is ignored even within its `dtickrange`.
// .schema.traces.carpet.attributes.baxis.tickformatstops.items.tickformatstop.enabled
Enabled types.BoolType `json:"enabled,omitempty"`
// Name
// arrayOK: false
// type: string
// When used in a template, named items are created in the output figure in addition to any items the figure already has in this array. You can modify these items in the output figure by making your own item with `templateitemname` matching this `name` alongside your modifications (including `visible: false` or `enabled: false` to hide it). Has no effect outside of a template.
// .schema.traces.carpet.attributes.baxis.tickformatstops.items.tickformatstop.name
Name types.StringType `json:"name,omitempty"`
// Templateitemname
// arrayOK: false
// type: string
// Used to refer to a named item in this array in the template. Named items from the template will be created even without a matching item in the input figure, but you can modify one by making an item with `templateitemname` matching its `name`, alongside your modifications (including `visible: false` or `enabled: false` to hide it). If there is no template or no matching item, this item will be hidden unless you explicitly show it with `visible: true`.
// .schema.traces.carpet.attributes.baxis.tickformatstops.items.tickformatstop.templateitemname
Templateitemname types.StringType `json:"templateitemname,omitempty"`
// Value
// arrayOK: false
// type: string
// string - dtickformat for described zoom level, the same as *tickformat*
// .schema.traces.carpet.attributes.baxis.tickformatstops.items.tickformatstop.value
Value types.StringType `json:"value,omitempty"`
}
// CarpetBaxisTitleFont Sets this axis' title font. Note that the title's font used to be set by the now deprecated `titlefont` attribute.
type CarpetBaxisTitleFont struct {
// Color
// arrayOK: false
// type: color
//
// .schema.traces.carpet.attributes.baxis.title.font.color
Color types.Color `json:"color,omitempty"`
// Family
// arrayOK: false
// type: string
// HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.
// .schema.traces.carpet.attributes.baxis.title.font.family
Family types.StringType `json:"family,omitempty"`
// Size
// arrayOK: false
// type: number
//
// .schema.traces.carpet.attributes.baxis.title.font.size
Size types.NumberType `json:"size,omitempty"`
}
// CarpetBaxisTitle
type CarpetBaxisTitle struct {
// Font
// arrayOK: false
// role: Object
// .schema.traces.carpet.attributes.baxis.title.font
Font *CarpetBaxisTitleFont `json:"font,omitempty"`
// Offset
// arrayOK: false
// type: number
// An additional amount by which to offset the title from the tick labels, given in pixels. Note that this used to be set by the now deprecated `titleoffset` attribute.
// .schema.traces.carpet.attributes.baxis.title.offset
Offset types.NumberType `json:"offset,omitempty"`
// Text
// arrayOK: false
// type: string
// Sets the title of this axis. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated.
// .schema.traces.carpet.attributes.baxis.title.text
Text types.StringType `json:"text,omitempty"`
}
// CarpetBaxis
type CarpetBaxis struct {
// Arraydtick
// arrayOK: false
// type: integer
// The stride between grid lines along the axis
// .schema.traces.carpet.attributes.baxis.arraydtick
Arraydtick types.IntegerType `json:"arraydtick,omitempty"`
// Arraytick0
// arrayOK: false
// type: integer
// The starting index of grid lines along the axis
// .schema.traces.carpet.attributes.baxis.arraytick0
Arraytick0 types.IntegerType `json:"arraytick0,omitempty"`
// Autorange
// arrayOK: false
// default: %!s(bool=true)
// type: enumerated
// Determines whether or not the range of this axis is computed in relation to the input data. See `rangemode` for more info. If `range` is provided, then `autorange` is set to *false*.
// .schema.traces.carpet.attributes.baxis.autorange
Autorange CarpetBaxisAutorange `json:"autorange,omitempty"`
// Autotypenumbers
// arrayOK: false
// default: convert types
// type: enumerated
// Using *strict* a numeric string in trace data is not converted to a number. Using *convert types* a numeric string in trace data may be treated as a number during automatic axis `type` detection. Defaults to layout.autotypenumbers.
// .schema.traces.carpet.attributes.baxis.autotypenumbers
Autotypenumbers CarpetBaxisAutotypenumbers `json:"autotypenumbers,omitempty"`
// Categoryarray
// arrayOK: false
// type: data_array
// Sets the order in which categories on this axis appear. Only has an effect if `categoryorder` is set to *array*. Used with `categoryorder`.
// use types.DataArray to pass any slice of data
// use types.BDataArray to pass data in binary format as provided by numpy
// .schema.traces.carpet.attributes.baxis.categoryarray
Categoryarray *types.DataArrayType `json:"categoryarray,omitempty"`
// Categoryarraysrc
// arrayOK: false
// type: string
// Sets the source reference on Chart Studio Cloud for `categoryarray`.
// .schema.traces.carpet.attributes.baxis.categoryarraysrc
Categoryarraysrc types.StringType `json:"categoryarraysrc,omitempty"`
// Categoryorder
// arrayOK: false
// default: trace
// type: enumerated
// Specifies the ordering logic for the case of categorical variables. By default, plotly uses *trace*, which specifies the order that is present in the data supplied. Set `categoryorder` to *category ascending* or *category descending* if order should be determined by the alphanumerical order of the category names. Set `categoryorder` to *array* to derive the ordering from the attribute `categoryarray`. If a category is not found in the `categoryarray` array, the sorting behavior for that attribute will be identical to the *trace* mode. The unspecified categories will follow the categories in `categoryarray`.
// .schema.traces.carpet.attributes.baxis.categoryorder
Categoryorder CarpetBaxisCategoryorder `json:"categoryorder,omitempty"`
// Cheatertype
// arrayOK: false
// default: value
// type: enumerated
//
// .schema.traces.carpet.attributes.baxis.cheatertype
Cheatertype CarpetBaxisCheatertype `json:"cheatertype,omitempty"`