Re: [AQT-user] AquaTerm background color using PGPLOT
Brought to you by:
persquare
From: Nathan N. <nat...@gm...> - 2005-10-21 00:26:04
|
I am interested in PLPLOT as well, in fact I was wondering whether it was a fork from PGPLOT or something because they seem so similar. I emailed the PGPLOT developer and he was really helpful and answered my emails in just a few hours! Joe: I figured out how to change the lines in PGPLOT and the results look pretty good. I may look into PLPLOT but I don't like compiling stuff myself and Fink doesn't add the AquaTerm driver and there is no PLPLOT for DarwinPorts. Everything works correctly now, thanks for the help Joe, Per. Here is my final code, this is Fortran code: ! Just checks to see if the device is available if(pgopen('/AQT') .le. 0) stop ! Creates a new "page" call pgpage ! Sets the color index 0 to white call pgscr(0, 1., 1., 1.) ! Sets the color index 1 to black call pgscr(1, 0., 0., 0.) ! Sets the line width to 3 call pgslw(3) ! Erases the screen call pgeras ! Creates a standard viewport call pgvstd ! Set x and y range call pgwnad(0., 1., 0., 1.) ! Create the plot grid/box call pgbox('BCNST', 0.0, 0, 'BCNST', 0.0, 0) ! Set the labels call pglab('x(n)', 'x(n + 2)', 'The Logistic Map') ! Plot the points call pgpt(n, x, y, 1) ! Close the device call pgend On Oct 19, 2005, at 2:39 PM, Joe Koski wrote: > Nathan, > > There is some discussion on the pgplot web site about the use of UNIX > environment variables to change the background color for X11 plots > with > pgplot, but when I tried the approach with aquaterm, it did not > work. If you > have X11 installed on your Mac, you might try reading up on the > changes and > run octave from within an X11 xterm. > > Otherwise, I've also had problems with the weak, narrow lines that > pgplot > uses with aquaterm, so I've gone to the newer, and currently supported > PLplot. (If you install PLplot, install it from Fink or > Darwinports. The > current version has build problems on a Mac.) > > While pgplot is still there, it no longer seems to be under active > development. My e-mails to the developer have been unanswered. > > Joe > > > on 10/19/05 11:26 AM, Nathan Nutter at nat...@gm... wrote: > > >> I emailed the PGPLOT developer too, but here is my question: >> >> I installed PGPLOT using Fink on Mac OS X and I am using AquaTerm as >> my display adapter. I would like to change the colors so that it is >> white on black, is this possible with the AquaTerm driver? So far my >> attempt with pgscr has not worked. I seem to able to use pgsci OK but >> not able to change the background color to white. I would really like >> to be able to print from AquaTerm. >> >> Here is what I am doing: >> if(pgopen('/AQT') .le. 0) stop >> call pgpage >> call pgscr(0, 0.5, 0., 0.) >> call pgeras >> call pgsci(1) >> call pgenv(0., 4., 0., 4., 0, 1) >> call pglab('x(n)', 'x(n + 2)', 'The Logistic Map') >> call pgpt(n, x, y, 9) >> call pgend >> What happens is a AquaTerm window opens up red, the terminal say >> press return for next page, I press return and the points and grid >> get drawn on the screen but it overwrite the red background with >> black. >> >> I can use pgsci to change the color of the foreground but pgsci(0) >> draws the foreground black not red like it should be set to from my >> code. >> >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by: >> Power Architecture Resource Center: Free content, downloads, >> discussions, >> and more. http://solutions.newsforge.com/ibmarch.tmpl >> _______________________________________________ >> Aquaterm-user mailing list >> Aqu...@li... >> https://lists.sourceforge.net/lists/listinfo/aquaterm-user >> > > > |