Skip to content

Commit

Permalink
beautified plot
Browse files Browse the repository at this point in the history
  • Loading branch information
pancetta committed Aug 7, 2018
1 parent 4c536d2 commit 3871522
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 18 deletions.
3 changes: 0 additions & 3 deletions pySDC/projects/AsympConv/conv_test_to0.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ def compute_and_plot_specrad(Nnodes, lam):
xlist = [0.1 ** i for i in range(11)]

rc('font', **{"sans-serif": ["Arial"], "size": 24})
rc('legend', fontsize='small')
rc('xtick', labelsize='small')
rc('ytick', labelsize='small')
plt.subplots(figsize=(15, 10))

for Nsteps, color, marker in setup_list:
Expand Down
5 changes: 1 addition & 4 deletions pySDC/projects/AsympConv/conv_test_toinf.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,8 @@ def compute_and_plot_specrad(Nnodes, lam):

xlist = [10 ** i for i in range(11)]

plt.subplots(figsize=(15, 10))
rc('font', **{"sans-serif": ["Arial"], "size": 24})
rc('legend', fontsize='small')
rc('xtick', labelsize='small')
rc('ytick', labelsize='small')
plt.subplots(figsize=(15, 10))

for Nsweeps, color, marker in setup_list:

Expand Down
19 changes: 8 additions & 11 deletions pySDC/projects/AsympConv/smoother_specrad_heatmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
from matplotlib import rc
from matplotlib.colors import LogNorm

from pySDC.implementations.collocation_classes.gauss_radau_right import CollGaussRadau_Right
Expand All @@ -12,29 +11,27 @@
def compute_and_plot_specrad():
"""
Compute and plot spectral radius of smoother iteration matrix for a whole range of eigenvalues
Returns:
"""
# setup_list = [('LU', 'to0'), ('LU', 'toinf'), ('IE', 'to0'), ('IE', 'toinf')]
# setup_list = [('LU', 'to0'), ('LU', 'toinf')]
# setup_list = [('IE', 'to0'), ('IE', 'toinf')]
# setup_list = [('LU', 'toinf'), ('IE', 'toinf')]
setup_list = [('IE', 'full'), ('LU', 'full')]
setup_list = [('EX', 'to0'), ('PIC', 'to0')]
# setup_list = [('EX', 'to0'), ('PIC', 'to0')]

# set up plotting parameters
params = {'legend.fontsize': 20,
params = {'legend.fontsize': 24,
'figure.figsize': (12, 8),
'axes.labelsize': 20,
'axes.titlesize': 20,
'xtick.labelsize': 16,
'ytick.labelsize': 16,
'axes.labelsize': 24,
'axes.titlesize': 24,
'xtick.labelsize': 24,
'ytick.labelsize': 24,
'lines.linewidth': 3
}
plt.rcParams.update(params)

Nnodes = 5
Nsteps = 1
Nnodes = 3
Nsteps = 4

coll = CollGaussRadau_Right(Nnodes, 0, 1)
Qmat = coll.Qmat[1:, 1:]
Expand Down

0 comments on commit 3871522

Please sign in to comment.