This commit is contained in:
Roman Krivonos
2024-08-27 14:02:54 +03:00
parent 5292290a35
commit 6781f091f9
5 changed files with 19 additions and 9 deletions

View File

@@ -4,7 +4,7 @@ __author__ = "Roman Krivonos"
__copyright__ = "Space Research Institute (IKI)"
from astropy.table import Table, Column
from matplotlib import ticker
import matplotlib.pyplot as plt
import sys
@@ -51,30 +51,38 @@ ax1.ticklabel_format(style='sci', axis='y', scilimits=(0,0))
ax2.ticklabel_format(style='sci', axis='y', scilimits=(0,0))
ax3.ticklabel_format(style='sci', axis='y', scilimits=(0,0))
ax1.xaxis.set_minor_locator(ticker.MultipleLocator(10))
ax2.xaxis.set_minor_locator(ticker.MultipleLocator(10))
ax3.xaxis.set_minor_locator(ticker.MultipleLocator(10))
ax1.yaxis.set_minor_locator(ticker.MultipleLocator(0.2))
ax2.yaxis.set_minor_locator(ticker.MultipleLocator(0.2))
ax3.yaxis.set_minor_locator(ticker.MultipleLocator(0.2))
lon=(df1['LON1']+df1['LON2'])/2
ax1.errorbar(lon, df1['GRXE_SIM_FLUX']/scale,
yerr=df1['GRXE_SIM_ERROR']/scale,
xerr=(df1['LON2']-df1['LON1'])/2,
fmt='o' )
fmt='o', color='black')
ax1.grid(visible=True)
lon=(df2['LON1']+df2['LON2'])/2
ax2.errorbar(lon, df2['GRXE_SIM_FLUX']/scale,
yerr=df2['GRXE_SIM_ERROR']/scale,
xerr=(df2['LON2']-df2['LON1'])/2,fmt='o' )
xerr=(df2['LON2']-df2['LON1'])/2,fmt='o' , color='black')
ax2.grid(visible=True)
lon=(df3['LON1']+df3['LON2'])/2
ax3.errorbar(lon, df3['GRXE_SIM_FLUX']/scale,
yerr=df3['GRXE_SIM_ERROR']/scale,
xerr=(df3['LON2']-df3['LON1'])/2, fmt='o' )
xerr=(df3['LON2']-df3['LON1'])/2, fmt='o' , color='black')
ax3.grid(visible=True)
#x = np.arange(-10, 10, 0.001)
#plot normal distribution with mean 0 and standard deviation 1
#plt.plot(x, norm.pdf(x, 0, 1), color='red', linewidth=2)
plt.xlabel('Galactic Longitude',fontsize=14, fontweight='normal')
plt.xlabel('Galactic Longitude, deg.',fontsize=14, fontweight='normal')
ax2.set_ylabel('GRXE flux, x100 mCrab',fontsize=14, fontweight='normal')
#plt.xscale('linear')