Hi,
I am plotting a simple curve with the following code in Lua:
gr = mathgl.mglGraph()
x = mathgl.mglData(200)
y = mathgl.mglData(200)
xv = -1
for i = 0,200 do
print(xv,xv^2)
x:SetVal(xv,i)
y:SetVal(xv^2,i)
xv = xv + 0.01
end
gr:SetFontSize(3.0)
gr:SetRanges(-1,1,-0.1,1)
gr:SetOrigin(0,0,0)
gr:Axis()
gr:Plot(x,y,"r2-")
gr:Title("Simple Quadratic y=x^2","",3)
This is what I get:
The title as it grows smaller it just moves up and is now touching the top edge of the plot. How can I make the title still be close to the plot area?
Also how can I load like a Arial font and write everything in it?
Thanks,
Milind