Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added some hyphens in plots #389

Merged
merged 1 commit into from
Jan 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions pySDC/projects/Resilience/strategies.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ def __init__(self, **kwargs):

@property
def label(self):
return r'$\Delta t$ adaptivity'
return r'$\Delta t$-adaptivity'

def get_fixable_params(self, maxiter, **kwargs):
"""
Expand Down Expand Up @@ -716,7 +716,7 @@ def __init__(self, **kwargs):

@property
def label(self):
return r'$k$ adaptivity'
return r'$k$-adaptivity'

def get_custom_description(self, problem, num_procs):
'''
Expand Down Expand Up @@ -1949,4 +1949,4 @@ def get_reference_value(self, problem, key, op, num_procs=1):

@property
def label(self):
return r'$\Delta t$-$k~\mathrm{adaptivity}$'
return r'$\Delta t$-$k$-adaptivity'
8 changes: 4 additions & 4 deletions pySDC/projects/Resilience/work_precision.py
Original file line number Diff line number Diff line change
Expand Up @@ -836,7 +836,7 @@ def get_configs(mode, problem):

for num_procs in [4, 1]:
plotting_params = (
{'ls': ls[num_procs], 'label': fr'$\Delta t$ adaptivity $N$={num_procs}x1'} if num_procs > 1 else {}
{'ls': ls[num_procs], 'label': fr'$\Delta t$-adaptivity $N$={num_procs}x1'} if num_procs > 1 else {}
)
configurations[num_procs] = {
'strategies': [AdaptivityStrategy(useMPI=True)],
Expand All @@ -853,7 +853,7 @@ def get_configs(mode, problem):
'num_procs': num_procs,
'plotting_params': {
'ls': ls.get(num_procs * 3, '-'),
'label': rf'$\Delta t$-$k$ adaptivity $N$={num_procs}x3',
'label': rf'$\Delta t$-$k$-adaptivity $N$={num_procs}x3',
},
}

Expand Down Expand Up @@ -1104,7 +1104,7 @@ def get_configs(mode, problem):
'strategies': [AdaptivityPolynomialError(useMPI=True)],
'num_procs': 1,
'num_procs_sweeper': 3,
'plotting_params': {'label': r'$\Delta t$-$k$ adaptivity $N$=1x3'},
'plotting_params': {'label': r'$\Delta t$-$k$-adaptivity $N$=1x3'},
}
configurations[-1] = {
'strategies': [
Expand All @@ -1119,7 +1119,7 @@ def get_configs(mode, problem):
'strategies': [AdaptivityStrategy(useMPI=True)],
'custom_description': desc,
'num_procs': 4,
'plotting_params': {'label': r'$\Delta t$ adaptivity $N$=4x1'},
'plotting_params': {'label': r'$\Delta t$-adaptivity $N$=4x1'},
}

elif mode == 'RK_comp_high_order':
Expand Down