Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #1552

Re: Background color

Newsgroups comp.graphics.apps.gnuplot
Date 2012-12-21 08:12 -0800
References <9c53800a-685a-4758-be80-c8a4184cf05f@l17g2000vbj.googlegroups.com> <jovbb8$s4q$1@dont-email.me> <f9d9b7ed-7d5e-4aef-b722-cbc257363a32@hq4g2000vbb.googlegroups.com> <jp1arj$qqo$1@dont-email.me>
Message-ID <9dc2b126-85f7-4ac0-a774-f681e50e07e0@googlegroups.com> (permalink)
Subject Re: Background color
From Mario <xefaso@terra.es>

Show all headers | View raw


jueves, 17 de mayo de 2012 00:48:16 UTC+2, sfeam  escribió:
> Mario wrote:
> 
> > Just a question:
> 
> > 
> 
> > Is it possible to set the background color so that both 4.6 and 4.4
> 
> > understand it?
> 
> 
> 
> Prior to 4.6 many [most?] terminals did not have a background color option.
> 
> So the terminal-independent way of forcing a solid background was
> 
> 
> 
>    set obj 999 rectangle behind from screen 0,0 to screen 1,1 \
> 
>                fillcolor rgb "white" 
> 
> 
> 
> That should work in both 4.4 and 4.6
> 
> 
> 
> 	Ethan
> 
>  
> 
> > We have a problem with Maxima, which uses Gnuplot for plotting. With
> 
> > 4.6, we get errors due to old code, but if I update the interface to
> 
> > the new syntax, users with older Gnuplot versions will then have a
> 
> > similar problem.
> 
> > 
> 
> > Is there a work-around for this, please?
> 


Hello,

Now, Maxima adds the following two lines to the Gnuplot script, when the user wants a green background, or any other color:

set obj 1 rectangle behind from screen 0.0,0.0 to screen 1.0,1.0
set style rectangle fillcolor rgb '#00ff00' fs solid 1.0 noborder

This solution works fine with most terminals, except with epslatex-standalone. It looks like the rectangle hides the latex text and axes tics.

This is a common header of the Gnuplot code automatically generated by Maxima:

set terminal epslatex standalone  color size 6.0cm, 5.0cm
set out 'maxima_out.tex'
set size 1.0, 1.0
set origin 0.0, 0.0
set obj 1 rectangle behind from screen 0.0,0.0 to screen 1.0,1.0
set style rectangle fillcolor rgb '#00ff00' fs solid 1.0 noborder
set size noratio
set xrange [-10.0:10.0]
set yrange [-0.99999443136554:0.9999969259539873]
set title ''
set xlabel '$2\pi$'
set ylabel ''

etc.

After executing the latex command on maxima_out.tex, we see the plot on a green background, but axes tics and xlabel are not there. If we remove the two lines cited above, we see the latex text and the plot, as it should be, on a white background. We are having problems trying to make background colors and latex live together.

Do you know of any work-around for this problem?

Thanks for your attention.

--
Mario

Back to comp.graphics.apps.gnuplot | Previous | NextPrevious in thread | Find similar


Thread

Background color Mario <xefaso@terra.es> - 2012-05-15 14:47 -0700
  Re: Background color sfeam <sfeam@users.sourceforge.net> - 2012-05-15 21:44 -0700
    Re: Background color Mario <xefaso@terra.es> - 2012-05-16 11:05 -0700
      Re: Background color sfeam <sfeam@users.sourceforge.net> - 2012-05-16 15:48 -0700
        Re: Background color Mario <xefaso@terra.es> - 2012-05-17 04:40 -0700
        Re: Background color Mario <xefaso@terra.es> - 2012-12-21 08:12 -0800

csiph-web