Browse Source

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.

pre-master-46
Brian Taylor 4 years ago
committed by Holger Vogt
parent
commit
b774d03162
  1. 1
      src/frontend/plotting/gnuplot.c

1
src/frontend/plotting/gnuplot.c

@ -402,6 +402,7 @@ void ft_gnuplot(double *xlims, double *ylims,
fprintf(file, "set contour\n"); fprintf(file, "set contour\n");
fprintf(file, "unset surface\n"); fprintf(file, "unset surface\n");
fprintf(file, "set cntrparam levels 20\n"); fprintf(file, "set cntrparam levels 20\n");
fprintf(file, "set yrange reverse\n");
fprintf(file, "set xlabel 'X microns'\n"); fprintf(file, "set xlabel 'X microns'\n");
fprintf(file, "set ylabel 'Y microns'\n"); fprintf(file, "set ylabel 'Y microns'\n");
fprintf(file, "set key outside right\n"); fprintf(file, "set key outside right\n");

Loading…
Cancel
Save