ASKSAGE: Sage Q&A Forum - Latest question feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Thu, 15 Mar 2012 03:11:55 -0500multiple region_plots in one plothttps://ask.sagemath.org/question/8792/multiple-region_plots-in-one-plot/Hi,
I want to plot two region_plots into one plot. The idea is if you use different colors for the inequalities you can see how the regions change. A minimal example:
var('x,y')
plot1=region_plot(x<y,(x,0,1),(y,0,1),incol='red')
plot2=region_plot(2*x<y,(x,0,1),(y,0,1),incol='blue')
show(plot2+plot1)
I do not know how to manage this, since zorder or opacity are not working for region_plot. Does anybody know how to make this work (by the way I use sagenb.org)? Thanks in advancegod.oneThu, 15 Mar 2012 03:11:55 -0500https://ask.sagemath.org/question/8792/automatic zordering with plotshttps://ask.sagemath.org/question/7829/automatic-zordering-with-plots/The `zorder`-option can be used to specify on which layer the elements of a plot are drawn. Is there a way to automatically increase the z-order at each time an element is added to the current `Graphics`-object? (manually inserting `zorder=...` is not the solution I want, since it is inflexible (changing the code; shifting code-blocks around))
E.g.
g = Graphics()
g += point((0,0)) # I want zorder=1
g += point((1,0)) # I want zorder=2
# ...
Daniel KrennWed, 22 Dec 2010 03:35:54 -0600https://ask.sagemath.org/question/7829/