ASKSAGE: Sage Q&A Forum - Latest question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Wed, 20 Mar 2019 17:29:32 -0500fill between curve and linehttp://ask.sagemath.org/question/45848/fill-between-curve-and-line/Have the function 4-x^6, and the line y=x, how to fill only the area enclosed by the curve and the linegoldsilverbronzeWed, 20 Mar 2019 17:29:32 -0500http://ask.sagemath.org/question/45848/Fill colors with two contour plotshttp://ask.sagemath.org/question/41457/fill-colors-with-two-contour-plots/Assume I have two contour plots, of functions A and B, say, depending on x and y, with one level curve on each plot.
There are two different zones in each plot, filled with two colors, like in the following:
Gr=Graphics();
Gr += contour_plot(A,(x,0,10),(y,0,10),contours=1,cmap=['white', 'red']);
Gr += contour_plot(B,(x,0,10),(y,0,10),contours=1,cmap=['yellow', 'blue']);
show(Gr);
The problem is that the resulting picture only shows the filling colors of the second plot.
How do I get a picture with each zone (from both plots) in a different color ? some kind of transparency ?
Sorry if my question is trivial,
Thanks !user111Fri, 09 Mar 2018 15:30:28 -0600http://ask.sagemath.org/question/41457/How to fill region between two graphs using different styles or patterns?http://ask.sagemath.org/question/10886/how-to-fill-region-between-two-graphs-using-different-styles-or-patterns/How to fill region between two graphs using different styles or patterns?ajitSat, 11 Jan 2014 07:17:07 -0600http://ask.sagemath.org/question/10886/Fill between two curveshttp://ask.sagemath.org/question/9955/fill-between-two-curves/I am attempting to fill the area between two curves. To more clearly illustrate what I am trying to accomplish, I would like to represent the area of the following integral:
integrate x-x^2 from 0 to 1
I can currently show the area under `x` with `fill=True`, but this is not what I want. What I want is for the fill to extend only to `x^2` rather than all the way down to the x axis.xoviatFri, 29 Mar 2013 16:03:56 -0500http://ask.sagemath.org/question/9955/Fill area under list_plothttp://ask.sagemath.org/question/8593/fill-area-under-list_plot/ Hello!
Is there a way to fill the area between the two curves plotted using the list_plot() function?
My particular application is this: I have a list of points of the format *(x, y, y_max, y_min)*, where *y_max* and *y_min* denote the maximum and minimum values of *y* for the given *x* value because of the measurements uncertainty. I need to plot this curve and fill the uncertainty corridor with some other color.
I use my own function that retrieves the data from this list and use *plot()* to obtain an abovementioned result at the moment. But in this case my function is evaluated in some kind of [random points](http://groups.google.com/group/sage-support/browse_thread/thread/45803c04598182ee) which do not correspond the exact experimental *x* values from the initial data list, that is why this solution is not very good too.
Thank you.v_2eSat, 24 Dec 2011 01:32:33 -0600http://ask.sagemath.org/question/8593/