Skip to content

Commit fa20a31

Browse files
authored
Merge pull request #15487 from rmcdermo/master
Python: fix csv row display for dataplot
2 parents ee37ca8 + 6eac328 commit fa20a31

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Utilities/Python/fdsplotlib.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,8 @@ def dataplot(config_filename,**kwargs):
419419
# --- Create new figure or reuse last one ---
420420
if pp.Plot_Filename != Plot_Filename_Last:
421421
if verbose:
422-
print(f"Generating plot {irow + 2} {pltdir}{pp.Plot_Filename}...")
422+
csv_rownum = int(row["__orig_index__"]) + header_rows + 1 # true CSV 1-based line
423+
print(f"Generating plot {csv_rownum} {pltdir}{pp.Plot_Filename}...")
423424
if close_figs:
424425
plt.close('all')
425426
first_plot = True

0 commit comments

Comments
 (0)