Skip to content

select several labels at a time in plots #25

@Tesshub

Description

@Tesshub

It'd be nice to be able to select several labels using method 'plot' of Plumber class.
For instance:

plumber.plot(
select= ["degC", "heatflux"],
select= "in",
start=pd.Timestamp("2025-02-25 09:00:00").tz_localize("UTC"),
stop=pd.Timestamp("2025-02-26 12:00:00").tz_localize("UTC"),
)

Right now, i'm doing this:

TEMP_list = plumber.select("degC")
HF_list = plumber.select("heatflux")
plumber.plot(
select= HF_list + TEMP_list,
select= "in",
start=pd.Timestamp("2025-02-25 09:00:00").tz_localize("UTC"),
stop=pd.Timestamp("2025-02-26 12:00:00").tz_localize("UTC"),
)
It works, but not elegant.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions