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

Can't plot graphs when using mapping? #818

Closed
Erdnaxela3 opened this issue Jan 12, 2024 · 2 comments
Closed

Can't plot graphs when using mapping? #818

Erdnaxela3 opened this issue Jan 12, 2024 · 2 comments

Comments

@Erdnaxela3
Copy link

On bioptim tag 3.2.0

Traceback (most recent call last):
File "/home/aweng/afs/bioptim_gui/gui/test/straight_0_12012024.py", line 606, in main
sol.graphs(show_bounds=True)
File "/home/aweng/anaconda3/envs/bioptim/lib/python3.12/site-packages/bioptim-3.2.0-py3.12.egg/bioptim/optimization/solution/solution.py", line 883, in graphs
plot_ocp.update_data(self.vector)
File "/home/aweng/anaconda3/envs/bioptim/lib/python3.12/site-packages/bioptim-3.2.0-py3.12.egg/bioptim/gui/plot.py", line 712, in update_data
self.__update_axes()
File "/home/aweng/anaconda3/envs/bioptim/lib/python3.12/site-packages/bioptim-3.2.0-py3.12.egg/bioptim/gui/plot.py", line 862, in __update_axes
assert len(self.plots) == len(self.ydata)
AssertionError

Got len(self.ydata) = 60
len(self.plots) = 48
There is 10 DoFs in the model.

@EveCharbie
Copy link
Collaborator

I confirm that there is the same issue with plots in the example symmetry_by_mapping

@pariterre
Copy link
Member

Fixed in #819

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

No branches or pull requests

3 participants