You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Using the new option in the plot context menu Customize Labels there is a checkbox for each axis to apply the styles chosen for the axis labels to the tick labels as well Apply Style to Tick Labels. When doing so the following error is thrown in the console
18:15:21 - ERROR: Traceback (most recent call last): File "sas\qtgui\Plotting\Plotter.py", line 914, in onCusotmizeLabel File "matplotlib\axes\_base.py", line 74, in wrapper TypeError: Axis.set_ticklabels() takes 2 positional arguments but 3 were given
To Reproduce
Steps to reproduce the behavior:
Create a plot (either load a data set and plot or plot a theory curve)
Right click on plot and choose Customize Labels
You can make changes to the fonts or font size etc but that is not necessary to get the error.
check the checkbox labelled Apply style to X tick labels or to the corresponding checkbox for the Y tick labels
Press OK
See error
Expected behavior
the tick labels change to match the style of the axis labels and no error is thrown.
SasView version (please complete the following information):
Version: 6.0.0. Version 5.0.6 does not have the Customize Labels option so this is an error introduced to 6.0.0. However, it is not clear WHY this was not in 5.0.6 as the code seems to have been added in July 2022, a year prior to the release of 6.0.0?
Operating system (please complete the following information):
OS: found on Windows 10
Additional context
The error is caused by the following:
specifically the lines a.set_xticklabels(a.get_xticks(), fx)
The problem from what I've read so far suggests that set_xticklabels takes a list of the tick mark strings (here provided by a.get_yticks() I think) and a series of kwargs? so it should be fontsize=fx or some such maybe?
The text was updated successfully, but these errors were encountered:
Describe the bug
Using the new option in the plot context menu
Customize Labels
there is a checkbox for each axis to apply the styles chosen for the axis labels to the tick labels as wellApply Style to Tick Labels
. When doing so the following error is thrown in the consoleTo Reproduce
Steps to reproduce the behavior:
Customize Labels
Apply style to X tick labels
or to the corresponding checkbox for the Y tick labelsExpected behavior
the tick labels change to match the style of the axis labels and no error is thrown.
SasView version (please complete the following information):
Customize Labels
option so this is an error introduced to 6.0.0. However, it is not clear WHY this was not in 5.0.6 as the code seems to have been added in July 2022, a year prior to the release of 6.0.0?Operating system (please complete the following information):
Additional context
The error is caused by the following:
specifically the lines
a.set_xticklabels(a.get_xticks(), fx)
The problem from what I've read so far suggests that
set_xticklabels
takes a list of the tick mark strings (here provided by a.get_yticks() I think) and a series of kwargs? so it should be fontsize=fx or some such maybe?The text was updated successfully, but these errors were encountered: