epix-devel
[Top][All Lists]
Advanced

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

[ePiX-devel] Version 1.1.1


From: Andrew D. Hwang
Subject: [ePiX-devel] Version 1.1.1
Date: Mon, 19 Feb 2007 11:40:19 -0500 (EST)

A partially-working package of 1.1.x is linked from the project page (see "News"). So far as I know, there are no "serious" (resource-consuming) bugs, but it's not a bad idea to watch CPU and memory usage while a file compiles just in case. The following features are missing/broken:

* Style-setting commands (color and line width; partially buggy)
* Screen cropping (unimplemented)
* PSTricks output (unimplemented)
* Arrows (unimplemented)
* Spherical plotting (unimplemented)

The (mostly self-explanatory) file below illustrates page markup and screen decorations:

---(snip)---
/* -*-ePiX-*- */
#include "epix.h"
using namespace ePiX;

double f(double x) { return exp(-2*x)*Sin(4*x); }

int main()
{
  // same as "picture", "bounding_box", and "unitlength"
  picture(P(-1,-1), P(1,1), "6x6in");

  begin();
  grid(8,8);

  // set decorations on active screen
  backing(Blue(1.9));
  border(Green(0.6), "2pt");

  revolutions();
  red();
  bold();
  plot(Sin, xmin(), xmax(), 120);

  // create a new screen
  screen S(P(0,-1), P(1,1));

  // and decorate/add to it
  activate(S);

  S.backing(Blue(1.8).alpha(0.7));
  S.border(Red(), "1pt");

  magenta();
  plot(f, 0, 1, 120);

  // place screen in picture
  inset(S, P(-1,-1), P(-0.5,-0.5));

  // and write the output file as eepic
  end();
}

---(snip)---

Andrew D. Hwang                 address@hidden
Department of Math and CS       http://mathcs.holycross.edu/~ahwang
College of the Holy Cross       (508) 793-2458 (Office: 320 Swords)
Worcester, MA, 01610-2395       (508) 793-3530 (fax)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]