Dear sage developpers. When I used the command region_plot, I met some trouble. I report the trouble.
After {{{ x, y = var('x y') ex = (x>0) ey = (y>0) }}} I tried the following {{{ sxy = region_plot( ex or ey , (x,-5,5),(y,-5,5), incol='lightgreen', bordercol='red', borderstyle='dashed') syx = region_plot( ey or ex , (x,-5,5),(y,-5,5), incol='lightgreen', bordercol='red', borderstyle='dashed') sxy.show() syx.show() }}} Then I obtained two different figures. I am not sure that my usage of "or" is correct. But both of them are not what I want. The result of the following is what I want. {{{ txy = region_plot(lambda x,y: x>0 or y>0 , (-5,5),(-5,5), incol='lightgreen', bordercol='red', borderstyle='dashed') txy.show() }}} I do not uderstand of the reason. But I tried the following: {{{ print ex print ey print (ex or ey) print (ey or ex) }}} Then the result is x > 0 y > 0 y > 0 x > 0 They seem strange at least for me. Moreover I also tried the following. {{{ sx = region_plot( ex, (x,-5,5),(y,-5,5), incol='lightgreen', bordercol='red', borderstyle='dashed') sy = region_plot( ey, (x,-5,5),(y,-5,5), incol='lightgreen', bordercol='red', borderstyle='dashed') sxsy = sx+sy sysx = sy+sx sxsy.show() sysx.show() }}} {{{ tx = region_plot(lambda x,y: x>0 , (-5,5),(-5,5), incol='lightgreen', bordercol='red', borderstyle='dashed') ty = region_plot(lambda x,y: y>0 , (-5,5),(-5,5), incol='lightgreen', bordercol='red', borderstyle='dashed') txty=tx+ty tytx=ty+tx txty.show() tytx.show() }}} All of thier result are not what I want, neither. But the main reason in this case may be outcol. I used the default color for outcol, and the alpha value of the color is 100%, so I may obtain such figures. But I am not sure. Best, Yasuhide NUMATA. -- -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org