-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
1D line plot with data on the x axis #575
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
Comments
I don't think we have an easy way to do this now. Seaborn uses the keyword argument |
Not possible now. Wouldn't be much trouble to add it though. @drewokane has been working on generalizing the 1d plotting in #566. This might be a nice thing to include. |
I agree |
Yes, 👍 |
I'm fine with
I'm not married to either of the opinions I just mentioned, just a few thoughts. |
Would it make sense to have such minimalistic |
I wonder if it makes more sense to make |
In a first step at least, we could add the
Yes. This might be a bit of an undertaking as there will be several possible cases to handle but this is a good idea! |
If an argument is a 1D DataArray, how do we indicate this array's data? The best I can think of is to use some sort of sentinel value, maybe |
I think plotting two 1D variables from one Dataset against each other may be useful. However, I was not able to figure out yet how to proceed with it (see my amateur PR). |
@kuchaale I see you have an open PR. Are you planning to revisit this soon? If not, I'd like to build off what you started and tackle this bit (not the Dataset method)
|
@dcherian go ahead. I planned to revisit it, but it would not be definitely soon. |
@kuchaale Thanks! |
Consider the following Dataset, representing a function f = cos(z)
If I call
xray naturally puts "z" on the x-axis.
However, since z represents the vertical dimension, it would be more natural do put it on the y-axis, i.e.
This is conventional in atmospheric science and oceanography for buoy data or balloon data.
Is there an easy way to do this with xray's plotting functions? I scanned the code and didn't see an obvious solution, but maybe I missed it.
The text was updated successfully, but these errors were encountered: