Changeset a369a8 in git


Ignore:
Timestamp:
May 23, 2016, 1:48:49 PM (8 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
Children:
546ae0dd928ea610dabff35ddfeaa1a100759fc6
Parents:
93d9b514e1badf0d51c6a7040131562d0d7a4eb2
git-author:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2016-05-23 13:48:49+02:00
git-committer:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2016-05-23 13:49:59+02:00
Message:
towards more stable display of images from surf (on windows)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/LIB/surf.lib

    r93d9b5 ra369a8  
    112112    write(l,"curve=",I[1],";");
    113113    write(l,"draw_curve;");
     114    write(l,"color_file_format = jpg;");
     115    write(l,"filename = \"/tmp/surf.jpg\";");
     116    write(l,"save_color_image;");
    114117  }
    115118  else
     
    127130      write(l, "surface=",I[1],";");
    128131      write(l, "draw_surface;");
     132      write(l,"color_file_format = jpg;");
     133      write(l,"filename = \"/tmp/surf.jpg\";");
     134      write(l,"save_color_image;");
    129135    }
    130136    else
     
    150156    else
    151157    {
    152       surf_call = "singularsurf_win ";
     158      surf_call = "surf ";
    153159      surf_call = surf_call + l + ">/dev/null 2>&1";
    154       surf_call = surf_call + "&& command rm " + l;
     160      surf_call = surf_call + " && cygopen /tmp/surf.jpg";
    155161      i = system("sh", surf_call);
    156162      if (i != 0)
     
    165171  else
    166172  {
    167     surf_call = "singularsurf ";
     173    surf_call = "surf ";
    168174    surf_call = surf_call + l + " >/dev/null 2>&1";
     175    surf_call = surf_call + " && display /tmp/surf.jpg";
    169176    "Close window to exit from `singularsurf`.";
    170177
     
    178185    }
    179186  }
    180   system("sh", "command rm " + l);
     187  system("sh", "command rm " + l +" /tmp/surf.jpg");
    181188}
    182189example
Note: See TracChangeset for help on using the changeset viewer.