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
I keep getting a "internal problem" error. I dont know why.It says i have to report it.
Traceback
Traceback (most recent call last):
File "C:\Users\hanna\anaconda3\envs\DataScienceProgramming\Lib\site-packages\spyder\plugins\plots\widgets\figurebrowser.py", line 278, in add_figureself.thumbnails_sb.add_thumbnail(fig, fmt)
File "C:\Users\hanna\anaconda3\envs\DataScienceProgramming\Lib\site-packages\spyder\plugins\plots\widgets\figurebrowser.py", line 999, in add_thumbnailself.set_current_thumbnail(thumbnail)
File "C:\Users\hanna\anaconda3\envs\DataScienceProgramming\Lib\site-packages\spyder\plugins\plots\widgets\figurebrowser.py", line 1089, in set_current_thumbnailself.figure_viewer.load_figure(
File "C:\Users\hanna\anaconda3\envs\DataScienceProgramming\Lib\site-packages\spyder\plugins\plots\widgets\figurebrowser.py", line 463, in load_figureself.auto_fit_plotting =self.current_thumbnail.auto_fit
^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hanna\anaconda3\envs\DataScienceProgramming\Lib\site-packages\spyder\plugins\plots\widgets\figurebrowser.py", line 422, in auto_fit_plottingself.scale_image()
File "C:\Users\hanna\anaconda3\envs\DataScienceProgramming\Lib\site-packages\spyder\plugins\plots\widgets\figurebrowser.py", line 630, in scale_imageself.scalefactor =self.get_scale_factor()
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hanna\anaconda3\envs\DataScienceProgramming\Lib\site-packages\spyder\plugins\plots\widgets\figurebrowser.py", line 645, in get_scale_factorreturn math.log(self.get_scaling() /100) / math.log(self._scalestep)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ValueError: math domain error
Hi @b19hanru thank you for the report! I think I was able to replicate this! Seems like this error happens when you completely decrease the size of the place where the selected plot is shown and try to selected another plot while having the Fit plot to the pane size option active:
Seems like we need to add a minimum size to the place where the currently selected plot is shown @ccordoba12 ?
Seems like we need to add a minimum size to the place where the currently selected plot is shown @ccordoba12 ?
Or perhaps a max width to the thumbnail bar. I mean, it doesn't make much sense to make it reach the full width of the pane (half of it should be good enough).
ccordoba12
changed the title
Internal problemValueError: math domain error in the Plots pane
Feb 10, 2025
Description
What steps will reproduce the problem?
I keep getting a "internal problem" error. I dont know why.It says i have to report it.
Traceback
Versions
Dependencies
Environment
Environment
The text was updated successfully, but these errors were encountered: