-
Notifications
You must be signed in to change notification settings - Fork 16
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
Creating plotting.py with pandas-flavor #104
Conversation
gliderpy/plotting.py
Outdated
|
||
cbar = fig.colorbar(cs, orientation="vertical", extend="both") | ||
cbar.ax.set_ylabel(var) | ||
ax.set_ylabel("Depth (m)") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ax.set_ylabel("Depth (m)") | |
ax.set_ylabel("pressure") |
@FloraSauerbronn do you mind adding a description above, you can edit your empty box, so we have something for future reference? You can go as simple as "decorating the plot transect method." BTW, one place where you oceanography background will com in handy, is in implementing some improvements to this function. For example, you can add an if-clause to error out if the variable chosen for plotting is not in an expected list of vars that would work. At the moment I believe that we can only do |
We will need to import the plotting routine in the
to the |
About the if clause @ocefpaf --> When you say 'not in an expected list of vars,' do you mean they have a lot of NaNs? Or just outliers? Because if it's just NaNs causing the problem, it's simple, but if it's outliers, then we would need to consider the values of the limit more carefully. |
I mean the variables names. In the
That can be either
None of the others variables make sense to be in a section plot, right? However, let's keep this first PR simple and we can address that in a follow up one. reducing the context of the PRs will help us keep the momentum going and code changes/reviews easier to manage. |
Eliminate blank line Co-authored-by: Filipe <[email protected]>
…gliderpy into create-plotting
pre-commit.ci autofix |
for more information, see https://pre-commit.ci
decorating the plot transect method.