Skip to content

Commit 0732682

Browse files
committed
better schema
1 parent fa2d666 commit 0732682

File tree

5 files changed

+17
-10
lines changed

5 files changed

+17
-10
lines changed

examples/config/cfg_data_matplotlib.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55

66
"style": "default" # string with a Matplotlib style
77
"legend": "best" # location of the legend box
8-
"font": 12.0 # reference font size of the figure
8+
"font": 12 # reference font size of the figure

examples/config/cfg_data_pyvista.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@
55

66
# options for defining cut planes
77
"plot_filter":
8-
"slice": false # add (or not) a slice plane for rendering
8+
"slice": true # add (or not) a slice plane for rendering
99
"clip": false # add (or not) a clip plane for rendering
1010
"invert": false # invert (or not) the clipping/slicing direction
11-
"normal": "x" # normal of the clipping/slicing direction
11+
"normal": "z" # normal of the clipping/slicing direction
1212
"value": 0.0 # initial position for the clipping/slicing
1313

1414
# theme of the figure
1515
"plot_theme":
1616
"text_color": "black" # color of the text elements
17-
"title_font": 10.0 # font size of the text displayed on the window corner
18-
"colorbar_font": 15.0 # font size of the color bar
19-
"colorbar_size": 5.0 # number of division for the colorbar
17+
"title_font": 10 # font size of the text displayed on the window corner
18+
"colorbar_font": 15 # font size of the color bar
19+
"colorbar_size": 5 # number of division for the colorbar
2020
"colorbar_plot": true # show (or not) the colorbar
2121
"background_color": "gray" # background color of the plot
2222
"axis_add": true # add (or not) the axis marker

pypeec/data/schema_list_viewer.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"opacity":
1818
"type": "number"
1919
"minimum": 0
20+
"maximum": 1
2021

2122
#############################################################################
2223
"data_plot_component": &data_plot_component
@@ -37,6 +38,7 @@
3738
"opacity":
3839
"type": "number"
3940
"minimum": 0
41+
"maximum": 1
4042

4143
#############################################################################
4244
"data_plot_voxelization": &data_plot_voxelization
@@ -70,9 +72,11 @@
7072
"opacity_voxel":
7173
"type": "number"
7274
"minimum": 0
75+
"maximum": 1
7376
"opacity_reference":
7477
"type": "number"
7578
"minimum": 0
79+
"maximum": 1
7680

7781
#############################################################################
7882
"data_plot_matrix": &data_plot_matrix

pypeec/data/schema_plot_matplotlib.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111
"type": "string"
1212
"minLength": 1
1313
"font":
14-
"type": "number"
14+
"type": "integer"
1515
"minimum": 0

pypeec/data/schema_plot_pyvista.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@
4343
"type": "string"
4444
"minLength": 1
4545
"title_font":
46-
"type": "number"
46+
"type": "integer"
4747
"minimum": 0
4848
"colorbar_font":
49-
"type": "number"
49+
"type": "integer"
5050
"minimum": 0
5151
"colorbar_size":
52-
"type": "number"
52+
"type": "integer"
5353
"minimum": 0
5454
"colorbar_plot":
5555
"type": "boolean"
@@ -91,6 +91,7 @@
9191
"grid_opacity":
9292
"type": "number"
9393
"minimum": 0
94+
"maximum": 1
9495
"geom_plot":
9596
"type": "boolean"
9697
"geom_thickness":
@@ -102,6 +103,7 @@
102103
"geom_opacity":
103104
"type": "number"
104105
"minimum": 0
106+
"maximum": 1
105107
"point_plot":
106108
"type": "boolean"
107109
"point_color":
@@ -113,6 +115,7 @@
113115
"point_opacity":
114116
"type": "number"
115117
"minimum": 0
118+
"maximum": 1
116119
"camera_roll":
117120
"type":
118121
- "null"

0 commit comments

Comments
 (0)