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

Differences in EPS with _almost_ equal XP



Hi all,

I've done 2 different images which are however, mostly the same.
Still, the result is quite different.
Both xp and the obtained eps.gz are attached.

Another wierd issue I'm having is that setting an offset to the
vertical axis shifts all the horizontal and vertical axis. Try
changing in one of the files the offset from P(0,0) to P(-10,0).
Moreover, in the projresult file the two of the lines which should
show up dashed are not dashed at all... :( But everything is ok in the
other one!


Any ideas? By the way, I'm using gcc-4 and epix 1.0.0.

Cheers,
--
Paulo Jorge Matos - pocm at sat inesc-id pt
Web: http://sat.inesc-id.pt/~pocm
Computer and Software Engineering
INESC-ID - SAT Group
#include <epix.h>

using namespace ePiX;

int main() {

  unitlength("1cm");
  picture(10.0,10.0);
  bounding_box(P(0,0), P(4,4));

  begin();
  plain();



  h_axis(4);
  v_axis(4);
  h_axis_labels(4, P(0,-2), b);
  v_axis_labels(P(0, 1), P(0, y_max), 3, P(-5,0), c);
  label(P(4.1,0), P(0,0), "$x_1$");
  label(P(0, 4.1), P(0,0), "$x_2$");

  P p1(0.8,1.3);
  P p2(2.0,2.8);
  P p3(3.2,0.8);

  red();
  line(p1,p2);
  line(p2,p3);
  line(p1,p3);

  black();
  label(P(1.1,3.5), P(0,0), "$proj_{1}(P)$");
  arrow(P(1.1,3.5), P(0, 1.8));
  
  ring(P(0, 1.0));
  spot(P(3, 1));
  line(P(0, 1.0), P(3.08, 1.0));
  pen(2.0); line(P(2.24, 1.0), P(3.08, 1.0)); plain();
  
  black();
  pen(2.0); line(P(0, 0.8), P(0, 2.8)); plain();
  dashed(); line(P(4, 0.8), P(0, 0.8));
  dashed(); line(P(4, 2.8), P(0, 2.8));

  end();
}
#include <epix.h>

using namespace ePiX;

int main() {

  unitlength("1cm");
  picture(10.0,10.0);
  bounding_box(P(0,0), P(4,4));

  begin();
  plain();
  grid(4,4);
  
  h_axis(4);
  v_axis(4);
  h_axis_labels(4, P(0,-2), b);
  v_axis_labels(P(0, 1), P(0, y_max), 3, P(0,0), l);
  label(P(4.1,0), P(0,0), "$x_1$");
  label(P(0, 4.1), P(0,0), "$x_2$");

  P p1(0.8,1.3);
  P p2(2.0,2.8);
  P p3(3.2,0.8);

  red();
  line(p1,p2);
  line(p2,p3);
  line(p1,p3);

  black();
  label(P(1.1,3.5), P(0,0), "$proj_{1}(P)$");
  arrow(P(1.1,3.5), P(0, 1.8));

  black();
  pen(2.0); line(P(0, 0.8), P(0, 2.8)); plain();
  dashed(); line(P(4, 0.8), P(0, 0.8));
  dashed(); line(P(4, 2.8), P(0, 2.8));

  end();
}

Attachment: poliedroh_projresult.eps.gz
Description: GNU Zip compressed data

Attachment: poliedroh_elim.eps.gz
Description: GNU Zip compressed data