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

Re: New release (v0.8.11rc13)



Dear Andrew,

I have tested the new release of epix and I have found a strange behavior
of use_pstricks();
My functions are plotted incorectly when use_pstricks() is on. If I
comment out it, the functions are OK but filling does not work.
I attached a simple example file to show this behavior.
I hope it can be corrected quickly.

Best wishes,
                 Ryszard

-- 
      Ryszard Tanas                       <mailto:tanas@kielich.amu.edu.pl>
 Nonlinear Optics Division                <mailto:tanas@main.amu.edu.pl>
 Institute of Physics                      Phone: +48 61 829-5184
 Adam Mickiewicz University                Fax: +48 61 829-5167
 Umultowska 85, 61-614 Poznan, Poland     <URL=http://zon8.physd.amu.edu.pl/>

#include "epix.h"
using namespace ePiX;

double pi = M_PI; // \pi/2 to 20 decimals
double MAX=2*M_PI;

double s=1.0;

double X(double t)
{
  using ePiX::cos;
  return 5*cos(t);
}

double Xp(double t)
{
  return X(t)+1.0;
}

double Xm(double t)
{
  return X(t)-1.0;
}

main()
{
  unitlength("1pt");
  picture(P(400, 400));
  bounding_box(P(-8.0, -8.0), P(8.0,8.0));
  use_pstricks();
  
  begin();
  psset("fillcolor=lightgray");
  fill_color("lightgray");
  shadeplot(Xp,Xm,-MAX,MAX,100);
  
  red();
  plot(X,-MAX,MAX,100);

  psset("fillcolor=red");
  fill_color("red");
  ellipse(P(0,0),P(exp(-s),0),P(0,exp(s)),0,2*pi);
  
  end();
}