BioLizardStylePython 0.0.13__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: BioLizardStylePython
3
- Version: 0.0.13
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
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "BioLizardStylePython"
7
- version = "0.0.13"
7
+ version = "0.1.0"
8
8
  authors = [
9
9
  { name = "BioLizard"},
10
10
  { name = "Robbe Neirynck", email = "robbe.neirynck1@hotmail.com" }
@@ -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 Nunitoor any other font,
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 (without extension). If specified, it takes precedence over output_name.
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.
@@ -162,7 +162,7 @@ def finalise_lizardplot(plot, source_text, fontsize=12, pdf=False, output_name="
162
162
  # Get the directory of the current script
163
163
  current_directory = os.path.dirname(os.path.abspath(__file__))
164
164
  # Construct the path to the image
165
- image_path = os.path.join(current_directory, 'logo', 'BioLizardLogo.png')
165
+ image_path = os.path.join(current_directory, 'logo', 'BiolizardLogo.png')
166
166
  # Read the image
167
167
  img = plt.imread(image_path)
168
168
 
@@ -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 + '.pdf'
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 + '.png'
194
+ filename = save_filepath
195
195
  else:
196
196
  filename = output_name + '.png'
197
197
  combined_img.save(filename)