From 3871522080265d2beb2a05ed6a4c442fd2778c15 Mon Sep 17 00:00:00 2001 From: Robert Speck Date: Tue, 7 Aug 2018 09:21:20 +0200 Subject: [PATCH] beautified plot --- pySDC/projects/AsympConv/conv_test_to0.py | 3 --- pySDC/projects/AsympConv/conv_test_toinf.py | 5 +---- .../AsympConv/smoother_specrad_heatmap.py | 19 ++++++++----------- 3 files changed, 9 insertions(+), 18 deletions(-) diff --git a/pySDC/projects/AsympConv/conv_test_to0.py b/pySDC/projects/AsympConv/conv_test_to0.py index c049d3b704..125f200361 100644 --- a/pySDC/projects/AsympConv/conv_test_to0.py +++ b/pySDC/projects/AsympConv/conv_test_to0.py @@ -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: diff --git a/pySDC/projects/AsympConv/conv_test_toinf.py b/pySDC/projects/AsympConv/conv_test_toinf.py index d95950cfde..91098236f2 100644 --- a/pySDC/projects/AsympConv/conv_test_toinf.py +++ b/pySDC/projects/AsympConv/conv_test_toinf.py @@ -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: diff --git a/pySDC/projects/AsympConv/smoother_specrad_heatmap.py b/pySDC/projects/AsympConv/smoother_specrad_heatmap.py index ebd0e14790..260dddf51b 100644 --- a/pySDC/projects/AsympConv/smoother_specrad_heatmap.py +++ b/pySDC/projects/AsympConv/smoother_specrad_heatmap.py @@ -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 @@ -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:]