Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #2904
| From | "E.D.G." <edgrsprj@ix.netcom.com> |
|---|---|
| Newsgroups | comp.graphics.apps.gnuplot, comp.lang.misc |
| Subject | Plot with boxes and Pipe Questions - May 11, 2015 |
| Date | 2015-05-11 06:31 -0500 |
| Message-ID | <a5GdnZhGFpVgD83InZ2dnUU7-WudnZ2d@earthlink.com> (permalink) |
Cross-posted to 2 groups.
Posted by E.D.G. May 11, 2015
"Plot With Boxes" and Fortran - Windows - Gnuplot Pipe Questions
PLOT WITH BOXES
Running in a Windows environment, my Perl language programs are
storing large amounts of data in files. Gnuplot is instructed to start
running (pgnuplot.exe). And a "Pipe" is being opened between the Perl
programs and Gnuplot. Commands are sent to Gnuplot using that Pipe.
I would like to have Gnuplot display filled boxes using those data.
And I need to know what the format of the Plot command should be and what
type of data should be stored in the data files.
--- The boxes need to be two dimensional "filled." The boarders can be
either absent or the same color as the fill.
--- I am planning to put X and Y coordinate information for the boxes in
the data files.
--- I would like to eventually have a box color option for the box fill.
But for the moment, just filling them with light or dark shades of black
would be fine.
--- In the data file along with the X and Y coordinates of the boxes I can
include a darkness number for a given box. Right now the range is 0 to 100
with 0 being blank or white and 100 being completely black. I can convert
those numbers to any range. And I could also use a color system such as the
RGB if necessary.
So, what would be the command code? The furthest I myself could get
without making this a major research project was the following code:
plot "data.dat' with boxes
Attempts to get the box color and fill part of the command to work
just right were unsuccessful.
FORTRAN - WINDOWS - GNUPLOT PIPE QUESTIONS
My Perl language programs running in a Windows environment are
gradually being converted to Fortran F95 for increased calculation speed.
And I am trying to determine how to open a Windows environment Fortran F95
or gfortran "Pipe" to Gnuplot so that Gnuplot can be told when and how to
create charts.
Presently, my Perl programs first tell an older version of
pgnuplot.exe to start running. Then they use the following Open command to
create a Pipe to Gnuplot.
open gnuplot, '|pgnuplot.exe';
Any commands can then be "printed" to the Perl "output file" gnuplot.
And Gnuplot executes them.
It took a lot of time and effort to get Perl to work with Gnuplot
like that. But it was worth it as the charts that Gnuplot creates can run
in an interactive mode under the control of my Perl programs. And when a
chart looks like it is ready for storage as a file, the Perl programs will
store it as a .png file that I can send to other researchers and post on my
Web sites.
Does anyone know how that open pipe command would work for Fortran
F95 or gfortran?
Other Fortran programming personnel are interested in learning how
Fortran could control Gnuplot like that. I posted notes to the Fortran
Newsgroup. But no one could easily answer that question. And a retired
professional programmer that I work with who is doing the Fortran
conversions was unable to determine how to open a Fortran - Windows -
Gnuplot type of Pipe.
Regards to all,
E.D.G.
Back to comp.graphics.apps.gnuplot | Previous | Next — Next in thread | Find similar | Unroll thread
Plot with boxes and Pipe Questions - May 11, 2015 "E.D.G." <edgrsprj@ix.netcom.com> - 2015-05-11 06:31 -0500
Re: Plot with boxes and Pipe Questions - May 11, 2015 Hans-Bernhard Bröker <HBBroeker@t-online.de> - 2015-05-14 00:45 +0200
Re: Plot with boxes and Pipe Questions - May 11, 2015 "E.D.G." <edgrsprj@ix.netcom.com> - 2015-05-15 05:45 -0500
Re: Plot with boxes and Pipe Questions - May 11, 2015 "E.D.G." <edgrsprj@ix.netcom.com> - 2015-05-15 07:19 -0500
Re: Plot with boxes and Pipe Questions - May 11, 2015 Gavin Buxton <gavinbuxton@gmail.com> - 2015-05-14 07:09 -0700
csiph-web