sagenb hidden

21 views
Skip to first unread message

aishen

unread,
Oct 14, 2017, 10:27:22 AM10/14/17
to sage-devel
Hi,
In sagenb one can hide list of command to make a result, I can't do that in jupyter notebook is there a way ?
I do geometry examples with sagemath, sure I could use other software but I prefer use sagemath because by hand I can notice lot of interesting construction. Another thing I would like is thickness in gridlines
Regards
Henri
An example not finish

g=(sqrt(1-x^2))
x=x
z=plot(x,0,1,aspect_ratio=1);
p=plot(g,-1,1,aspect_ratio=1,color="red");
q=plot(-g,-1,1,aspect_ratio=1,color="red");
A = text("A", (-2.99,-0.3), color="black", fontsize=14,rotation=0)
B = text("B", (-3,5.2), color="black", fontsize=14,rotation=0)
C = text("C", (2.2,5.2), color="black", fontsize=14,rotation=0)
E = text("E", (5,5.2), color="black", fontsize=14,rotation=0)
D = text("D", (2,-0.3), color="black", fontsize=14,rotation=0)
F = text("F", (5.01,-0.3), color="black", fontsize=14,rotation=0)
O = text("O", (-0.4,-0.3), color="black", fontsize=14,rotation=0)
a1= arc((-0.98,0), 5.9, angle=pi*4, sector=(0,pi*4),color="red",
        thickness=1, zorder=5)
oc=line(((-0.5,0),(2,5)), color="blue",thickness=1.5)
l1=line(((0.57,0),(0.57,1)), color="red",thickness=1.5)
ab=line(((-2,-1),(-2,1)), color="blue",thickness=1.5)
bc=line(((-2,-1),(2,-1)), color="blue",thickness=1.5)
cd=line(((0.6,0),(0.6,0.8)), color="green",thickness=1.5)
dc=line(((1,0),(1,0.8)), color="red",thickness=1)
be=line(((-0.3,0.8),(1,0.8)), color="blue",thickness=1.5)
ad=line(((-2,1),(2,1)), color="blue",thickness=1.5)
ac=line(((-2,1),(2,-1)), color="red",thickness=1.5)
af=line(((-2,1),(0.886,-0.443)), color="cyan",thickness=1.5)
show(p+q+ab+ad+bc+ac+af+dc,
     xmin=-2,xmax=2,ymin=-2,ymax=2,
     gridlines="minor",gridlinesstyle=dict(color="grey",
                         linestyle="-"),frame=True)
Reply all
Reply to author
Forward
0 new messages