.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "glr_examples/view/plot_base_distributions.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code or to run this example in your browser via Binder .. rst-class:: sphx-glr-example-title .. _sphx_glr_glr_examples_view_plot_base_distributions.py: ================================================ Plot base distributions ================================================ plots the base-histogram and bar-distribution from categorized labels. .. GENERATED FROM PYTHON SOURCE LINES 9-12 .. code-block:: Python # Author: L.Kouadio # Licence: BSD-3-clause .. GENERATED FROM PYTHON SOURCE LINES 13-30 .. code-block:: Python from watex.view.plot import QuickPlot from watex.datasets import load_bagoue data = load_bagoue ().frame qplotObj= QuickPlot(xlabel = 'Anomaly type', ylabel='Number of occurence (%)', lc='b', tname='flow') qplotObj.fig_size = (7, 5) qplotObj.sns_style = 'ticks' qplotObj.fit(data) # uncomment this for numerical plots views # qplotObj. barcatdist(basic_plot =False, # groupby=['shape' ]) # for categorization data of staep 2 can be fetched # and plot as from watex.datasets import fetch_data data = fetch_data ('Bagoue original').get ('data=dfy2') qplotObj.fit(data). barcatdist(basic_plot =False, groupby=['shape' ]) .. image-sg:: /glr_examples/view/images/sphx_glr_plot_base_distributions_001.png :alt: plot base distributions :srcset: /glr_examples/view/images/sphx_glr_plot_base_distributions_001.png :class: sphx-glr-single-img .. rst-class:: sphx-glr-script-out .. code-block:: none QuickPlot(savefig= None, fig_num= 1, fig_size= (7, 5), ... , classes= None, tname= flow, mapflow= False) .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.219 seconds) .. _sphx_glr_download_glr_examples_view_plot_base_distributions.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: binder-badge .. image:: images/binder_badge_logo.svg :target: https://mybinder.org/v2/gh/watex/watex/0.3.X?urlpath=lab/tree/notebooks/glr_examples/view/plot_base_distributions.ipynb :alt: Launch binder :width: 150 px .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_base_distributions.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_base_distributions.py ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_