json stylesΒΆ
There are a few preset styles available for use directly, allowing for quick customisation of the plot appearance.
These are stored in a JSON file, which can be found at src/plotProfile/styles.json. The keys in this file are the style names, and the values are dictionaries containing the styling options.
Each of these keys can be altered when passed into the ReactionProfilePlotter() class, or you can create your own custom style by passing a dictionary with any changed keys.
{
"default": {
"figsize": [5,4.5],
"point_type": "hollow",
"curviness": 0.42,
"desaturate": true,
"desaturate_factor": 1.2,
"dashed": [],
"dashed_spacing": 2.5,
"labels": true,
"show_legend": true,
"line_width": 2.5,
"bar_width": 3.0,
"bar_length": 0.3,
"marker_size": 6,
"font_size": 12,
"font_family": "Arial",
"font_weight": "bold",
"font_style": "normal",
"axis_linewidth": 2.0,
"buffer_factor": 0.06,
"axes": "box",
"colors": ["darkcyan", "maroon", "midnightblue", "darkmagenta", "darkgreen", "saddlebrown"],
"segment_annotations": [],
"arrow_color": "xkcd:dark grey",
"annotation_color": "maroon",
"annotation_size": 11,
"energy": "G",
"units": "kcal",
"annotation_below_arrow": false,
"annotation_space": 0.05,
"annotation_buffer": 0.0,
"arrow_width": 1.5,
"sig_figs": 1,
"point_label_color": "black",
"connect_bar_ends": true
},
"presentation": {
"figsize": [8, 5],
"font_size": 14,
"annotation_size": 14,
"marker_size": 8,
"line_width": 3.0,
"bar_width": 3.5,
"annotation_space": 0.12,
"arrow_width": 2.5
},
"straight": {
"curviness": 0.0
}
}