makePisaFigure
Make a PISA plot or graph (depending on the input json).
BNF
<make-figure-configuration> ::= { <list-of-figure-config-parts> }
<list-of-figure-config-parts> ::= <figure-config-part> <figure-config-part>, <list-of-figure-config-parts>
<figure-config-part> ::= "graph-configs": [<list-of-graph-config>] | "plot-configs": [<list-of-plot-config>] | "width": <integer> | "height": <integer> | "output-png": <file-name> | "output-pdf": <file-name> | "dpi": <integer> | "transparent": <boolean> | <verbosity-section>
<list-of-plot-config> ::= <pisa-plot-configuration> | <pisa-plot-configuration>, <list-of-plot-config>
<list-of-graph-config> ::= <pisa-graph-configuration> | <pisa-graph-configuration>, <list-of-graph-config>
Parameter notes
graph-configs,plot-configsA list of configurations appropriate for the functions in
plotting. At least one of these must be present, and you can have both.output-png,output-pdfThe name you want your figure saved as. You can specify both in order to have both a pdf and png saved of the same figure. At least one must be specified, and you can have both.
width,height(optional) The width and height of the generated figure, in inches. Default: width 7, height 5.
dpi(optional) Only relevant when you render to a png, this determines the resolution. Default: 300
transparent(optional) Should the figure have a transparent background? Default: False
- bpreveal.makePisaFigure.main(cfg)
Actually make the plot(s).
Schema
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "makePisaFigure",
"description": "Schema for making PISA figures",
"type": "object",
"properties": {
"graph-configs": {
"type": "array",
"items": {"$ref": "/schema/pisaGraph#/definitions/graph-config"}
},
"plot-configs": {
"type": "array",
"items": {"$ref": "/schema/pisaPlot#/definitions/plot-config"}
},
"width": {"type": "integer"},
"height": {"type": "integer"},
"dpi": {"type": "integer"},
"transparent": {"type": "boolean"},
"output-png": {"type": "string"},
"output-pdf": {"type": "string"},
"verbosity": {"$ref": "/schema/base#/definitions/verbosity"}
},
"allOf": [
{"anyOf": [
{"required": ["graph-configs"]},
{"required": ["plot-configs"]}
]},
{"anyOf": [
{"required": ["output-png"]},
{"required": ["output-pdf"]}
]}
],
"additionalProperties": false
}