Colored EPS plot with correct Bounding Box

Discussion in 'Cadence' started by Carl Cursujani, Jun 28, 2004.

  1. Hello,

    I would like to plot directly colored eps files from cadence.

    in the .cdsplotinit file I can define



    EPSF|Encapsulated Postscript: \
    :manufacturer=Adobe: \
    :type=epsf: \
    :maximumPages#1: \
    :resolution#300: \
    :paperSize="A4" 11538 8060:


    But this will generate only black&white plots


    I found another solution in the internet


    color EPS plotter|Generic 600 dpi Adobe PostScript Level 2 Plotter: \
    :manufacturer=Adobe: \
    :type=postscript2: \
    :resolution#1200: \
    :maximumPages#1: \
    :paperSize="A4" 11538 8060: \
    :paperSize="A" 4810 6330 172 132: \
    :paperSize="B" 6402 10002 99 99:

    This plots in color, but when I try to include the graphic in LateX with


    \includegraphics[width=\textwidth] {test.eps}

    it doesn't show the whole plot on the page


    Does anybody have a clue?


    The last idea I had was to convert a colored ps file to eps with
    ps2epsi, but this results in errors


    Thanks for any suggestion

    best regards


    Carl
     
    Carl Cursujani, Jun 28, 2004
    #1
  2. Carl Cursujani

    Satya Mishra Guest

    Carl> Hello, I would like to plot directly colored eps files from
    Carl> cadence.

    Carl> in the .cdsplotinit file I can define



    Carl> EPSF|Encapsulated Postscript: \ :manufacturer=Adobe: \
    Carl> :type=epsf: \ :maximumPages#1: \ :resolution#300: \
    Carl> :paperSize="A4" 11538 8060:


    Carl> But this will generate only black&white plots


    Carl> I found another solution in the internet


    Carl> color EPS plotter|Generic 600 dpi Adobe PostScript Level 2
    Carl> Plotter: \ :manufacturer=Adobe: \ :type=postscript2: \
    Carl> :resolution#1200: \ :maximumPages#1: \ :paperSize="A4" 11538
    Carl> 8060: \ :paperSize="A" 4810 6330 172 132: \ :paperSize="B"
    Carl> 6402 10002 99 99:

    Carl> This plots in color, but when I try to include the graphic
    Carl> in LateX with


    Carl> \includegraphics[width=\textwidth] {test.eps}

    Carl> it doesn't show the whole plot on the page


    Carl> Does anybody have a clue?


    Carl> The last idea I had was to convert a colored ps file to eps
    Carl> with ps2epsi, but this results in errors


    Carl> Thanks for any suggestion

    Carl> best regards


    Carl> Carl

    Hello Carl

    for the first case: Use plotter type 'epsfC' or 'epsfiC'.

    For the second case: Convert ps file to eps using either 'ps2eps' or
    the following script

    ------
    #!/bin/ksh

    export GS_LIB

    for i in "$@"
    do
    outfile="${i%%.ps}.eps"
    sed 's,^rotp$,,; /%%BeginFeature/,/%%EndFeature/d' "$i" > "$i.tmp"
    head -1 "$i.tmp" > "$outfile"
    gs -sDEVICE=bbox -dBATCH -q -dNOPAUSE "$i.tmp" >>"$outfile" 2>&1
    tail +2 "$i.tmp" >> "$outfile"
    rm -f "$i.tmp"
    done
     
    Satya Mishra, Jun 28, 2004
    #2
  3. Carl Cursujani

    ??? Guest

    HI Curesujani
    This is my .cdsplotinit. you can try it.
    Generic 1200 dpi Adobe PostScript Level 2 Plotter|Generic 600 dpi Adobe
    PostScript Level 2 Plotter: \
    :manufacturer=Adobe: \
    :type=postscript2: \
    :resolution#1200: \
    :maximumPages#30: \
    :paperSize="A" 9620 12660 344 264: \
    :paperSize="B" 12804 20004 198 198
     
    ???, Jul 1, 2004
    #3
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.