Commit b530bdb1 authored by Martin Reinecke's avatar Martin Reinecke
Browse files

small tweaks

parent e5a4f4e3
Pipeline #106043 passed with stages
in 20 minutes and 54 seconds
...@@ -77,10 +77,11 @@ ...@@ -77,10 +77,11 @@
``` python ``` python
import numpy as np import numpy as np
import nifty8 as ift import nifty8 as ift
import matplotlib.pyplot as plt import matplotlib.pyplot as plt
plt.rcParams['figure.dpi'] = 100
plt.style.use("seaborn-notebook") plt.style.use("seaborn-notebook")
``` ```
%% Cell type:markdown id: tags: %% Cell type:markdown id: tags:
......
...@@ -21,10 +21,12 @@ ...@@ -21,10 +21,12 @@
%% Cell type:code id: tags: %% Cell type:code id: tags:
``` python ``` python
import nifty8 as ift import nifty8 as ift
import matplotlib.pyplot as plt import matplotlib.pyplot as plt
plt.rcParams['figure.dpi'] = 100
plt.style.use("seaborn-notebook")
import numpy as np import numpy as np
ift.random.push_sseq_from_seed(43) ift.random.push_sseq_from_seed(43)
n_pix = 256 n_pix = 256
x_space = ift.RGSpace(n_pix) x_space = ift.RGSpace(n_pix)
...@@ -36,11 +38,11 @@ ...@@ -36,11 +38,11 @@
# Plotting routine # Plotting routine
def plot(fields, spectra, title=None): def plot(fields, spectra, title=None):
# Plotting preparation is normally handled by nifty8.Plot # Plotting preparation is normally handled by nifty8.Plot
# It is done manually here to be able to tweak details # It is done manually here to be able to tweak details
# Fields are assumed to have identical domains # Fields are assumed to have identical domains
fig = plt.figure(tight_layout=True, figsize=(12, 3.5)) fig = plt.figure(tight_layout=True, figsize=(10, 3))
if title is not None: if title is not None:
fig.suptitle(title, fontsize=14) fig.suptitle(title, fontsize=14)
# Field # Field
ax1 = fig.add_subplot(1, 2, 1) ax1 = fig.add_subplot(1, 2, 1)
......
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