-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmatplotlib-rcparams-schema.json
More file actions
712 lines (712 loc) · 22 KB
/
matplotlib-rcparams-schema.json
File metadata and controls
712 lines (712 loc) · 22 KB
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
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "matplotlib-rcparams-schema.json",
"title": "Matplotlib rcParams json schema",
"type": "object",
"additionalProperties": false,
"properties": {
"backend": {
"description": "The default backend.",
"type": "string"
},
"backend_fallback": {
"type": "boolean",
"default": true
},
"lines": {
"description": "See https://matplotlib.org/stable/api/artist_api.html#module-matplotlib.lines for more information on line properties.",
"type": "object",
"additionalProperties": false,
"properties": {
"linewidth": {
"description": "line width in points",
"type": "number",
"default": 1.5
},
"linestyle": {
"description": "solid line",
"type": "string",
"default": "-"
},
"color": {
"description": "has no affect on plot(); see axes.prop_cycle",
"type": "string"
},
"marker": {
"description": "the default marker",
"type": "string",
"default": "none"
},
"markerfacecolor": {
"description": "the default marker face color",
"oneOf": [{"type": "string"}, {"type": ["null"]}],
"default": "auto"
},
"markeredgecolor": {
"description": "the default marker edge color",
"oneOf": [{"type": "string"}, {"type": ["null"]}],
"default": "auto"
},
"markeredgewidth": {
"description": "the line width around the marker symbol",
"type": "number",
"default": 1.0
},
"markersize": {
"description": "marker size, in points",
"type": "number",
"default": 6
},
"dash_joinstyle": {
"description": "{miter, round, bevel}",
"type": "string",
"default": "round"
},
"dash_capstyle": {
"description": "{butt, round, projecting}",
"type": "string",
"default": "butt"
},
"solid_joinstyle": {
"description": "{miter, round, bevel}",
"type": "string",
"default": "round"
},
"solid_capstyle": {
"description": "{butt, round, projecting}",
"type": "string",
"default": "projecting"
},
"antialiased": {
"description": "render lines in antialiased (no jaggies)",
"type": "boolean",
"default": true
}
}
},
"patch": {
"description": "Patches are graphical objects that fill 2D space, like polygons or circles.",
"type": "object",
"additionalProperties": false,
"properties": {
"linewidth": {
"description": "edge width in points.",
"type": "number",
"default": 1.0
},
"antialiased": {
"description": "render patches in antialiased (no jaggies)",
"type": "boolean",
"default": true
}
}
},
"hatch": {
"type": "object",
"additionalProperties": false,
"properties": {
"color": {
"type": "string",
"default": "black"
},
"linewidth": {
"type": "number",
"default": 1.0
}
}
},
"boxplot": {
"type": "object",
"additionalProperties": false,
"properties": {
"bootstrap": {"type": "integer"},
"boxprops": {"type": "object"}
}
},
"font": {
"description": "The font properties used by `text.Text`. See https://matplotlib.org/stable/api/font_manager_api.html for more information on font properties.",
"type": "object",
"additionalProperties": false,
"properties": {
"family": {
"oneOf": [
{ "type": "string" },
{
"type": "array",
"items": { "type": "string" }
}
]
},
"weight": {
"description": "weight of the font",
"oneOf": [{"type": "string"}, {"type": "number"}]
},
"size": {
"description": "this is the default font size for text, given in points. 10 pt is the standard value.",
"type": "number"
},
"serif": {
"description": "(e.g., Times)",
"type": "array",
"items": {"type": "string"}
},
"sans-serif": {
"description": "(e.g., Helvetica)",
"type": "array",
"items": {"type": "string"}
},
"monospace": {
"description": "(e.g., Courier)",
"type": "array",
"items": {"type": "string"}
}
}
},
"text": {
"description": "The text properties used by `text.Text`. See https://matplotlib.org/stable/api/artist_api.html#module-matplotlib.text for more information on text properties",
"type": "object",
"additionalProperties": false,
"properties": {
"color": {"type": "string"},
"hinting": {
"enum": ["default", "no_autohint", "force_autohint", "no_hinting"],
"default": "force_autohint"
},
"antialiased": {
"description": "If True (default), the text will be antialiased. This only affects raster outputs.",
"type": "boolean",
"default": true
},
"parse_math": {
"description": "Use mathtext if there is an even number of unescaped dollar signs.",
"type": "boolean",
"default": true
},
"usetex": {
"description": "Use latex for all text handling.",
"type": "boolean",
"default": false
},
"latex.preamble": {
"type": "string",
"title": "LaTeX Preamble",
"description": "Preamble is a single line of LaTeX code that will be passed on to the LaTeX system. It may contain any code that is valid for the LaTeX 'preamble', i.e. between the 'documentclass' and 'begin{document}' statements."
}
}
},
"mathtext": {
"description": "The following settings allow you to select the fonts in math mode.",
"type": "object",
"additionalProperties": false,
"properties": {
"fontset": {
"description": "Should be 'dejavusans' (default), 'dejavuserif', 'cm' (Computer Modern), 'stix', 'stixsans' or 'custom'",
"type": "string",
"default": "dejavusans"
},
"fallback": {
"description": "Select fallback font from ['cm' (Computer Modern), 'stix', 'stixsans'] when a symbol cannot be found in one of the custom math fonts.",
"type": "string",
"default": "cm"
},
"default": {
"description": "The default font to use for math.",
"type": "string",
"default": "it"
}
}
},
"axes": {
"description": "See https://matplotlib.org/stable/api/axes_api.html#module-matplotlib.axes",
"type": "object",
"additionalProperties": false,
"properties": {
"facecolor": {
"description": "axes background color",
"type": "string",
"default": "white"
},
"edgecolor": {
"description": "axes edge color",
"type": "string",
"default": "black"
},
"linewidth": {
"description": "edge line width",
"type": "number",
"default": 0.8
},
"grid": {
"description": "display grid or not",
"type": "boolean",
"default": false
},
"titlelocation": {
"description": "alignment of the title: {left, right, center}",
"type": "string",
"enum": ["left", "right", "center"],
"default": "center"
},
"titlesize": {
"description": "font size of the axes title",
"oneOf": [{"type": "string"}, {"type": "number"}],
"default": "large"
},
"titleweight": {
"description": "font weight of title",
"type": "string",
"default": "normal"
},
"titlecolor": {
"description": "color of the axes title, auto falls back to text.color as default value",
"type": "string"
},
"titlepad": {
"description": "pad between axes and title in points",
"type": "number",
"default": 6.0
},
"labelsize": {
"description": "font size of the x and y labels",
"oneOf": [{"type": "string"}, {"type": "number"}],
"default": "medium"
},
"labelpad": {
"description": "space between label and axis",
"type": "number",
"default": 4.0
},
"labelweight": {
"description": "weight of the x and y labels",
"type": "string"
},
"labelcolor": {
"description": "color of the x and y labels",
"type": "string"
},
"spines": {
"description": "display axis spines",
"type": "object",
"additionalProperties": false,
"properties": {
"left": {"type": "boolean"},
"bottom": {"type": "boolean"},
"top": {"type": "boolean"},
"right": {"type": "boolean"}
}
},
"prop_cycle": {
"type": "object",
"additionalProperties": false,
"properties": {
"color": {
"type": "array",
"items": { "type": "string" }
}
}
},
"unicode_minus": { "type": "boolean" }
}
},
"xtick": {
"description": "See https://matplotlib.org/stable/api/axis_api.html#matplotlib.axis.Tick",
"type": "object",
"additionalProperties": false,
"properties": {
"top": {
"description": "draw ticks on the top side",
"type": "boolean",
"default": false
},
"bottom": {
"description": "draw ticks on the bottom side",
"type": "boolean",
"default": true
},
"labeltop": {
"description": "draw label on the top",
"type": "boolean",
"default": false
},
"labelbottom": {
"description": "draw label on the bottom",
"type": "boolean",
"default": true
},
"major": {
"description": "major ticks",
"type": "object",
"additionalProperties": false,
"properties": {
"size": {
"description": "major tick size in points",
"type": "number",
"default": 3.5
},
"width": {
"description": "major tick width in points",
"type": "number",
"default": 0.8
},
"pad": {
"description": "distance to major tick label in points",
"type": "number",
"default": 3.5
},
"top": {"type": "boolean"},
"bottom": {"type": "boolean"}
}
},
"minor": {
"description": "minor ticks",
"type": "object",
"additionalProperties": false,
"properties": {
"size": {"type": "number"},
"width": {"type": "number"},
"pad": {"type": "number"},
"visible": {"type": "boolean"},
"top": {"type": "boolean"},
"bottom": {"type": "boolean"}
}
},
"color": {
"description": "color of the ticks",
"type": "string",
"default": "black"
},
"labelsize": {
"description": "font size of the tick labels",
"oneOf": [{"type": "string"}, {"type": "number"}],
"default": "medium"
},
"direction": {
"description": "direction: {in, out, inout}",
"type": "string",
"enum": ["in", "out", "inout"],
"default": "out"
},
"alignment": {
"description": "alignment of xticks",
"type": "string",
"default": "center"
}
}
},
"ytick": {
"type": "object",
"additionalProperties": false,
"properties": {
"direction": { "type": "string", "enum": ["in", "out", "inout"] },
"left": { "type": "boolean" },
"right": { "type": "boolean" },
"labelsize": { "oneOf": [{ "type": "string" }, { "type": "number" }] },
"color": { "type": "string" },
"major": {
"type": "object",
"properties": {
"size": { "type": "number" },
"width": { "type": "number" }
},
"additionalProperties": false
},
"minor": {
"type": "object",
"properties": {
"size": { "type": "number" },
"width": { "type": "number" }
},
"additionalProperties": false
}
}
},
"grid": {
"type": "object",
"additionalProperties": false,
"properties": {
"color": {
"description": "grid color",
"type": "string"
},
"linestyle": {
"description": "solid",
"type": "string"
},
"linewidth": {
"description": "in points",
"type": "number"
},
"alpha": {
"description": "transparency, between 0.0 and 1.0",
"type": "number"
}
}
},
"legend": {
"type": "object",
"additionalProperties": false,
"properties": {
"loc": { "type": "string" },
"frameon": {
"description": "if True, draw the legend on a background patch",
"type": "boolean"
},
"framealpha": {
"description": "legend patch transparency",
"type": "number"
},
"fancybox": {
"description": "if True, use a rounded box for the legend background, else a rectangle",
"type": "boolean"
},
"shadow": {
"description": "if True, give background a shadow effect",
"type": "boolean"
},
"fontsize": {
"oneOf": [{ "type": "string" }, { "type": "number" }]
},
"borderpad": {
"description": "border whitespace",
"type": "number"
},
"labelspacing": {
"description": "the vertical space between the legend entries",
"type": "number"
},
"handlelength": {
"description": "the length of the legend lines",
"type": "number"
},
"handleheight": {
"description": "the height of the legend handle",
"type": "number"
},
"handletextpad": {
"description": "the space between the legend line and legend text",
"type": "number"
},
"borderaxespad": {
"description": "the border between the axes and legend edge",
"type": "number"
},
"columnspacing": {
"description": "column separation",
"type": "number"
}
}
},
"figure": {
"description": "See https://matplotlib.org/stable/api/figure_api.html#matplotlib.figure.Figure",
"type": "object",
"additionalProperties": false,
"properties": {
"titlesize": {
"description": "size of the figure title (``Figure.suptitle()``)",
"type": "string"
},
"titleweight": {
"description": "weight of the figure title",
"type": "string"
},
"labelsize": {
"description": "size of the figure label (``Figure.sup[x|y]label()``)",
"type": "string"
},
"labelweight": {
"description": "weight of the figure label",
"type": "string"
},
"figsize": {
"description": "figure width, height in inches",
"type": "array",
"items": { "type": "number" },
"minItems": 2,
"maxItems": 2
},
"dpi": {
"description": "figure dots per inch",
"type": "number"
},
"facecolor": {
"description": "figure face color",
"type": "string"
},
"edgecolor": {
"description": "figure edge color",
"type": "string"
},
"frameon": {
"description": "enable figure frame",
"type": "boolean"
},
"subplot": {
"description": "The figure subplot parameters. All dimensions are a fraction of the figure width and height.",
"type": "object",
"additionalProperties": false,
"properties": {
"left": {
"description": "the left side of the subplots of the figure",
"type": "number"
},
"right": {
"description": "the right side of the subplots of the figure",
"type": "number"
},
"bottom": {
"description": "the bottom of the subplots of the figure",
"type": "number"
},
"top": {
"description": "the top of the subplots of the figure",
"type": "number"
},
"wspace": {
"description": "the amount of width reserved for space between subplots, expressed as a fraction of the average axis width",
"type": "number"
},
"hspace": {
"description": "The amount of height reserved for space between subplots, expressed as a fraction of the average axis height",
"type": "number"
}
}
},
"autolayout": {
"description": "When True, automatically adjust suplot parameters to make the plot fit the figure using `tight_layout`.",
"type": "boolean"
},
"constrained_layout.use": {
"description": "When True, automatically make plot elements fit on the figure. (Not compatible with `autolayout`, above).",
"type": "boolean" }
}
},
"image": {
"type": "object",
"additionalProperties": false,
"properties": {
"aspect": {
"description": "{equal, auto} or a number",
"oneOf": [{"type": "string"}, {"type": "number"}],
"default": "equal"
},
"interpolation": {
"description": "see help(imshow) for options",
"type": "string",
"default": "auto"
},
"cmap": {
"description": "A colormap name (plasma, magma, etc.)",
"type": "string",
"default": "viridis"
},
"origin": {
"type": "string",
"enum": ["lower", "upper"],
"default": "upper"
}
}
},
"contour": {
"type": "object",
"additionalProperties": false,
"properties": {
"negative_linestyle": { "type": "string" }
}
},
"errorbar": {
"type": "object",
"additionalProperties": false,
"properties": {
"capsize": {
"description": "length of end cap on error bars in pixels",
"type": "number",
"default": 0
}
}
},
"hist": {
"type": "object",
"additionalProperties": false,
"properties": {
"bins": {
"description": "The default number of histogram bins or 'auto'.",
"oneOf": [{"type": "integer"}, {"type": "string"}],
"default": 10
}
}
},
"savefig": {
"description": "The default savefig parameters can be different from the display parameters e.g., you may want a higher resolution, or to make the figure background white",
"type": "object",
"additionalProperties": false,
"properties": {
"dpi": {
"description": "figure dots per inch or 'figure'",
"oneOf": [{"type": "string"}, {"type": "number"}],
"default": "figure"
},
"facecolor": {"type": "string"},
"edgecolor": {"type": "string" },
"format": {
"type": "string",
"enum": ["png", "ps", "pdf", "svg"],
"default": "png"
},
"bbox": {
"description": "{tight, standard} 'tight' is incompatible with generating frames for animation",
"type": "string",
"enum": ["tight", "standard"],
"default": "standard"
},
"pad_inches": {
"description": "padding to be used, when bbox is set to 'tight'",
"type": "number",
"default": 0.1
},
"transparent": {
"description": "whether figures are saved with a transparent background by default",
"type": "boolean",
"default": false
},
"orientation" : {
"description": "orientation of saved figure, for PostScript output only",
"type": "string",
"default": "portrait"
}
}
},
"polar": {
"type": "object",
"additionalProperties": false,
"properties": {
"theta_direction": { "type": "number" },
"theta_offset": { "type": "number" }
}
},
"stackplot": {
"type": "object",
"additionalProperties": false,
"properties": {
"baseline": { "type": "string" }
}
},
"toolbar": {
"type": "string"
},
"interactive": { "type": "boolean" }
},
"definitions": {},
"examples": [
{
"figure": { "figsize": [8, 6], "dpi": 100, "autolayout": true },
"axes": { "grid": true, "edgecolor": "#333333", "prop_cycle": { "color": ["#1f77b4", "#ff7f0e"] } },
"lines": { "linewidth": 2.0, "markersize": 6 },
"font": { "size": 12, "family": ["sans-serif"], "sans-serif": ["DejaVu Sans", "Arial"] },
"legend": { "fontsize": "small", "loc": "best", "frameon": false },
"xtick": { "direction": "in", "labelsize": "small", "major": { "size": 5, "width": 0.8 } },
"ytick": { "direction": "in", "labelsize": "small" },
"savefig": { "dpi": 300, "bbox": "tight", "format": "png" },
"text": { "color": "#333333" }
}
]
}