We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ef2bce6 + 34d9286 commit dadc7ceCopy full SHA for dadc7ce
2 files changed
cs_util/plots.py
@@ -207,7 +207,7 @@ def plot_data_1d(
207
markers=None,
208
xlim=None,
209
ylim=None,
210
- shift_x=True,
+ shift_x=False,
211
close_fig=True,
212
):
213
"""Plot Data 1D.
@@ -271,7 +271,10 @@ def plot_data_1d(
271
for idx in range(len(x)):
272
this_x = x[idx]
273
if shift_x:
274
- this_x *= dx(idx, len(x), log=xlog)
+ if xlog:
275
+ this_x *= dx(idx, len(x), log=xlog)
276
+ else:
277
+ raise ValueError("shift_x without log not implemented yet")
278
if np.isnan(yerr[idx]).all():
279
eb = plt.plot(
280
this_x,
pyproject.toml
@@ -27,7 +27,7 @@ dependencies = [
27
"astropy>=4.0",
28
"datetime>=4.7",
29
"matplotlib>=3.3",
30
- "numpy>=1.19",
+ "numpy>=1.21",
31
"vos>=3.3",
32
]
33
0 commit comments