Skip to content

Commit

Permalink
Only print integer part of pressures in Skew-T labels
Browse files Browse the repository at this point in the history
  • Loading branch information
kocatepedogu committed Sep 23, 2023
1 parent 5744b06 commit b5c4f87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/diagram.ts
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ export class SoundingPlot {

this.ctx.font = "8px";
this.ctx.fillStyle = "black";
this.ctx.fillText(level.pressure!.toString(), this.plotX - 30, y);
this.ctx.fillText(level.pressure!.toFixed(0), this.plotX - 30, y);
}
}
}
Expand Down

0 comments on commit b5c4f87

Please sign in to comment.