r/StackoverReddit • u/Bitter-Hope6731 • Aug 03 '24
Python Value error (pls help)
I am coding for a document with multiple graphs on it, so lots of coding for x and y axis's, I don't know why but I am getting an error, 'x and y must have same first dimension, but have shapes (539,) and (544,)', now I know this is something to do with the number of x's matching the number of y's but I don't know how to resolve this issue, any help would be greatly appreciated.
2
Upvotes
1
u/Wooden_chest Aug 03 '24
Can you share the code and the place where this exception occurs?
1
u/[deleted] Aug 03 '24
Python isn't really my thing I'm more a c++ guy myself but I found a StackOverflow post talking about a simliat problem using matplotlib. The answer that fixed it for the guy in that situation was he had passed the lambda as func but didn't use it.
Here is the post since I'm awful at paraphrasing. Hope this helps.
1
u/chrisrko Moderator Aug 08 '24
INFO!!! We are moving to r/stackoverflow !!!!
We want everybody to please be aware that all future posts and updates from us will from now on be on r/stackoverflow
We made an appeal to gain ownershift of r/stackoverflow because it has been abandoned, and it got granted!!
So please migrate with us to our new subreddit r/stackoverflow ;)