Skip to content

Commit

Permalink
Making format variable in interactive bar chart GUI (#26)
Browse files Browse the repository at this point in the history
* Making format variable

* Release 0.4.5
  • Loading branch information
Mathias157 authored Nov 14, 2024
1 parent 7dd67e0 commit 435eae7
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
project = "pybalmorel"
copyright = "2024, Mathias Berg Rosendal, Théodore Le Nalinec"
author = "Mathias Berg Rosendal, Théodore Le Nalinec"
release = "0.4.3"
release = "0.4.5"

exclude_patterns = ["_build", "Thumbs.db", ".DS_Store", ".testenv", ".testenv/**"]

Expand Down
2 changes: 1 addition & 1 deletion docs/get_started/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ dependencies:
- ipykernel>=6.29.5
- pip
- pip:
- pybalmorel==0.4.4
- pybalmorel==0.4.5
```
2 changes: 1 addition & 1 deletion environment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ dependencies:
- pytest=8.3.3
- pip
- pip:
- pybalmorel==0.4.4
- pybalmorel==0.4.5
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "pybalmorel"
version = "0.4.4"
version = "0.4.5"
maintainers = [
{ name="Mathias Berg Rosendal", email="[email protected]"},
{ name="Théodore Le Nalinec"},
Expand Down
7 changes: 5 additions & 2 deletions src/pybalmorel/plotting/plot_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,8 +262,11 @@ def custom_sort_key(item):
if not os.path.exists(output_dir):
os.makedirs(output_dir)

output_path = os.path.join(output_dir, f'{namefile}.png')
plt.savefig(output_path, format='png', dpi=300, bbox_inches='tight', transparent=transparent)
if '.' not in namefile:
namefile += '.png'

output_path = os.path.join(output_dir, namefile)
plt.savefig(output_path, dpi=300, bbox_inches='tight', transparent=transparent)

return fig

Expand Down

0 comments on commit 435eae7

Please sign in to comment.