From b774d0316269db47f3263ecaca6c6a08bfa51c44 Mon Sep 17 00:00:00 2001 From: Brian Taylor Date: Sat, 12 Feb 2022 22:38:34 -0800 Subject: [PATCH] Change the y-axis direction for a 2d Cider gnuplot. The device surface is at the top and downwards is into the material, which is the normal presentation. Note that the x/y mesh commands in a Cider model also affect the orientation. --- src/frontend/plotting/gnuplot.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/frontend/plotting/gnuplot.c b/src/frontend/plotting/gnuplot.c index 2c00be612..ed68c9ebf 100644 --- a/src/frontend/plotting/gnuplot.c +++ b/src/frontend/plotting/gnuplot.c @@ -402,6 +402,7 @@ void ft_gnuplot(double *xlims, double *ylims, fprintf(file, "set contour\n"); fprintf(file, "unset surface\n"); fprintf(file, "set cntrparam levels 20\n"); + fprintf(file, "set yrange reverse\n"); fprintf(file, "set xlabel 'X microns'\n"); fprintf(file, "set ylabel 'Y microns'\n"); fprintf(file, "set key outside right\n");