Commit ec12625e authored by Carl Schaffer's avatar Carl Schaffer
Browse files

Merge branch 'tick_fixes' into 'master'

Tick fixes

See merge request !178
parents 0ce1c165 41a8b4ff
...@@ -6,14 +6,15 @@ import matplotlib as mpl ...@@ -6,14 +6,15 @@ import matplotlib as mpl
import matplotlib.pyplot as plt import matplotlib.pyplot as plt
import numpy as np import numpy as np
from astropy.io.fits import open as fitsopen from astropy.io.fits import open as fitsopen
from kis_tools.gris.GrisDay import GrisDay
from kis_tools.gris.GrisFitsFile import GrisFitsFile
from kis_tools.gris.GrisRun import GrisRun
from matplotlib.font_manager import FontProperties from matplotlib.font_manager import FontProperties
from matplotlib.widgets import Slider, RadioButtons from matplotlib.widgets import Slider, RadioButtons
from scipy.io.idl import readsav from scipy.io.idl import readsav
from tqdm import tqdm from tqdm import tqdm
from kis_tools.gris.GrisDay import GrisDay
from kis_tools.gris.GrisFitsFile import GrisFitsFile
from kis_tools.gris.GrisRun import GrisRun
def plot_pen_mask(filename): def plot_pen_mask(filename):
""" """
...@@ -201,5 +202,5 @@ def make_gris_locplots(folder): ...@@ -201,5 +202,5 @@ def make_gris_locplots(folder):
fig, ax = r.plot_location() fig, ax = r.plot_location()
fn_out = f"gris_{r.date.strftime('%Y%m%d')}_{r.runnumber:03d}_location.png" fn_out = f"gris_{r.date.strftime('%Y%m%d')}_{r.runnumber:03d}_location.png"
fig.savefig( fig.savefig(
join(outfolder, fn_out), bbox_inches="tight", pad_inches=-0.01, dpi=100 join(outfolder, fn_out), bbox_inches='tight', pad_inches=-0.01, dpi=100, facecolor='black'
) )
...@@ -135,14 +135,14 @@ def make_loc_plot(coords, date, uncertainties=None): ...@@ -135,14 +135,14 @@ def make_loc_plot(coords, date, uncertainties=None):
plt.ylabel("") plt.ylabel("")
# Define x & y axis # Define x & y axis
axes.set_xlim([-1050, 1050]) axes.set_xlim([-1100, 1100])
axes.set_ylim([-1050, 1050]) axes.set_ylim([-1100, 1100])
axes.tick_params( axes.tick_params(
axis="y", axis="y",
direction="in", direction="in",
pad=-1, pad=-5,
length=0, length=0,
labelsize=4, labelsize=6,
colors="red", colors="red",
grid_linestyle="dotted", grid_linestyle="dotted",
grid_linewidth=0.5, grid_linewidth=0.5,
...@@ -151,9 +151,9 @@ def make_loc_plot(coords, date, uncertainties=None): ...@@ -151,9 +151,9 @@ def make_loc_plot(coords, date, uncertainties=None):
axes.tick_params( axes.tick_params(
axis="x", axis="x",
direction="in", direction="in",
pad=-4.5, pad=-5,
length=0, length=0,
labelsize=4, labelsize=6,
colors="red", colors="red",
grid_linestyle="dotted", grid_linestyle="dotted",
grid_linewidth=0.5, grid_linewidth=0.5,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment