-
Notifications
You must be signed in to change notification settings - Fork 29
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
Integration with Plots.jl #90
Comments
Maybe worth waiting for glue modules? I think it would be unfortunate to have Plots.jl be a hard dependency of FITSIO.jl. |
You don't have to require Plots.jl, just RecipesBase.jl, which is very lightweight, depends only on Julia. Anyway I'm not going to implement this feature soon, this is just a proposal :-) |
Oh ok, that's much less of an onerous dependency. |
Sounds cool, but I think this sort of thing should go in a separate or different package. I think it is good organization to limit FITSIO.jl to For plotting specifically: the FITS format happens to be able to encode array data and WCS transformations, but you might want to plot data with a WCS solution without ever serializing to FITS. Then it is pretty weird to have this functionality in FITSIO: it really only depends on arrays and WCS.jl. In Python, plotting WCS coordinates can be done with wcsaxes which is pretty well separated from FITS I/O (and for a while, was its own separate package outside astropy). But, a Julia package to enable plots with WCS coordinates would be awesome! |
I agree. I just wanted to propose a new feature related to this package ;-)
You mean that one may want to do something like plot(::Matrix, ::WCSTransform) ? This should be fairly easy to accomplish with a recipe like @recipe function f(A::Matrix, wcs::WCSTransform)
...
end Yesterday another plotting package joined the game: https://discourse.julialang.org/t/prerelease-makie-interactive-plotting/6811. The situation currently is very fluid with regard to plotting in Julia, but if |
I've just created the package I'm going to close this issue in favor of JuliaAstro/AstroImages.jl#2 |
Besides integration with
Images.jl
, it may be useful to have integration withPlots.jl
. This can be achieved with plot recipes. I recently used them inMeasurements.jl
, they're pretty cool. If there are WCS coordinates, they could be automatically used as tics on the axes.The text was updated successfully, but these errors were encountered: