EGR 103/Fall 2021/Lab 8

From PrattWiki
Revision as of 16:02, 19 October 2021 by DukeEgr93 (talk | contribs) (Created page with "The following document is meant as an outline of what is covered in this assignment. == Typographical Errors == None yet! == Specific Problems == * Be sure to put the approp...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The following document is meant as an outline of what is covered in this assignment.

Typographical Errors

None yet!

Specific Problems

  • Be sure to put the appropriate version of the honor code -- if you use the examples from Pundit, the original author is either DukeEgr93 or Michael R. Gustafson II depending on how you want to cite things.

Chapra 2.22

  • Don't stare at the top half of the figure too long, or you will get sleepy. Very sleeeeeeepy…
  • Since you are adding two different kinds of axes, you will need to create the figure first and then create two different axis handles - a regular one for the top and a 3-D one for the bottom.
  • Use fig.set_size_inches(6, 8, forward=True) to make the graph the correct size.
  • Don't forget fig.tight_layout()

Chapra 3.9

  • To see all the colormaps, after importing the cm group just type
help(cm)
to see the names or go to Colormap Reference to see the color maps - only the ones listed with the help command are actually installed. Avoid the qualitative maps, flag, and prism.

Chapra 15.5

  • Be sure to convert the original data sets into appropriately-shaped matrices before plotting.
  • Use the ax.set() command for labels and tick locations and remember the kwargs to set tick locations are xticks, yticks, and (though not needed here) zticks; those will take an array or list of where you want ticks.

Sphere

  • It should look like a sphere! Use fig.set_size_inches(6, 6, forward=True) to make the graph the correct size - if the figure window isn't square, the sphere will not actually look...spherical.
  • Don't forget to make it not blue!