Plot surface from 3 1D arrays [duplicate]

独自空忆成欢 提交于 2019-11-26 22:26:59

问题


This question already has an answer here:

  • surface plots in matplotlib 7 answers

I wish to plot a surface using 3 1D arrays. To be more precise, I must plot the temperature along a rod over time. Is there a simple way to do this?

Given arrays and their dimensions:

T(n,1) temperature
x(n,1) distance
T(n,1) time

What I basically aim to create is something like this:


回答1:


Thank you, for your answers.After a couple of hours i figured it out. I had to save all temperatures over time in another matrix, 'meshgrid' x and t (whatever that is...) et voila!.



来源:https://stackoverflow.com/questions/26074542/plot-surface-from-3-1d-arrays

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!