diff --git a/chem_spectra/lib/composer/ni.py b/chem_spectra/lib/composer/ni.py index 9003216d..de10840f 100644 --- a/chem_spectra/lib/composer/ni.py +++ b/chem_spectra/lib/composer/ni.py @@ -449,9 +449,15 @@ def tf_img(self): waveLength = self.core.params['waveLength'] label = "X ({}), WL={} nm".format(self.core.label['x'], waveLength['value'], waveLength['unit']) # noqa: E501 plt.xlabel((label), fontsize=18) + elif (self.core.is_cyclic_volta): + plt.xlabel("{}".format(self.core.label['x']), fontsize=18) else: plt.xlabel("X ({})".format(self.core.label['x']), fontsize=18) - plt.ylabel("Y ({})".format(self.core.label['y']), fontsize=18) + + if (self.core.is_cyclic_volta): + plt.ylabel("{}".format(self.core.label['y']), fontsize=18) + else: + plt.ylabel("Y ({})".format(self.core.label['y']), fontsize=18) plt.locator_params(nbins=self.__plt_nbins()) plt.grid(False) # Save diff --git a/chem_spectra/lib/converter/bagit/base.py b/chem_spectra/lib/converter/bagit/base.py index 456f6df4..87d07138 100644 --- a/chem_spectra/lib/converter/bagit/base.py +++ b/chem_spectra/lib/converter/bagit/base.py @@ -101,9 +101,15 @@ def __combine_images(self, list_composer, list_file_names = None): waveLength = composer.core.params['waveLength'] label = "X ({}), WL={} nm".format(composer.core.label['x'], waveLength['value'], waveLength['unit']) # noqa: E501 plt.xlabel((label), fontsize=18) + elif (composer.core.is_cyclic_volta): + plt.xlabel("{}".format(composer.core.label['x']), fontsize=18) else: plt.xlabel("X ({})".format(composer.core.label['x']), fontsize=18) - plt.ylabel("Y ({})".format(composer.core.label['y']), fontsize=18) + + if (composer.core.is_cyclic_volta): + plt.ylabel("{}".format(composer.core.label['y']), fontsize=18) + else: + plt.ylabel("Y ({})".format(composer.core.label['y']), fontsize=18) plt.legend() tf_img = tempfile.NamedTemporaryFile(suffix='.png') diff --git a/setup.py b/setup.py index 46b23960..72b71ee2 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ setup( name='chem-spectra-app', - version='0.13.4', + version='0.13.4-patch.1', packages=find_packages(), include_package_data=True, zip_safe=False,