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, 08 Jul 2020 21:16:04 +0200Problem on advanced plottinghttps://ask.sagemath.org/question/52380/problem-on-advanced-plotting/How can I resolvve this:
> Create a plot for the following problem. Find the area that is inside the circle r=2, but outside the cardioid 2+2cos(θ).
My code:
`var('a')`
`polar_plot([2,2+2*cos(a)],(a,0,2*pi))`
When I add the parameter fill=RealNumber, the area is filled, but I can't control what the area; what means this parameter?gabrielromao5Wed, 08 Jul 2020 21:16:04 +0200https://ask.sagemath.org/question/52380/Fill intersection of multiple ellipseshttps://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 19:11:41 +0100https://ask.sagemath.org/question/50023/fill between curve and linehttps://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 23:29:32 +0100https://ask.sagemath.org/question/45848/Fill colors with two contour plotshttps://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 22:30:28 +0100https://ask.sagemath.org/question/41457/How to fill region between two graphs using different styles or patterns?https://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 14:17:07 +0100https://ask.sagemath.org/question/10886/Fill between two curveshttps://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 22:03:56 +0100https://ask.sagemath.org/question/9955/Fill area under list_plothttps://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 08:32:33 +0100https://ask.sagemath.org/question/8593/