Skip to content

Commit

Permalink
Rename to plotVariable
Browse files Browse the repository at this point in the history
  • Loading branch information
fsimonis committed Feb 6, 2025
1 parent 1426f92 commit 5bdf26b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tools/mapping-tester/plotconv.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def plotBack(
plt.savefig(filename + ".pdf")


def plotConv(df: pl.DataFrame, yname: str, ylabel: str, filename: str):
def plotVariable(df: pl.DataFrame, yname: str, ylabel: str, filename: str):
plotBack(
df,
yname=yname,
Expand Down Expand Up @@ -125,25 +125,25 @@ def main(argv):
if not df["mesh A"].dtype.is_numeric():
print("Note: 'mesh A' isn't numeric. The x-axis will not use log scaling.")

plotConv(
plotVariable(
df,
yname="relative-l2",
ylabel="relative-l2 error mapping to mesh B",
filename=f"{args.prefix}-error",
)
plotConv(
plotVariable(
df,
yname="peakMemB",
ylabel="peak memory of participant B [Kbytes]",
filename=f"{args.prefix}-peakMemB",
)
plotConv(
plotVariable(
df,
yname="computeMappingTime",
ylabel="time to compute mapping [us]",
filename=f"{args.prefix}-computet",
)
plotConv(
plotVariable(
df,
yname="mapDataTime",
ylabel="time to map Data [us]",
Expand Down

0 comments on commit 5bdf26b

Please sign in to comment.