Skip to content
Advertisement

Surface plot for the profile

I am trying to plot the surface profile but I am getting this only. I don’t know why it’s not plotting the surface profile. Where is the mistake?

enter image description here

Where am I going wrong ? I have already mentioned all the axes but all I am getting is the above figure. Can anybody help in figuring it out?

JavaScript

Advertisement

Answer

You are creating an ax object before you have created a fig object, while you are creating new fig objects inside of your for loop. Move the creation of fig outside of the for loop.

JavaScript

surface plot

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement