Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
9il committed Apr 23, 2015
1 parent 31e91b3 commit 1fbc0c1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
*.dub

*.sublime-workspace

Expand All @@ -14,3 +15,5 @@ examples/matplotlib/.dub/build/application-debug-posix.osx-x86_64-dmd_2067-B22D9
examples/matplotlib/dub.selections.json

examples/matplotlib/atmosphere_gm_charts

examples/matplotlib/plotting_example
3 changes: 2 additions & 1 deletion docs/source/examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ 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 `example <>`_
The `following program <https://github.com/9il/thenextafterc/tree/master/examples/matplotlib>`_
reads data from file and shows histogram.

.. literalinclude:: ../../examples/matplotlib/source/app.d
:language: d
Expand Down
2 changes: 1 addition & 1 deletion examples/matplotlib/source/app.d
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,6 @@ import matplotlib.pyplot as plt
num_bins = 50
ax = plt.subplot()
n, bins, patches = ax.hist(sample, num_bins, normed=1, label='sample')
n, bins, patches = ax.hist(sample, num_bins, normed=1)
plt.show()
`;

0 comments on commit 1fbc0c1

Please sign in to comment.