Skip to content

Commit dadc7ce

Browse files
author
martinkilbinger
committed
Merge remote-tracking branch 'origin/develop' into args
2 parents ef2bce6 + 34d9286 commit dadc7ce

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

cs_util/plots.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ def plot_data_1d(
207207
markers=None,
208208
xlim=None,
209209
ylim=None,
210-
shift_x=True,
210+
shift_x=False,
211211
close_fig=True,
212212
):
213213
"""Plot Data 1D.
@@ -271,7 +271,10 @@ def plot_data_1d(
271271
for idx in range(len(x)):
272272
this_x = x[idx]
273273
if shift_x:
274-
this_x *= dx(idx, len(x), log=xlog)
274+
if xlog:
275+
this_x *= dx(idx, len(x), log=xlog)
276+
else:
277+
raise ValueError("shift_x without log not implemented yet")
275278
if np.isnan(yerr[idx]).all():
276279
eb = plt.plot(
277280
this_x,

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ dependencies = [
2727
"astropy>=4.0",
2828
"datetime>=4.7",
2929
"matplotlib>=3.3",
30-
"numpy>=1.19",
30+
"numpy>=1.21",
3131
"vos>=3.3",
3232
]
3333

0 commit comments

Comments
 (0)