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.Sun, 22 Nov 2020 17:19:41 +0100How change latex background text color in jupyter?https://ask.sagemath.org/question/54357/how-change-latex-background-text-color-in-jupyter/Expression Math( r"\color{green}{sample}") displays green text in latex in jupyter workbook. What is the directive to change the background color of the text? The directives \textcolor, \colorbox do not work.robSun, 22 Nov 2020 17:19:41 +0100https://ask.sagemath.org/question/54357/How to put background color behind animationhttps://ask.sagemath.org/question/46531/how-to-put-background-color-behind-animation/So I read some of the questions and answers on this site but none of them got me a clear answer. I'm making an animation showing the group law of an elliptic curve. Anyways, I want it to look perfect so I simply need a positive colored background; I was thinking light green (maybe use hue). (Besides, where can I find a table that lists all the values of the hue colors without having to compute them myself?) My animation consists of a few frames played very slowly. My first frame is simply the curve. I had the idea to put it all in a big colored polygon to achieve the background. I could not find simple background color options for plots. This is my poor attempt:
E = EllipticCurve(y^2==x^3+4*x^2-5*x+2);
L = [(-6,-20),(-6,20),(6,20),(6,-20)];
frames = plot(E,xmin=-6,xmax=6,ymin=-20,ymax=20,color='red',thickness=3);
frames += polygon(L,color=hue(0.40));
The problem is now that my plot is completely deformed... Of course, this looks very unpleasent. Anyone got an idea to deform the polygon such that the plot of this elliptic curve is nicely like it looks standard, as evaluating ` plot(E,xmin=-6,xmax=6,ymin=-20,ymax=20,color='red',thickness=3)`? Oh, and also the color should be a bit more transparent. Thanks for the time.AlgebearWed, 15 May 2019 18:47:35 +0200https://ask.sagemath.org/question/46531/making background transparent on implicit_plot3dhttps://ask.sagemath.org/question/32629/making-background-transparent-on-implicit_plot3d/Plots produced using `implicit_plot3d` have white background.
To get transparent background, I tried using `transparent=True`
in `implicit_plot3d` and in `save`, without success:
sage: x, y, z, t = var('x y z t')
sage: name='/Volumes/abcd/Users/efgh/Desktop/ijkl.png'
sage: myplot = implicit_plot3d(z - sqrt(8 - x^2 - y^2),
....: [x, -4, 4], [y, -4, 4], [z, -4, 4],
....: color='red', axes=True, transparent=True)
sage: myplot.save(filename=name, axes=True, transparent=True, fontsize='12')
The image I obtain has white but not transparent background:
![image description](http://i.imgur.com/RxpwAtx.png)
I know `implicit_plot3d` has an `opacity` option to set
the opacity of the plotted surface, but how can I set
the transparency of the background?
userXMon, 22 Feb 2016 16:39:09 +0100https://ask.sagemath.org/question/32629/How can I Change the background color of a plot.https://ask.sagemath.org/question/11361/how-can-i-change-the-background-color-of-a-plot/I want to create some plots using sage to then save them in my computer. I don't want the background to be white (or transparent). Is there a way of specifying the background of a plot inside sage?
(I'm looking for an option of the form:
sage: t=var('t')
sage: p=parametric_plot((t,2*t), (t, -5, 5))
sage: p.show(background=(.1,.2,.3))
or something like that.)RaulFri, 25 Apr 2014 14:21:00 +0200https://ask.sagemath.org/question/11361/