Advertisement
Guest User

Untitled

a guest
Oct 11th, 2011
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 2.71 KB | None | 0 0
  1. if (strcmpi (axis_obj.box, "on"))
  2.       if (nd == 3)
  3.     fputs (plot_stream, "set border 4095;\n");
  4.       else
  5.     fputs (plot_stream, "set border 431;\n");
  6.       endif
  7.     else
  8.       if (nd == 3)
  9.     fputs (plot_stream, "set border 895;\n");
  10.       else
  11.     if (strcmpi (axis_obj.yaxislocation, "right"))
  12.       fprintf (plot_stream, "unset ytics; set y2tics %s nomirror\n",
  13.            axis_obj.tickdir);
  14.       if (strcmpi (axis_obj.xaxislocation, "top"))
  15.         fprintf (plot_stream, "unset xtics; set x2tics %s nomirror\n",
  16.              axis_obj.tickdir);
  17.         fputs (plot_stream, "set border 12;\n");
  18.       elseif (strcmpi (axis_obj.xaxislocation, "bottom"))
  19.           fprintf (plot_stream, "unset x2tics; set xtics %s nomirror\n",
  20.              axis_obj.tickdir);
  21.           fputs (plot_stream, "set border 9;\n");
  22.       else # xaxislocation == zero
  23. +             fprintf (plot_stream, "unset x2tics; set xtics %s nomirror\n",
  24. +                     axis_obj.tickdir);
  25. +             fputs (plot_stream, "set border 8;\n");
  26.       endif
  27.     elseif (strcmpi (axis_obj.yaxislocation, "left"))
  28.       fprintf (plot_stream, "unset y2tics; set ytics %s nomirror\n",
  29.            axis_obj.tickdir);
  30.       if (strcmpi (axis_obj.xaxislocation, "top"))
  31.         fprintf (plot_stream, "unset xtics; set x2tics %s nomirror\n",
  32.              axis_obj.tickdir);
  33.         fputs (plot_stream, "set border 6;\n");
  34.       elseif (strcmpi (axis_obj.xaxislocation, "bottom"))
  35.           fprintf (plot_stream, "unset x2tics; set xtics %s nomirror\n",
  36.              axis_obj.tickdir);
  37.           fputs (plot_stream, "set border 3;\n");
  38.           else # xaxislocation == zero
  39. +             fprintf (plot_stream, "unset x2tics; set xtics %s nomirror\n",
  40. +                     axis_obj.tickdir);
  41. +             fputs (plot_stream, "set border 2;\n");
  42. +         endif
  43. +       else # yaxislocation == zero
  44. +          fprintf (plot_stream, "unset y2tics; set ytics %s nomirror\n",
  45. +                   axis_obj.tickdir);
  46. +          if (strcmpi (axis_obj.xaxislocation, "top"))
  47. +            fprintf (plot_stream, "unset xtics; set x2tics %s nomirror\n",
  48. +                     axis_obj.tickdir);
  49. +            fputs (plot_stream, "set border 4;\n");
  50. +          elseif (strcmpi (axis_obj.xaxislocation, "bottom"))
  51. +            fprintf (plot_stream, "unset x2tics; set xtics %s nomirror\n",
  52. +                     axis_obj.tickdir);
  53. +            fputs (plot_stream, "set border 1;\n");
  54. +          else # xaxislocation == zero
  55. +            fprintf (plot_stream, "unset y2tics; set ytics %s nomirror\n",
  56. +                     axis_obj.tickdir);
  57. +            fprintf (plot_stream, "unset x2tics; set xtics %s nomirror\n",
  58. +                     axis_obj.tickdir);
  59. +            fputs (plot_stream, "unset border;\n");
  60.        endif
  61.     endif
  62.       endif
  63.     endif
  64.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement