These are chat archives for astropy/astropy

18th
Jun 2016
Thomas Robitaille
@astrofrog
Jun 18 2016 06:12
@michealjroberts_twitter - the easiest way to make the suggestion to make sure I have a record of it is to open an issue in https://github.com/aplpy/aplpy
Michael Roberts
@michealjroberts_twitter
Jun 18 2016 09:50
@astrofrog Hi Thomas, could I check that it's not something which is already implemented by default via matplotlib. It relates to rasterisation for the grids in APLpy within a gridspec layout.
Thomas Robitaille
@astrofrog
Jun 18 2016 11:15
@michealjroberts_twitter - I’m not familiar with gridspec unfortunately, so I’m not sure
you mean you want to rasterize the grid lines?
Michael Roberts
@michealjroberts_twitter
Jun 18 2016 17:48
@astrofrog Yeh, I'd like to rasterise the gridlines for ax.add_grid() where, for me, ax = aplpy.FITSFigure('myfits.fits', figure=fig, subplot=list(gridspec_layout[0].get_position(fig).bounds), dimensions=[0, 1], slices=[0]). (and gridspec_layout = gridspec.GridSpec(1,2)). I've tried ax_set_rasterized(True), as well as ax.add_grid(rasterized='True') and ax.add_grid(set_rasterized='True') all to no avail. (I'm trying to incidently save the figure to EPS quality, so I would be very pleased if this could be introduced or if anyone else had any further suggestions...?)
Thomas Robitaille
@astrofrog
Jun 18 2016 18:18
I don’t think there’s any way to easily do it with APLpy unfortunately
I’m currently working on re-building APLpy from scratch on top of WCSAxes
Which is much closer to matplotlib
so maybe you could try and see if you can do what you need with WCSAxes?
Michael Roberts
@michealjroberts_twitter
Jun 18 2016 18:28
I've messed around with WCSAxes, I'll have a look at what can be achieved with WCSAxes in terms of rasterisation. I think I may extend out some help to the stackoverflow community as I think it is matplotlib which is the key to this...thank you for the help, nonetheless.
I do prefer APLpy tho, for what it is worth! :smile: