:orphan:

.. _section_example_fastrocs_shapedatabaseclienthistogram:

Shape Database Client Histogram
===================================

.. code-block::

   ShapeDatabaseClientHistogram.py <server:port> <query> <results> [num_hits = 100]

Example script to send a query to a specified ShapeDatabaseServer and
print the histogram of scores for the entire database of
molecules. The histogram is a simple ASCII representation of the
distribution. The histogram will also be updated in 'real-time' as the
query progresses.

.. only:: oehtml

   .. admonition:: Download code

         :download:`ShapeDatabaseClientHistogram.py <../../../../../wrappers/python/examples/fastrocs/ShapeDatabaseClientHistogram.py>`

      .. :ref:`Full listing. <listing-ShapeDatabaseClientHistogram.py>`

      .. literalinclude:: ../../../../../wrappers/python/examples/fastrocs/ShapeDatabaseClientHistogram.py

.. only:: oepdf

   .. oe:source:: ShapeDatabaseClientHistogram.py
      :language: python
