-
Notifications
You must be signed in to change notification settings - Fork 11
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
EHN: Standard Plot Return Values #343
Conversation
@carleyjmartin Can we also return the cross polar cap potential (cpcp), number of vectors, fitting model and order for the map plot? These are information showed at the bottom left of the convection map which I think lots of people are interested in, particularly the cpcp and number of vector parameters. I guess the reason None is returned for the data key in the power.py plot is probably because it's a bit complicated to return multiple plotted parameters/panels? Just finished the code review and haven't tested anything yet, will do that in the next day or two. |
@Shirling-VT I don't know why I returned None for the stats power plots: it was likely I looked at the code and decided that I didn't know what was happening in there at the time. |
Scope
This pull request makes each plotting function return a dictionary with standard return values. For each plotting function a dictionary with the following keys will be returned:
This is an example of the return values for plot_fan, this allows the user to use a return dictionary much easier, knowing where 'ax' is to overpot features and being able to add extra data if they like. This makes it easier than the current system when trying to plot multipl fov plots and things like that, you don't have to automatically know which return value in the list is the axes. The data section will be different for each plot, but you can easily see the different keys by
return_value['data'].keys()
and choose which values you want. If a return value doesn't exist, like ccrs in range time plots, it is given as None.These were all the return values we generally used, let me know if there is something that you might also like to have in this list.
issue: No issue
Approval
Number of approvals: 2 at least
Test
matplotlib version: 3.7.1
Note testers: please indicate what version of matplotlib you are using
This is a change to every plotting function so please throw whatever plotting code you have at it, lots of different keyword combos. But make sure that you are amending any return values from the original. E.G:
NOTE: THIS WILL NEED TO ALSO BE DONE FOR CURRENT PRS THAT ARE NOT MERGED INTO DEVELOP FOR NEW PLOTTING FUNCTIONS