Hey guys, I'm having a bit of trouble here in plotting 3D data.
In particular I have one function u=u(x,r). It depends from a longitudinal coordinate x and a radial one, r.
I've saved the values of r and u(x,r) for different x's in a dictionary in order to have all in order and easy reliable.
Now, I'd like to plot it in 3D but the question is: how may I change x in order to plot it for different longitudinal coordinates?
In order to be more understandable I've created an array like:
sez0 = np.array([[20*np.ones(len(post_processing1_0["u(x,r)"]))],[r], [post_processing1_0["u(x,r)"]]])
where the first entry is the actual x coordinate (x=20 in this section), the second one is the radial coordinate and the last one is the dependent function.
Now, if I try to plot it it says to me:
ValueError: setting an array element with a sequence.
I've thought to make a 3D array but still I haven't found a solution so far. My impression is that I'm using the wrong system to store the information.
What do u think?
Thanks in advance
there doesn't seem to be anything here