Subject: Draw an animated gif with black background
From: Richard Hennessy
Date: Wed, 31 Dec 2008 12:16:28 -0500
How can you send animated gif output to a file, I might as well learn how gnuplot works. I have been putting it off. If gnuplot
can do animated gifs then that would be more powerful probably.
Rich
----- Original Message -----
From: "Richard Hennessy" <rvh2007 at comcast.net>
To: <biomates at telefonica.net>
Cc: "Maxima List" <maxima at math.utexas.edu>
Sent: Wednesday, December 31, 2008 11:46 AM
Subject: Re: [Maxima] Draw an animated gif with black background
Thanks, that worked but now I can't see any of the titles or labels. Is there a way to change the default foreground color to white
or some hex code?
Rich
----- Original Message -----
From: "Mario Rodriguez" <biomates at telefonica.net>
To: "Richard Hennessy" <rvh2007 at comcast.net>
Cc: "Maxima List" <maxima at math.utexas.edu>
Sent: Wednesday, December 31, 2008 4:39 AM
Subject: Re: [Maxima] Draw an animated gif with black background
El mar, 30-12-2008 a las 18:34 -0500, Richard Hennessy escribi?:
> Is there a way to change the background color of an "animated gif" output file from draw()? I would like for my website to have
> white moving curves on a black or dark colored background. Can this be done? I currently have black or blue on white which I
> don't
> like.
>
> Rich
>
Commited draw with new file_bgcolor option.
Option file_bgcolor must be given a color in hex format; 'file_bgcolor =
black' is not allowed at this moment.
This option affects terminals gif, animated_gif, jpg and png. (I
couldn'n test jpg, since my current installation of gnuplot sends a
segmentation fault error message with this format).
Sample code:
set_draw_defaults(
color = yellow,
line_width = 2 )$
draw(
delay = 100,
file_name = "zzz",
terminal = 'animated_gif,
file_bgcolor = "#000000",
gr2d(explicit(x^2,x,-1,1)),
gr2d(explicit(x^3,x,-1,1)),
gr2d(explicit(x^4,x,-1,1)));
Hope you'll find this useful.
Mario
_______________________________________________
Maxima mailing list
Maxima at math.utexas.edu
http://www.math.utexas.edu/mailman/listinfo/maxima