xopt-org / Xopt

Flexible high-level optimization in Python
Apache License 2.0
71 stars 24 forks source link

Raise useful error when too many variables are specified in visualize model #214

Closed roussel-ryan closed 7 months ago

roussel-ryan commented 7 months ago

currently the error is raised inside matplotlib which is unhelpful for users, should be checked before computations

roussel-ryan commented 7 months ago

@t-bz can you address this when you get a chance?

t-bz commented 7 months ago

It seems like this is already addressed here. Could you provide a minimal example?

roussel-ryan commented 7 months ago

Actually it is being caught properly, I think we just need to add info to the current error message to ask the user to specify a list of variable names as an argument to the function that has 1 or 2 values