aplpy/aplpy — Issue #44: Problem with the grid for glat
Author: Szimcha
Created: 2011-11-03 13:07:07+00:00
State: open

Hello! Now I've got a problem when I try to display a grid. It works only for the x-axis (glon) but not for the y-axis (glat). Might this be a BUG or did I do something wrong?
I tried it with this script and used one of your example images:

import aplpy
import numpy

image=aplpy.FITSFigure("MSX_E.fits")
image.show_grayscale(invert=True)
image.tick_labels.set_xformat('dd.d')
image.tick_labels.set_yformat('dd.d')
image.set_tick_labels_font(size='small')

image.add_grid()
image.grid.set_color('black')
image.grid.set_alpha(0.3)
image.grid.set_xspacing(0.2)
image.grid.set_yspacing(0.2)
image.grid.set_linestyle('dashed')
image.grid.set_linewidth(0.8)

Thank you!