ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Wed, 21 Sep 2022 13:56:06 +0200Clipping a 2D plothttps://ask.sagemath.org/question/64131/clipping-a-2d-plot/Dear all,
Best is a small example:
def fC(p):
return([p[0]/(p[0]+2), (p[1]+1)/(p[0]+2)])
def actOnD(Dom, nbsteps, myz):
DomainfC = list(map(fC, Dom))
acolor = Color(0, (20+90*nbsteps)/255, 150/255)
ToPlot = polygon(Dom, color = acolor, zorder = myz)
if nbsteps > 0:
DomainfC = list(map(fC, Dom))
ToPlot += actOnD(DomainfC, nbsteps-1, myz+1)
return(ToPlot)
actOnD( [[0,0], [0,1], [1,1], [1,0]], 3, 1)
And I would like to show only the plot within a smaller square than the unit one. It seems add_conditions works for parametric plot (though I did not find the documentatin for that, only posts).
Many thanks for your lights on that!
Best, OlivierOlivier R.Wed, 21 Sep 2022 13:56:06 +0200https://ask.sagemath.org/question/64131/setting bounds for parametric-plot3dhttps://ask.sagemath.org/question/48810/setting-bounds-for-parametric-plot3d/ I am trying to represent the part of a parametric surface contained in a cube of given coordinates. What I would like to do is to first compute a large part of the surface, then clip it to the given cube.
I do not see how to do that; there is an option bounding_box(), but I did not find any documentation on it, and I do not understand what it does.PierreArnouxTue, 19 Nov 2019 16:53:05 +0100https://ask.sagemath.org/question/48810/