Adept Scientific - English
The world's best software and hardware for research, science and engineering.
flag arrow
clearclear

 Adept Store | register Join My Adept | Flags  
Adept Scientific | Amor Way | Letchworth Garden City | Herts | SG6 1ZA | Tel: +44 (0)1462 480055  
UKdedksvnofi
Home
Products
Training
Events
 Buy Online
Downloads
Academic Discounts
Support
My Adept
International |  About Us |  Adept Scientific Blog |  Contact Us |  Press Room |  Jobs
Adept Scientific on Twitter Adept Scientific on LinkedIn
Knowledge Base  > Browse Categories  > Maple
EPS plot exported from Maple may have "+/-" instead of a "-" when viewed.

Email This Article

To email this article enter and address below and click on the "Email" Article button.



Other resources from Adept Scientific for: Maple

  • Maple Product Information
  • System Requirements
  • Maple Downloads
  • Maple - Buy online
  • Maple User Group List Archive
  • Read Maple technical articles from our KnowledgeBase


    Last Modified: 4th Aug 2009
    Category: Mathematics and Simulation > Maple
    Platform: All
    Version: 8
    Article Ref.: 856E
    »Return to previous search
    »Print friendly version of this article.
    1 person has found this article useful.

    EPS plot exported from Maple may have "+/-" instead of a "-" when viewed.

    Maple uses Octal code 261 for the minus sign, a "-" sign in the Adobe Standard but a "+/-" sign in the ISO Latin 1 encoding.  EPS viewers (i.e. Ghostview) may use ISO Latin 1.  You can, if you wish, edit the .eps file with a standard text editor (i.e. replace instances of Octal code 261 with a "-").

    Below is a Maple procedure which will do this automatically.  Feed the procedure the full path of the .eps file in quotation marks and it will produce a new file with a ".new" extension.

    fixps:= proc(filename::string)
    # filename is the name (with path if necessary) of the input file
    # optional second argument is name of output file, otherwise ".new"
    # is appended to the filename
    local S, file2;
    if nargs = 1 then file2:= cat(filename,".new")
    else file2:= args[2]
    fi;
    if file2 = filename then error "File names must be different" fi;
    S:= readbytes(filename,infinity,TEXT);
    writebytes(file2,StringTools[SubstituteAll](S,"\\261","-"));
    fclose(file2);
    end;

     
     
    Related Articles
    adept

    Top of the Page

    Popular Links: ChemDraw | ChemOffice | Data Acquisition | Data Analysis | EndNote | Maple | MapleSim | Mathcad | MathType | Quality Analyst | Reference Manager | VisSim

    EU ePrivacy Directive | Our Privacy and Terms and Conditions Statement
    All Trademarks Recognised. Copyright © 2012, Adept Scientific plc.
    Site designed and maintained by Lyndon Ash

    Adept Scientific | Amor Way | Letchworth Garden City | Herts | SG6 1ZA | Tel: +44 (0)1462 480055