diff options
Diffstat (limited to 'Build/source/utils/asymptote/doc/monthaxis.asy')
-rw-r--r-- | Build/source/utils/asymptote/doc/monthaxis.asy | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Build/source/utils/asymptote/doc/monthaxis.asy b/Build/source/utils/asymptote/doc/monthaxis.asy new file mode 100644 index 00000000000..d2c8bf3298f --- /dev/null +++ b/Build/source/utils/asymptote/doc/monthaxis.asy @@ -0,0 +1,17 @@ +import graph; + +size(400,150,IgnoreAspect); + +real[] x=sequence(12); +real[] y=sin(2pi*x/12); + +scale(false); + +string[] month={"Jan","Feb","Mar","Apr","May","Jun", + "Jul","Aug","Sep","Oct","Nov","Dec"}; + +draw(graph(x,y),red,MarkFill[0]); + +xaxis(BottomTop,LeftTicks(new string(real x) { + return month[round(x % 12)];})); +yaxis("$y$",LeftRight,RightTicks(4)); |