Psychrometric - plot monthly min/max average values

Hi,
I need to plot in the psychrometric chart just 2 couple of values: MinTemp/MaxHum and MaxTemp/MinHum.
To make things more complicated, sometimes those values will be external inputs (since there is no epw file for the location, but those extreme values are available).
In this discussion @chris suggested how to get the min/max average values from the epw file. This works just fine. The problem now is how to plot the values.
Will appreciate directions to explore.
Thanks,
-A.

Hi,
I think i managed to solve this, like so:

        # plot the data on the chart
        lb_points = psy_chart.data_points
        
        #""" #########################################
        temp_minmaxlines = []
        for ipt in range(0, int(len(lb_points)/2)):
            temp_minmaxlines.append( LineSegment2D.from_end_points( lb_points[ipt], lb_points[ipt + int(len(lb_points)/2)] ) )
        min_max_lines = [from_linesegment2d(tl, 0.0) for tl in temp_minmaxlines]
        #""" #########################################
        
        points.append([from_point2d(pt) for pt in lb_points])

The relevant code is between the long hash tags (###########).
The temperature/humidity data are the outputs of the other topic i referenced above (after creating a couple of new data types) and i added an additional output for the lines.

If you have a better option, i’ll appreciate to know.
Thanks,
-A.

1 Like