I am trying to write a code to generate a rbg image of the "pillars of creation".For that I am using fits file corresponding to red,blue and green,and trying to use make_lupton_rbg to generate the rbg image.However I am getting full green image.I believe,I have to make adjustments to Q and strech values,but I cant just find anything to give it a good colour(as seen in the pictures).
import numpy as np
import matplotlib.pyplot as plt
from astropy.io import fits
from astropy.visualization import make_lupton_rgb
forc=np.float_()
r=fits.open("C:\\Users\AKASH\\Downloads\\673nmos\\673nmos.fits")[0].data
g=fits.open("C:\\Users\AKASH\\Downloads\\656nmos\\656nmos.fits")[0].data
b=fits.open("C:\\Users\AKASH\\Downloads\\502nmos\\502nmos.fits")[0].data
r = np.array(r,forc)
g = np.array(g,forc)
b = np.array(b,forc)
rgb_default = make_lupton_rgb(r,g,b,Q=1,stretch=0.1,filename="pillar.png")
plt.imshow(rgb_default, origin='lower')
plt.show()
The fits file were download from here--- https://www.spacetelescope.org/projects/fits_liberator/eagledata/
Output i am getting---
Output I should get(or atleast something like it)---



