Exemple #1
0
 def test_boxplot(self):
     '''
     Test the :mod:`buildingspy.io.Plotter.boxplot`
     function.
     '''
     import numpy as np
     # Construct 3 days of data with 1/2 hour time interval
     # The first time stamp is 0, the last time stamp is 72
     t = np.arange(0, 24 * 3 + 0.5, 0.5)
     y = t
     # Convert to period of 24 hours
     #        (tP, y) = Plotter.convertToPeriodic(24, t, y)
     # Create plot
     Plotter.boxplot(t,
                     y,
                     increment=0.5,
                     nIncrement=2 * 24,
                     notch=0,
                     sym='b+',
                     vert=1,
                     whis=1.5,
                     positions=None,
                     widths=None,
                     patch_artist=False,
                     bootstrap=None,
                     hold=None)
    def test_boxplot(self):
        """
        Test the :mod:`buildingspy.io.Plotter.boxplot`
        function.
        """
        import numpy as np
        # Construct 3 days of data with 1/2 hour time interval
        # The first time stamp is 0, the last time stamp is 72
        t = np.arange(0, 24 * 3 + 0.5, 0.5)
        y = t
        # Convert to period of 24 hours
#        (tP, y) = Plotter.convertToPeriodic(24, t, y)
        # Create plot
        Plotter.boxplot(t, y, increment=0.5, nIncrement=2 * 24,
                        notch=0, sym='b+', vert=1, whis=1.5,
                        positions=None, widths=None, patch_artist=False, bootstrap=None, hold=None)