Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 18ea892

Browse files
committed
Fixed installation section and helper function doc
format
1 parent 93e42d6 commit 18ea892

File tree

1 file changed

+14
-26
lines changed

1 file changed

+14
-26
lines changed

tutorials/introductory/getting_started.py

Lines changed: 14 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -92,24 +92,8 @@
9292
# library. Install Matplotlib for your own development environment manually or
9393
# use a third-party package distribution.
9494
#
95-
# Third-party package distributions, such as
96-
# `Anaconda <https://www.anaconda.com/>`_,
97-
# `ActiveState <https://www.activestate.com/activepython/downloads>`_,
98-
# or `WinPython <https://winpython.github.io/>`_,
99-
# already provide Matplotlib and its dependencies. They have the added benefit
100-
# of including other scientific Python libraries as well. These packages work
101-
# as is and do not require additional installations.
102-
#
103-
# Installation from source
104-
# ------------------------
105-
#
106-
# In order to install Matplotlib from the source directory, run the
107-
# following command line executions using Python and installer program ``pip``
108-
# for the latest version of Matplotlib and its dependencies. This compiles
109-
# the library from the current directory on your machine. Depending on your
110-
# operating system, you may need additional support.
111-
#
112-
# ``python -m pip install matplotlib``
95+
# The :ref:`installation-guide` contains more information about install
96+
# methods and resources for third-party package distributions.
11397
#
11498
# .. seealso::
11599
#
@@ -742,25 +726,29 @@ def autopct_format(percent, group):
742726

743727
def my_plotter(ax, data1, data2, param_dict):
744728
"""
729+
Helper function to make a graph.
730+
745731
Parameters
746732
----------
747-
:param ax: Axes
748-
:param data1: array of X data
749-
:param data2: array of Y data
750-
:param param_dict: Dictionary of keyword arguments to pass to method
733+
ax : Axes
734+
Specific Axes to graph data to
735+
data1 : array
736+
X data
737+
data2 : array
738+
Y data
739+
param_dict : dict()
740+
Dictionary of keyword arguments passes to method
751741
752742
Returns
753743
-------
754-
:returns: out : list of artists added
744+
out : list
745+
List of Artists added
755746
"""
756747
out = ax.plot(data1, data2, **param_dict)
757-
# Note: Other methods from Axes class are also applicable.
758748
return out
759749

760750
##############################################################################
761751
#
762-
# .. currentmodule:: getting_started
763-
# .. autofunction:: my_plotter
764752
#
765753
# Additional Resources
766754
# ====================

0 commit comments

Comments
 (0)