Re: gEDA-user: Ngspice help
On Samstag, 14. März 2009, joseda wrote: Hi everyone!! 2 question about ngspice. 1) Can I set the background color of the graphic window as white (and not black) by default? Yes. You can change all colors: Please take a look into the NGSPICE User Manual: - colorN These variables determine the colors used, if X is being run on a color display. N may be between 0 and 15. Color 0 is the background, color 1 is the grid and text color, and colors 2 through 15 are used in order for vectors plotted. The value of the color variables should be names of colors, which may be found in the file /usr/lib/rgb.txt. 2) Can I launch the graphic window in batch mode?(I'm trying again and again but unluckily all i got is segmentation faults) You can launch ngspice with some plots, but not in batch mode. Graphic window and batch mode is contrary. If you get a segfault, then please report it to the ngspice developers with all required informations: * the version you're using * a short example to reproduce the segfault * the OS you're using * ... Regards Werner ___ geda-user mailing list geda-user@moria.seul.org http://www.seul.org/cgi-bin/mailman/listinfo/geda-user
Re: gEDA-user: Ngspice help
Thank you Werner for helping!! When i've finished a simulation i change the colors with the instruction set color0=rgb:f/f/f set color1=rbg:255/255/255 This make the graphic how i like (background in white color). But i would like this by default to avoid to run the two sentences of set colorN. I don't have the file /usr/lib/rgb.txt but i made a 'locate rgb.txt' and i found the file /usr/share/X11/rbg.txt and i interchanged the names of the colors (where it was written black i wrote white and viceversa) then i restarted the computer but Ngspice draw the graphic with background in black color. Why? How can i change this? I'm using Fedora as OS! You can launch ngspice with some plots, but not in batch mode. Graphic window and batch mode is contrary. Which plots? asciiplots? Regards joseda -- View this message in context: http://www.nabble.com/Ngspice-help-tp22507382p22512019.html Sent from the gEDA - User mailing list archive at Nabble.com. ___ geda-user mailing list geda-user@moria.seul.org http://www.seul.org/cgi-bin/mailman/listinfo/geda-user
Re: gEDA-user: Ngspice help
On Samstag, 14. März 2009, joseda wrote: When i've finished a simulation i change the colors with the instruction set color0=rgb:f/f/f set color1=rbg:255/255/255 This make the graphic how i like (background in white color). But i would like this by default to avoid to run the two sentences of set colorN. You can add them to the spinit file. On my box it's located in /usr/share/ng-spice-rework/scripts/spinit It seems that it's not possible to have a different init file for each user in the $HOME dir. I don't have the file /usr/lib/rgb.txt but i made a 'locate rgb.txt' and i found the file /usr/share/X11/rbg.txt and i interchanged the names of the colors (where it was written black i wrote white and viceversa) then i restarted the computer but Ngspice draw the graphic with background in black color. Why? How can i change this? ngspice doesn't remember this settings, see above. You can launch ngspice with some plots, but not in batch mode. Graphic window and batch mode is contrary. Which plots? asciiplots? No. graphical plots. (example attached) Calling the .cir file with ngspice ac_ascii.cir creates two plot windows. Calling the .cir file in batch mode ngspice -b ac_ascii.cir throws an error message. Regards Werner * simulation de RC2 .control set filetype=ascii ac dec 100 10k 1000k * write ac_ascii.raw plot V(n1) V(n2) plot V(n0) V(n2) .endc .include RC2.net RC2.net Description: application/pcb-netlist ___ geda-user mailing list geda-user@moria.seul.org http://www.seul.org/cgi-bin/mailman/listinfo/geda-user
Re: gEDA-user: Ngspice help
You can add them to the spinit file. On my box it's located in /usr/share/ng-spice-rework/scripts/spinit It's worked. Thanks. Now is nicer!! No. graphical plots. (example attached) Thanks again. It's worked. The point was to add the directives .control and .endc. Regards -- View this message in context: http://www.nabble.com/Ngspice-help-tp22507382p22513005.html Sent from the gEDA - User mailing list archive at Nabble.com. ___ geda-user mailing list geda-user@moria.seul.org http://www.seul.org/cgi-bin/mailman/listinfo/geda-user