Skip to content
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

Disappearance of y-axis label, ticks, ticklabels #515

Open
wtbarnes opened this issue Apr 8, 2022 · 0 comments
Open

Disappearance of y-axis label, ticks, ticklabels #515

wtbarnes opened this issue Apr 8, 2022 · 0 comments

Comments

@wtbarnes
Copy link
Member

wtbarnes commented Apr 8, 2022

Describe the bug

I have a tall skinny NDCube,

data = np.random.rand(4923,44,44)
wcs = astropy.wcs.WCS(naxis=3)
wcs.wcs.ctype = 'HPLN-TAN', 'HPLT-TAN', 'WAVE', 
wcs.wcs.cunit =  'deg', 'deg', 'm'
wcs.wcs.cdelt = 0.00012694444093439315, 0.00012722222341431512, 6.500000017695121e-14 
wcs.wcs.crpix = 0.0,  0.0,  1.0
wcs.wcs.crval = 0.0, 0.0,  1.799997462288593e-09
my_cube = ndcube.NDCube(data, wcs=wcs)

If I plot a single slice (in latitude), I see the x-axis has labels corresponding to the latitude and the y-axis corresponding to wavelength,

my_cube[:,0,:].plot()

image

However, if I plot a smaller section in wavelength space of the cube, the y-axis labels disappear

my_cube[950:1125,0,:].plot()

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant