#๐ matplotlib contour inconsistencies
16 messages ยท Page 1 of 1 (latest)
@abstract warren
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
test = np.array([[1,4,10],[1,5,20],[1,6,30],[2,4,40],[2,5,50],[2,6,60],[3,4,70],[3,5,80],[3,6,90]])
print(test.shape)
plt.contour(test)
I get an expected result
but if I run something like this
Where final contains just [...,[float,float,float],...] It doesnt work? the shape is also n,3
the data is just in the form of [x_i,y_j, f(x_i,y_j)]
where it goes over all j's for each x_i
lol ok so I had a line under my import '%matplotlib tk'
to make the popout plot interactive
in a jupyter notebook
and it was causing the issue
anyone know why this may be?
This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.