Error
There was an error loading the page.
Edit the Python code to make a 3D plot of a surface defined parametrically.
Metadata
-
England schools
-
England university
-
Scotland schools
Taxonomy: mathcentre
Taxonomy: Kind of activity
Taxonomy: Context
Contributors
History
Toby Wood 1 year, 6 months ago
Published this.Toby Wood 1 year, 6 months ago
Created this as a copy of Toby's copy of Make a plot with matplotlib.Name | Status | Author | Last Modified | |
---|---|---|---|---|
Make a plot | draft | George Stagg | 13/09/2024 11:05 | |
Make a plot with matplotlib | draft | Christian Lawson-Perfect | 10/05/2023 13:31 | |
Make a plot with matplotlib | Ready to use | Christian Lawson-Perfect | 23/11/2023 11:37 | |
Make a plot | Ready to use | Christian Lawson-Perfect | 24/07/2024 10:28 | |
Plotting a parametric surface with Python | draft | Toby Wood | 03/04/2024 14:59 |
There are 21 other versions that do you not have access to.
Name | Type | Generated Value |
---|
python_preamble | string |
import matplotlib.pyplot as pl
|
Generated value: string
- "Unnamed part" - prompt
Parts
Code
Ask the student a question, and give any hints about how they should answer this part.
A figure, called fig
, has already been created as follows:
{code_block(python_preamble,"python")}
Now we'll plot a parametric surface in this figure.
The code below is designed to plot the particular surface
(u,v)⟼(sin(u)cos(v), sin(u)sin(v), cos(u)),0⩽u⩽π,0⩽v⩽2π.
You'll need to edit the code before it will run. Why not try changing the colour map from 'binary' to 'turbo' or 'copper'?
Use this tab to check that this question works as expected.
Part | Test | Passed? |
---|---|---|
Code | ||
Hasn't run yet |
This question is used in the following exams:
- Embedding digital skills in the mathematics curriculum by Toby Wood in Toby's workspace.
- Christian's copy of Embedding digital skills in the mathematics curriculum by Christian Lawson-Perfect in Debugging other people's stuff.
- claire's copy of Embedding digital skills in the mathematics curriculum by claire lines in claire's workspace.