pyrc.visualization.plot#

class BarPlot(bar_values, bar_positions=None, y_title='Heat / kWh', **kwargs)#

Bases: PlotMixin

property bar_width#
format()#
plot()#
class DoubleY(x, ys_left: list, ys_right: list, labels_left=None, labels_right=None, y_title_left='Heat Flux / W', y_title_right='Temperature / K', marker_size=6, **kwargs)#

Bases: PlotMixin

property ax_left#
format()#
plot()#
scale_right_axis()#

Scales the right axis so that the major ticks matches the left one.

class DoubleYSeparated(x, ys_left: list, ys_right: list, labels=None, y_title_left='Heat Flux / W', y_title_right='Temperature / K', marker_size=6, same_marker=False)#

Bases: DoubleY

format()#
plot()#
class LinePlot(x, ys: list | ndarray, labels=None, y_scale=1, y_title='Values', linewidth=1.8, x_title=None, width_mm=160, height_mm=90)#

Bases: PlotMixin

format()#
plot(x=None, ys=None, labels=None)#
plot_marker()#
plot_stack()#
class PlotMixin(x, ys, y_title='Heat Flux / W', marker_size=6, x_title=None, width_mm=160, height_mm=9)#

Bases: object

close()#
color_iter()#
property colors: list[tuple[float, float, float]]#
format()#
format_numeric_ticks()#
formate_x_datetime(start=None, end=None)#
line_style_iter()#
marker_iter()#
property markers: list[str]#
save(path)#
show()#
show_legend(**kwargs)#
class TimeBarPlot(bar_values, bar_positions, y_title='Heat / kWh', **kwargs)#

Bases: BarPlot

property bar_width: float#
format()#
class TimePlot(x, ys: list | ndarray, labels=None, y_scale=1, y_title='Values', linewidth=1.8, x_title=None, width_mm=160, height_mm=90)#

Bases: LinePlot

format()#
format_x_axis_to_date(fig, ax)#
seconds_to_dates(seconds: list, start_date=datetime.datetime(2023, 1, 1, 0, 0), return_array=False) list | ndarray#