Skip to content

Commit

Permalink
add image
Browse files Browse the repository at this point in the history
  • Loading branch information
9il committed Apr 23, 2015
1 parent 1fbc0c1 commit 61988a4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Binary file added docs/images/hist.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 5 additions & 2 deletions docs/source/examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ There are two projects can be used with the D programming language:
+ Plotcli_ is a command line application written in D that can create plots from text/csv files and from piped data, making it useful during data analysis.
+ PLplot_ is a cross-platform software package written in С for creating scientific plots. It includes low-level D bindings.

But these two are not so convenient to use in comparison with matplotlib.
But these two are not so convenient to use, in comparison with matplotlib.

matplotlib_ is a python 2D plotting library which produces publication quality figures in a variety of hardcopy formats and interactive environments across platforms. matplotlib can be used in python scripts, the python and ipython shell, web application servers, and different graphical user interface toolkits. To integrate with python the PyD package can be used.

Expand All @@ -65,12 +65,15 @@ The minimal configuration file for this example is
.. note:: The python should be `installed <https://www.python.org/downloads/>`_. PyD searches the version of the python that noted in the PyD's sub-configuration (``"pyd": "python34"`` in this example). For more information, see `the PyD's dub configuration file <https://github.com/ariovistus/pyd/blob/master/dub.json>`_.

The `following program <https://github.com/9il/thenextafterc/tree/master/examples/matplotlib>`_
reads data from file and shows histogram.
reads data from file and shows a histogram.

.. literalinclude:: ../../examples/matplotlib/source/app.d
:language: d
:tab-width: 4

.. image:: /images/hist.png
:alt: Histogram image

.. _matplotlib: http://matplotlib.org
.. _Plotcli: https://github.com/BlackEdder/plotd
.. _PyD: http://pyd.readthedocs.org
Expand Down

0 comments on commit 61988a4

Please sign in to comment.