Skip to content

Commit

Permalink
Hotfix/fix figure saving in datahandler (#230)
Browse files Browse the repository at this point in the history
* Add bbox_inches='tight' so text isn't cut off.

* Document changes.
  • Loading branch information
deanpoulos authored Aug 28, 2024
1 parent ad82bed commit 862bb16
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
### Added
- results - Allow the data saver to create the root folder if it doesn't exist.

### Fixed
- data_handler - Fix figure saving cutting off title text if it is long using `bbox_inches="tight"`.

## [0.17.7] - 2024-08-20
### Added
- VoltageGateSequence - The `VoltageGateSequence` class facilitates the creation and management of complex pulse sequences, allowing dynamic voltage control, ramping, and bias compensation across gate elements.
Expand Down
2 changes: 1 addition & 1 deletion qualang_tools/results/data_handler/data_processors.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def process(self, data):

def post_process(self, data_folder: Path):
for path, fig in self.data_figures.items():
fig.savefig(data_folder / path)
fig.savefig(data_folder / path, bbox_inches="tight")


DEFAULT_DATA_PROCESSORS.append(MatplotlibPlotSaver)
Expand Down

0 comments on commit 862bb16

Please sign in to comment.