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.Tue, 24 May 2016 11:41:57 -0500Washed out colors when saving plots to filehttp://ask.sagemath.org/question/33540/washed-out-colors-when-saving-plots-to-file/I try to use the `save` command with a view of a 3d plot, like
mypic = implicit_plot3d(x^2 + y^2 + z^2 == distance, (x, -10, 10), (y, -10, 10), (z, -10, 10), opacity = 0.5) + point3d(vector([0, 0, 0]), color = 'red', size = 10)
mypic.save('mypic.png', compress = false)
but the colors (in particular, the opacities) are washed out.
There is no problem right-clicking to save as png from the notebook, but I want to save a bunch of pngs.
TumericTJTue, 24 May 2016 11:41:57 -0500http://ask.sagemath.org/question/33540/making background transparent on implicit_plot3dhttp://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 09:39:09 -0600http://ask.sagemath.org/question/32629/Alpha Values of Points on a Graphhttp://ask.sagemath.org/question/8228/alpha-values-of-points-on-a-graph/Hello,
I'm working on a project that requires the overlapping of many distinct polygons. I have the polygons set up so that they each have a small alpha value so that the overlaps can be seen visually. However, when alpha is very small, it is hard to tell when there is overlap between twelve polygons or thirteen polygons merely by looking at the graph since the transparency difference is so minimal.
Because of this, I would like the program user to be able to specify a point in the plane, and be returned what alpha is equal to. Is this feasible?
Thanks in advance, and I'll be glad to specify any additional details that are necessary.MathStudentThu, 14 Jul 2011 11:04:29 -0500http://ask.sagemath.org/question/8228/No fillalpha after eps export?http://ask.sagemath.org/question/9779/no-fillalpha-after-eps-export/Hey guys,
this is a slightly modified example from the sage help pages:
(plot(1+e^(-x^2), xmin=-2, xmax=2, ymin=0, ymax=2.5, fill=0.5, fillcolor='green', fillalpha=0.5)).save('t.eps')
It shows an exponential function which is filled from below by green color. The option fillalpha=0.5 should make this filling slightly transparent, which works perfectly when exporting to pdf, but repdroducably fails when exporting to eps. Is there any workaround?pinwheelWed, 06 Feb 2013 06:51:53 -0600http://ask.sagemath.org/question/9779/multiple region_plots in one plothttp://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 -0500http://ask.sagemath.org/question/8792/