From: Michael H. <mh...@al...> - 2006-01-10 08:56:21
|
al...@mm... wrote: > I'm trying to change the color of a function... and I can't. > I used to call, for example: > gnuplot -xrm 'gnuplot*line2Color:yellow', > > but, of course I can't do this now, so > how can I do it? > > One more thing. I can't change the file .Xdefaults because I'm not the system > administrator. > > Thank you very much... > at least there's somebody on the other side... ;) Assuming that you are on a Unix/Linux system, it is usually the case that the login process causes a file in your home directory to be read and added to the X resources. For example, on my linux setup the magic file is called ".Xresources". Alternatively, you can load properties into your X resources manually using the "xrdb" command. Finally, if you only want these properties to be set when you are using Gnuplot.py, you could add the command-line options to the gnuplot_command variable as follows: >>> import Gnuplot >>> Gnuplot.GnuplotOpts.gnuplot_command = \ ... "gnuplot -xrm 'gnuplot*line2Color:yellow'" (before creating your Gnuplot.Gnuplot object). Michael |