[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Size of produced eps



I just wonder how the size of the produced eps-file can be so large.
From a 731 byte file to 113 kb. eps.

Here is the cpp file, and I think that this could be produced in a much smaler 
eps file. I do understand that general function plotting can result in  a 
large file, but not this simple one, it's just lines and some letters. 

Any comments on this?

Gunnar.


#include "epix.h"
using namespace ePiX;

int main(){
        double Xmax=6;
        double Xmin=-2;
        double Ymax=4;
        double Ymin=-1;
        double NX=Xmax-Xmin;
        double NY=Ymax-Ymin;
        unitlength("1cm");
        bounding_box(P(Xmin,Ymin),P(Xmax,Ymax));
        picture(Xmax-Xmin,Ymax-Ymin);
        begin();
                pen(0.1);
                grid(NX,NY);
                pen(0.7);
                h_axis(P(Xmin,0),P(Xmax,0),NX);
                v_axis(P(0,Ymin),P(0,Ymax),NY);
                pen(0.4);
                h_axis_labels(P(Xmin,0),P(Xmax,0),NX,P(0,-4),b);
                v_axis_labels(P(0,Ymin),P(0,Ymax),NY,P(-4,0),l);

                label(P(-1.2,1.3),0,"A");
                label(P(0.6,2.3),0,"B");
                label(P(5.2,0.3),0,"C");
                pen(3);
                dot(P(-1.5,1));
                dot(P(0.5,2));
                dot(P(5,0));
                pen(0.4);
        end();
}