rougier/matplotlib-tutorial

Code Documentation

HenftyKnight opened this issue · 4 comments

Awesome Work! Thank you for creating such an amazing tutorial.
Just one note though, in your Beyond This Tutorial -> Code Documentation
You might want to change the help(plt) -> help(plt.plot) as we have imported
the matplotlib.pyplot as plt so inorder to run the help command for it's functions
help(plt.) would lead to the correct result.

Thank you

#-----------------------------------------------------------
Code documentation

The code is fairly well documented and you can quickly access a specific command from within a python session:

import matplotlib.pyplot as plt
help(plt.plot)
Help on function plot in module matplotlib.pyplot:

plot(*args, **kwargs)
Plot lines and/or markers to the
:class:~matplotlib.axes.Axes. args is a variable length
argument, allowing for multiple x, y pairs with an
optional format string. For example, each of the following is
legal::

   plot(x, y)         # plot x and y using default line style and color
   plot(x, y, 'bo')   # plot x and y using blue circle markers
   plot(y)            # plot y using x as index array 0..N-1
   plot(y, 'r+')      # ditto, but with red plusses

If x and/or y is 2-dimensional, then the corresponding columns
will be plotted.
...
#----------------------------------------------------------

Oh thanks. Can you make a PR?

@HenftyKnight Sorry for the acronym (PR) and you're right, I meant pull request.