diff --git a/docs/conf.py b/docs/conf.py index ff15942a..0c3c7814 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -60,14 +60,14 @@ # Sphinx gallery configuration subsection_order = ExplicitOrder([ - '../plot_types/basic', - '../plot_types/statistical', - '../plot_types/gridded', - '../plot_types/map', - '../examples/line_plots', - '../examples/scatter_plots', - '../examples/histograms', - '../examples/map_plots' + '../galleries/plot_types/basic', + '../galleries/plot_types/statistical', + '../galleries/plot_types/gridded', + '../galleries/plot_types/map', + '../galleries/examples/line_plots', + '../galleries/examples/scatter_plots', + '../galleries/examples/histograms', + '../galleries/examples/map_plots' ]) sphinx_gallery_conf = { diff --git a/galleries/examples/histograms/histogram.py b/galleries/examples/histograms/histogram.py deleted file mode 100644 index d345dbee..00000000 --- a/galleries/examples/histograms/histogram.py +++ /dev/null @@ -1,46 +0,0 @@ -""" -Creating a simple histogram ---------------------------- - -Below is an example of how to plot a basic -histogram plot using EMCPy's plotting method. - -""" - -import numpy as np -import matplotlib.pyplot as plt - -from emcpy.plots.plots import Histogram -from emcpy.plots.create_plots import CreatePlot, CreateFigure - - -def main(): - # Generate test data for histogram plots - mu = 100 # mean of distribution - sigma = 15 # standard deviation of distribution - data = mu + sigma * np.random.randn(437) - - # Create histogram object - hst = Histogram(data) - hst.color = 'tab:green' - hst.alpha = 0.7 - hst.label = 'data' - - # Create histogram plot object and add features - plot1 = CreatePlot() - plot1.plot_layers = [hst] - plot1.add_title(label='Test Histogram Plot') - plot1.add_xlabel(xlabel='X Axis Label') - plot1.add_ylabel(ylabel='Y Axis Label') - plot1.add_legend() - - # Create figure and save as png - fig = CreateFigure() - fig.plot_list = [plot1] - fig.create_figure() - - plt.show() - - -if __name__ == '__main__': - main()