Skip to content

Conversation

@nvaytet
Copy link
Member

@nvaytet nvaytet commented Jun 10, 2025

The restriction seems unnecessary.

)
dim = x.dim
return sc.DataArray(
data=sc.array(dims=[dim], values=y.values, unit=y.unit), coords={dim: x}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Variances are missing.

)
dim = x.dim
return sc.DataArray(
data=sc.array(dims=[dim], values=y.values, unit=y.unit), coords={dim: x}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you change it so it doesn't copy the values when the dims match? It's a small impact because it's 1d but still.

@nvaytet nvaytet merged commit a99d641 into main Jun 16, 2025
4 checks passed
@nvaytet nvaytet deleted the more_usable_xyplot branch June 16, 2025 07:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants