From 1d79d987cc64d3d19d692babf5d895384c68947b Mon Sep 17 00:00:00 2001 From: drebs Date: Thu, 13 Jul 2017 15:22:21 -0300 Subject: [doc] add image example to benchmark with python page --- docs/misc/benchmarks-python-graphs.png | Bin 0 -> 26295 bytes docs/misc/benchmarks-python-graphs.rst | 12 +++++++++--- 2 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 docs/misc/benchmarks-python-graphs.png diff --git a/docs/misc/benchmarks-python-graphs.png b/docs/misc/benchmarks-python-graphs.png new file mode 100644 index 00000000..1577c589 Binary files /dev/null and b/docs/misc/benchmarks-python-graphs.png differ diff --git a/docs/misc/benchmarks-python-graphs.rst b/docs/misc/benchmarks-python-graphs.rst index 4d1db339..79d34925 100644 --- a/docs/misc/benchmarks-python-graphs.rst +++ b/docs/misc/benchmarks-python-graphs.rst @@ -5,6 +5,15 @@ This page documents an example of how to query elasticsearch and plot the results with python. We are currently using ``kibana`` to plot and show graphs, but in the future we might want/need the flexibility of python for that. +Generated image +--------------- + +.. image:: benchmarks-python-graphs.png + :alt: Example of image generated with the code above. + +Code example +------------ + Some notes about the code example: * Depends on ``elasticsearch`` for querying and ``matplotlib`` for plotting. @@ -12,9 +21,6 @@ Some notes about the code example: * Commit datetime ranges (`1 `_, `2 `_, `3 `_) can be put in place to limit results. -Code example ------------- - .. code:: python #!/usr/bin/env python -- cgit v1.2.3