Skip to content

Commit

Permalink
corrected ticks in movie plots
Browse files Browse the repository at this point in the history
  • Loading branch information
clairekope committed Apr 7, 2022
1 parent d26ad01 commit 37e4ff6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions plot_pres_4panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
yt.enable_parallelism()
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.colors import LogNorm, SymLogNorm
from matplotlib.ticker import FixedLocator, NullFormatter, NullLocator
from matplotlib.colors import LogNorm
from matplotlib.ticker import FixedLocator, MultipleLocator
from mpl_toolkits.axes_grid1 import ImageGrid
from mpl_toolkits.axes_grid1.anchored_artists import AnchoredSizeBar

Expand Down Expand Up @@ -50,6 +50,10 @@
grid.axes_llc.tick_params(labelleft=False, labelbottom=False)
for ax in grid:
ax.tick_params(which='both', axis='both', direction='in')
ax.xaxis.set_major_locator(MultipleLocator(10))
ax.xaxis.set_minor_locator(MultipleLocator(5))
ax.yaxis.set_major_locator(MultipleLocator(10))
ax.yaxis.set_minor_locator(MultipleLocator(5))

d_norm = LogNorm(1e-32, 1e-24)
t_norm = LogNorm(1e3, 1e8)
Expand Down

0 comments on commit 37e4ff6

Please sign in to comment.