I have not been able to label the y-axis tick at ymin. Also I have not been able to locate the x-axis at y=0. I have set the flags in xaxis and yaxis that should let me do this to no effect. I am soliciting any suggestions. Run attached file to see problem in lower graph.
Also of interest should be my function to label axis using pi fractions useful for axis in radian units.
First, thank you for the simplified code, great software, and
maintaining the software. I proselytize Asymptote every chance I get.
I would also like to proselytize something else to that might be of
interest to you, Geometric Algebra. The most relevant reference would
be the book "Geometric Algebra for Computer Science" -
Then one can use the conformal geometric algebra to perform both
translations and rotations in 3-dimensions with pure rotations in
5-dimensions. Also calculating the intersections of lines, planes, and
spheres in 3-dimensions is greatly simplified -
for ( int i = 0; i < g1.length; ++i)
{
string s = "$\gfct{1}= "+(string) g1[i]+"$";
draw(phase,graph(phase,Phase(g1[i]),0.8,1.2,n=10000),Pen(i),s);
}
ticks PiTicks(int n, real ymin, real ymax)
{
real [] yi;
real dy = ymax-ymin;
int ndy = n * (int) (dy/pi);
if (ndypi-dy < 0.0) ++ndy;
if (yminymax < 0.0) ++ndy;
dy = dy/(real) (ndy-1);
for (int i=0;i<ndy;++i)
{
yi.push(ymin+i*dy);
}
return LeftTicks(ticklabel=pilabel,beginlabel=true,endlabel=true,yi);
}
I have not been able to label the y-axis tick at ymin. Also I have not been able to locate the x-axis at y=0. I have set the flags in xaxis and yaxis that should let me do this to no effect. I am soliciting any suggestions. Run attached file to see problem in lower graph.
Also of interest should be my function to label axis using pi fractions useful for axis in radian units.
Here's how to make
ymin=0
in the gain graph:The problem is in the phase (bottom) graph.
Last edit: John Bowman 2022-02-06
Similarly, try:
If you download the latest version of https://raw.githubusercontent.com/vectorgraphics/asymptote/HEAD/base/rational.asy
you can greatly simplify pilabel:
First, thank you for the simplified code, great software, and
maintaining the software. I proselytize Asymptote every chance I get.
I would also like to proselytize something else to that might be of
interest to you, Geometric Algebra. The most relevant reference would
be the book "Geometric Algebra for Computer Science" -
https://geometricalgebra.org/
http://geometry.mrao.cam.ac.uk/2005/01/applications-of-conformal-geometric-algebra-in-computer-vision-and-graphics/
One of the strong points of geometric algebra is that it simplifies
calculating rotations in n-dimensions-
https://www.mrao.cam.ac.uk/~clifford/introduction/intro/node9.html
Then one can use the conformal geometric algebra to perform both
translations and rotations in 3-dimensions with pure rotations in
5-dimensions. Also calculating the intersections of lines, planes, and
spheres in 3-dimensions is greatly simplified -
https://en.wikipedia.org/wiki/Conformal_geometric_algebra
Keep up the great work.
On 2/6/22 1:28 AM, John Bowman wrote: