BioLizardStylePython 0.0.14__tar.gz → 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {biolizardstylepython-0.0.14 → biolizardstylepython-0.1.0}/PKG-INFO +1 -1
- {biolizardstylepython-0.0.14 → biolizardstylepython-0.1.0}/pyproject.toml +1 -1
- {biolizardstylepython-0.0.14 → biolizardstylepython-0.1.0}/src/BioLizardStylePython/utils.py +4 -4
- {biolizardstylepython-0.0.14 → biolizardstylepython-0.1.0}/.gitignore +0 -0
- {biolizardstylepython-0.0.14 → biolizardstylepython-0.1.0}/LICENSE +0 -0
- {biolizardstylepython-0.0.14 → biolizardstylepython-0.1.0}/README.md +0 -0
- {biolizardstylepython-0.0.14 → biolizardstylepython-0.1.0}/src/BioLizardStylePython/__init__.py +0 -0
- {biolizardstylepython-0.0.14 → biolizardstylepython-0.1.0}/src/BioLizardStylePython/lizard_style.mplstyle +0 -0
- {biolizardstylepython-0.0.14 → biolizardstylepython-0.1.0}/src/BioLizardStylePython/logo/BiolizardLogo.png +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: BioLizardStylePython
|
|
3
|
-
Version: 0.0
|
|
3
|
+
Version: 0.1.0
|
|
4
4
|
Summary: Enhance plots with the signature Biolizard aesthetic for matplotlib and seaborn.
|
|
5
5
|
Project-URL: Homepage, https://github.com/lizard-bio/nature-grade-visualization-playground/tree/main
|
|
6
6
|
Author: BioLizard
|
{biolizardstylepython-0.0.14 → biolizardstylepython-0.1.0}/src/BioLizardStylePython/utils.py
RENAMED
|
@@ -14,7 +14,7 @@ def lizard_style(font_name='Nunito Sans 10pt'):
|
|
|
14
14
|
-----------
|
|
15
15
|
font_name : str, optional
|
|
16
16
|
The name of the font to be used for the plots. By default, it uses 'Nunito Sans 10pt'.
|
|
17
|
-
If you want to use your own local installation of
|
|
17
|
+
If you want to use your own local installation of Nunito Sans or any other font,
|
|
18
18
|
specify the font name using this parameter. For more details on how to use
|
|
19
19
|
the font_name parameter, refer to the 'In_Action' file on GitHub.
|
|
20
20
|
|
|
@@ -121,7 +121,7 @@ def finalise_lizardplot(plot, source_text, fontsize=12, pdf=False, output_name="
|
|
|
121
121
|
- fontsize (int, optional): Font size of the source text. Defaults to 12.
|
|
122
122
|
- pdf (bool, optional): If True, saves the output as a PDF. Otherwise, saves as a PNG. Defaults to False.
|
|
123
123
|
- output_name (str, optional): Name of the output file (without extension). Defaults to "TempLizardPlot".
|
|
124
|
-
- save_filepath (str, optional): Full path to save the output (
|
|
124
|
+
- save_filepath (str, optional): Full path to save the output (with extension). If specified, it takes precedence over output_name.
|
|
125
125
|
|
|
126
126
|
Returns:
|
|
127
127
|
None. The combined image is saved to the specified location or the current working directory.
|
|
@@ -185,13 +185,13 @@ def finalise_lizardplot(plot, source_text, fontsize=12, pdf=False, output_name="
|
|
|
185
185
|
# Save the concatenated image
|
|
186
186
|
if pdf:
|
|
187
187
|
if save_filepath:
|
|
188
|
-
filename = save_filepath
|
|
188
|
+
filename = save_filepath
|
|
189
189
|
else:
|
|
190
190
|
filename = output_name + '.pdf'
|
|
191
191
|
combined_img.save(filename, "PDF", resolution=100.0)
|
|
192
192
|
else:
|
|
193
193
|
if save_filepath:
|
|
194
|
-
filename = save_filepath
|
|
194
|
+
filename = save_filepath
|
|
195
195
|
else:
|
|
196
196
|
filename = output_name + '.png'
|
|
197
197
|
combined_img.save(filename)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{biolizardstylepython-0.0.14 → biolizardstylepython-0.1.0}/src/BioLizardStylePython/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|