Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

always error when try to paint a figure (with no operation) #23443

Open
duisuoy opened this issue Jan 10, 2025 · 1 comment
Open

always error when try to paint a figure (with no operation) #23443

duisuoy opened this issue Jan 10, 2025 · 1 comment

Comments

@duisuoy
Copy link

duisuoy commented Jan 10, 2025

### What steps will reproduce the problem?

File E:\Anaconda\envs\ForCST\lib\site-packages\spyder_kernels\customize\utils.py:209 in exec_encapsulate_locals
exec_fun(compile(code_ast, filename, "exec"), globals)

File e:\lcl\pythontest\emc_v1\train.py:115
next_state, reward, done,i,t= env.step(action,i,t,n)

File e:\lcl\pythontest\emc_v1\cst_environment.py:218 in step
saveresult(self.cst_filename, self.current_DE, self.current_project, result_filename)

File e:\lcl\pythontest\emc_v1\cst_environment.py:99 in saveresult
plt.plot(frequencies, s11, label='|S11|')

File E:\Anaconda\envs\ForCST\lib\site-packages\matplotlib\pyplot.py:2812 in plot
return gca().plot(

File E:\Anaconda\envs\ForCST\lib\site-packages\matplotlib\pyplot.py:2309 in gca
return gcf().gca()

File E:\Anaconda\envs\ForCST\lib\site-packages\matplotlib\figure.py:1660 in gca
return ax if ax is not None else self.add_subplot()

File E:\Anaconda\envs\ForCST\lib\site-packages\matplotlib\figure.py:768 in add_subplot
ax = projection_class(self, *args, **pkw)

File E:\Anaconda\envs\ForCST\lib\site-packages\matplotlib\axes_base.py:683 in init
self.clear()

File E:\Anaconda\envs\ForCST\lib\site-packages\matplotlib\axes_base.py:1395 in clear
self.__clear()

File E:\Anaconda\envs\ForCST\lib\site-packages\matplotlib\axes_base.py:1312 in __clear
self.grid(False) # Disable grid on init to use rcParameter

File E:\Anaconda\envs\ForCST\lib\site-packages\matplotlib\axes_base.py:3196 in grid
self.yaxis.grid(visible, which=which, **kwargs)

File E:\Anaconda\envs\ForCST\lib\site-packages\matplotlib\axis.py:1660 in grid
self.set_tick_params(which='major', **gridkw)

File E:\Anaconda\envs\ForCST\lib\site-packages\matplotlib\axis.py:947 in set_tick_params
for tick in self.majorTicks:

File E:\Anaconda\envs\ForCST\lib\site-packages\matplotlib\axis.py:595 in get
instance.majorTicks.append(tick)

File E:\Anaconda\envs\ForCST\lib\site-packages\matplotlib\axis.py:594 in get
tick = instance._get_tick(major=True)

File E:\Anaconda\envs\ForCST\lib\site-packages\matplotlib\axis.py:1551 in _get_tick
return self._tick_class(self.axes, 0, major=major, **tick_kw)

File E:\Anaconda\envs\ForCST\lib\site-packages\matplotlib\axis.py:478 in init
super().init(*args, **kwargs)

File E:\Anaconda\envs\ForCST\lib\site-packages\matplotlib\axis.py:172 in init
self.gridline.get_path()._interpolation_steps = \

File E:\Anaconda\envs\ForCST\lib\site-packages\matplotlib\lines.py:1028 in get_path
self.recache()

File E:\Anaconda\envs\ForCST\lib\site-packages\matplotlib\lines.py:668 in recache
self._xy = np.column_stack(np.broadcast_arrays(x, y)).astype(float)

File E:\Anaconda\envs\ForCST\lib\site-packages\spyder_kernels\console\shell.py:348 in spyderkernel_sigint_handler
raise KeyboardInterrupt

KeyboardInterrupt

@ccordoba12
Copy link
Member

Hey @duisuoy, thanks for reporting. Please post a video or animated gif of the steps you're following before this error is generated for you.

You can easily create animated gifs with the Licecap program, which is freely available for Windows and macOS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants