Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can plot a single 1d array as y values without needing an x coordinate #79

Merged
merged 3 commits into from
Feb 16, 2022

Conversation

nvaytet
Copy link
Collaborator

@nvaytet nvaytet commented Feb 16, 2022

Can do this:

import osyris
path = "osyrisdata/sod"
data1d = osyris.Dataset(2, scale="cm", path=path).load()
osyris.plot(data1d['hydro']['density'])

which can be useful for debugging purposes, when one wishes to visually inspect the range of values spanned by a variable.

@nvaytet nvaytet merged commit 3484b8d into main Feb 16, 2022
@nvaytet nvaytet deleted the plot_single_1d_arrays branch February 16, 2022 15:54
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.

1 participant