create_figure(experiment_id, figure, figure_name=None, sync_upload=True)¶
Store a new figure in the database.
Currently only SVG figures are supported.
str) – ID of the experiment this figure is for.
bytes]) – Name of the figure file or figure data to store.
str]) – Name of the figure. If
None, the figure file name, if given, or a generated name is used.
bool) – If
True, the plot will be uploaded synchronously. Otherwise the upload will be asynchronous.
- Return type
A tuple of the name and size of the saved figure.
IBMExperimentEntryExists – If the figure already exits.
IBMQApiError – If the request to the server failed.