Skip to content
Advertisement

How can I label my axis after it print out all the data and mark for each data?

The coding below is my code. I would like to label the axis after it print all the data and the mark for each data. I don’t know why the label name only display at the begin.

JavaScript

The content of the Surface.txt is

JavaScript

Advertisement

Answer

You can accomplish that by also adding the set_label commands inside the def animate() function like this

JavaScript

So the final program will look like shown below :

JavaScript
Advertisement