-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(app): optionally plot unnormalized histograms
- Loading branch information
Showing
5 changed files
with
138 additions
and
68 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
cloud-microphysics/app/gnuplot.inp → ...hysics/app/plot-normalized-histograms.gnu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
set logscale y 10 | ||
set key font ",20" | ||
set title "Normalized Input Tensor Histograms" font "Arial,20" | ||
set title "Input-Tensor Histograms Mapped to the Interval [0,1]" font "Arial,20" | ||
|
||
plot for [col=2:8] 'training_inputs_stats.plt' using 1:col with linespoints title columnheader | ||
pause mouse any "Plot 1 of 2. Press any key to continue.\n" | ||
|
||
set title "Normalized Output Tensor Histograms" font "Arial,20" | ||
set title "Output-Tensor Histograms Mapped to the Interval [0,1]" font "Arial,20" | ||
|
||
plot for [col=2:6] 'training_outputs_stats.plt' using 1:col with linespoints title columnheader | ||
pause mouse any "Plot 2 of 2. Press any key to exit.\n" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
set logscale y 10 | ||
set term png size 2600, 1200 | ||
|
||
set output "input-tensor-histograms.png" | ||
set multiplot layout 3,3 | ||
do for [name in "potential-temperature pressure qc qr qs qv temperature"] { | ||
filename = name . ".plt" | ||
set title sprintf("Histogram for %s",name) | ||
plot filename using 1:2 with linespoints title columnheader | ||
} | ||
print "\n Output-tensor histograms have been written to the graphics file 'output-tensor-histograms.png'." | ||
|
||
unset multiplot | ||
|
||
set output "output-tensor-histograms.png" | ||
set multiplot layout 3,2 | ||
do for [name in "dptdt dqcdt dqrdt dqsdt dqvdt"] { | ||
filename = name . ".plt" | ||
set title sprintf("Histogram for %s",name) | ||
plot filename using 1:2 with linespoints title columnheader | ||
} | ||
print " Input-tensor histograms have been written to the graphics file 'input-tensor-histograms.png'.\n" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters