Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Dashed edge of a polygon

It seems thart edges vould not be dashed

    f = piecewise([((0, .4), 0), ([.4,1],1)] )
    g = piecewise([((-0.001, 0), 1), ([0,0],.6), ((0,1),0.6), ([1,1],0)] )         
    pl=polygon([(0,0), (0,1), (1,1),(1,0)],rgbcolor=(0.75, 0.85,0.85),edgecolor="black",linestyle="dashed") 
    pl+=plot(f(x),(x,0,1), thickness=2,rgbcolor=(78.4, 3.1, 8.2)) pl+=plot(g(x),(x,-0.001,1), thickness=2, rgbcolor=(23,38.26,38.74),axes_labels=['$p$','$q$'], ticks=[[], []]) pl+=circle((0.4,0.6), .02, fill=True, edgecolor=(0.96, 0.97,
0.46), rgbcolor=(0.96, 0.97, 0.46)) 
   show(pl)

Dashed edge of a polygon

It seems thart edges vould not be dashed

 

f = piecewise([((0, .4), 0), ([.4,1],1)] ) g = piecewise([((-0.001, 0), 1), ([0,0],.6), ((0,1),0.6), ([1,1],0)] )
pl=polygon([(0,0), (0,1), (1,1),(1,0)],rgbcolor=(0.75, 0.85,0.85),edgecolor="black",linestyle="dashed") pl+=plot(f(x),(x,0,1), thickness=2,rgbcolor=(78.4, 3.1, 8.2)) pl+=plot(g(x),(x,-0.001,1), thickness=2, rgbcolor=(23,38.26,38.74),axes_labels=['$p$','$q$'], ticks=[[], []])
pl+=circle((0.4,0.6), .02, fill=True, edgecolor=(0.96, 0.97, 0.46), 0.97,0.46), rgbcolor=(0.96, 0.97, 0.46)) show(pl)

show(pl)

Dashed edge of a polygon

It seems thart that edges vould not be dashed

f = piecewise([((0, .4), 0), ([.4,1],1)] )
 g = piecewise([((-0.001, 0), 1), ([0,0],.6), ((0,1),0.6), ([1,1],0)] ) 
pl=polygon([(0,0), (0,1), (1,1),(1,0)],rgbcolor=(0.75, 0.85,0.85),edgecolor="black",linestyle="dashed") pl+=plot(f(x),(x,0,1), thickness=2,rgbcolor=(78.4, 3.1, 8.2)) pl+=plot(g(x),(x,-0.001,1), thickness=2, rgbcolor=(23,38.26,38.74),axes_labels=['$p$','$q$'], ticks=[[], []])
pl+=circle((0.4,0.6), .02, fill=True, edgecolor=(0.96, 0.97,0.46), rgbcolor=(0.96, 0.97, 0.46)) show(pl)

show(pl)