-
-
Notifications
You must be signed in to change notification settings - Fork 54
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
Plotting circles #8
Conversation
output = list() | ||
|
||
for reg in region_list: | ||
temp = str(reg.__class__) |
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.
you could just use the region class directly, rather than the string name of the class
For API, I like |
+1 to |
What about plotting SkyRegions? Ok to use WCSaxis? |
yes, that's the right thing to do in examples, but that doesn't need to be part of the API (as long as the API is readily usable with wcsaxes) |
I don't understand. Let met explain my problem again. This is how it's done in gammapy
So the WCSaxis is actually part of the API. My question is basically if I can copy&paste this function to astropy/regions or if we want to come up with another solution. |
I understand better now. For now, yes, go with that. I'm not sure if there's a non-wcs-axis way to get the transforms easily. |
This looks great! Using WCSAxes sounds good to me. |
I changed the API and added a basic test |
OK, will review. |
@joleroi say if you think this is ready to merge, or merge it yourself if you'd like. Others (@cdeil, @astrofrog, myself) are starting to hack on other aspects of the code. It would be nice to have this merged, but would also be nice to have it merged with passing tests. |
Changes Unknown when pulling 7a2f152 on joleroi:ploting into * on astropy:master*. |
Example for plotting astropy.regions
@keflavich, @astrofrog
To run an example go to
regions/plotting
and run