ladybug_display.extension.psychchart module

Method to draw an PsychrometricChart as a VisualizationSet.

ladybug_display.extension.psychchart.psychrometric_chart_to_vis_set(psych_chart, data=None, legend_parameters=None, z=0, plot_wet_bulb=False)[source]

Get a Ladybug PsychrometricChart represented as a VisualizationSet.

Parameters:
  • psych_chart – A Ladybug PsychrometricChart object.

  • data – An optional list of data collection objects, which are aligned with the psychrometric chart temperature and relative_humidity and will generate additional colored AnalysisGeometries on the chart.

  • legend_parameters – An optional LegendParameter object or list of LegendParameter objects to customize the display of the data on the psychrometric chart. Note that this relates only to the data supplied as input for this method and, to customize the display of the time/frequency mesh, the PsychrometricChart’s native legend_parameters should be edited. If a list is used here, this should align with the input data (one legend parameter per data collection).

  • z – A number for the Z-coordinate to be used in translation. (Default: 0).

  • plot_wet_bulb – Boolean to note whether the psychrometric chart should be plotted with lines of constant enthalpy (False) or lines of constant wet bulb temperature (True). (Default: False).

Returns:

A VisualizationSet with the psychrometric chart represented several ContextGeometries and an AnalysisGeometry. This includes these objects in the following order.

  • Title – A ContextGeometry for the title and border around the psychrometric chart.

  • Temperature_Axis – A ContextGeometry with lines and text for the Temperature (X) axis of the psychrometric chart.

  • Humidity_Axis – A ContextGeometry with lines and text for the Humidity (Y) axis of the psychrometric chart.

  • Relative_Humidity_Lines – A ContextGeometry with lines and text for the relative humidity of the psychrometric chart.

  • Enthalpy_Lines – A ContextGeometry with lines and text for the enthalpy of the psychrometric chart. This layer will not be included if plot_wet_bulb is True.

  • Wet_Bulb_Lines – A ContextGeometry with lines and text for the wet bulb temperature of the psychrometric chart. This layer will not be included if plot_wet_bulb is False.

  • Analysis_Data – An AnalysisGeometry for the data on the psychrometric chart. This will include multiple data sets if the data input is provided.