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.Sat, 22 Feb 2020 12:11:41 -0600Fill intersection of multiple ellipseshttp://ask.sagemath.org/question/50023/fill-intersection-of-multiple-ellipses/I'm plotting multiple ellipses via the ellipse() function. I want to only fill the area where they all overlap. I see there are many options for plotting and filling. However, all the examples I've seen refer to other types of plots that would not be compatible with ellipses. Is there a way to automatically fill the overlapping area of multiple ellipses without pre-calculating this area?
For example, two of the ellipse functions would be:
4.31814496201205*x^2 + 0.442360403122904*x*y + 0.0424448964961035*y^2 - 0.170411375833593*x - 0.0205526646997484*y - 2.4358560850288997
ellipse((0.01, 0.19), 8.86, 0.75, 92.96*pi/180)
7.81630506700337*x^2 - 47.0795923749769*x*y + 72.3295112191380*y^2 + 8.78879644990554*x - 27.0144183395227*y + 0.1289109700897777
ellipse((0.01, 0.19), 4.13, 0.17, 18.06*pi/180)mattbSat, 22 Feb 2020 12:11:41 -0600http://ask.sagemath.org/question/50023/fill 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/