Skip to content

Commit

Permalink
added feature_plot to the plotting options
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoNeureiter committed Nov 3, 2022
1 parent 95f73ca commit 4a2f2a3
Show file tree
Hide file tree
Showing 4 changed files with 218 additions and 97 deletions.
3 changes: 2 additions & 1 deletion sbayes/config/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,8 @@ def from_config_file(
with open(path, "r") as f:
path_str = str(path).lower()
if path_str.endswith(".yaml"):
config_dict = yaml.load(f, Loader=yaml.Loader)
yaml_loader = yaml.YAML(typ='safe')
config_dict = yaml_loader.load(f)
else:
config_dict = json.load(f)

Expand Down
30 changes: 29 additions & 1 deletion sbayes/config/default_config_plot.json
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@
"labels": {
"add": true,
"names": [
"U",
"C",
"U",
"I"
],
"font_size": 6
Expand Down Expand Up @@ -178,6 +178,34 @@
"n_columns": 5
}
},
"feature_plot": {
"legend": {
"labels": {
"add": true,
"font_size": 8,
"names": [
"contact",
"universal",
"inheritance"
]
},
"title": {
"add": true,
"font_size": 6,
"position": [
0,
1
]
}
},
"output": {
"width_subplot": 3,
"height_subplot": 3,
"format": "pdf",
"resolution": 300,
"n_columns": 5
}
},
"dic_plot": {
"content": {
"model": [],
Expand Down
Loading

0 comments on commit 4a2f2a3

Please sign in to comment.