- World's Largest Collection of Interview Questions & Answers, FAQs, queries, sample papers, exam papers, dumps, what, why, how, where, when questions
Our Services
Get 9,000 Interview Questions & Answers in an eBook.

Get it now !!
Send your Resume to 6000 Companies
Gnuplot Programming Interview Questions & Answers - Learning Mode

Gnuplot Programming Interview Questions & Answers - Learning Mode

Gnuplot is a command-line program that can generate two- and three-dimensional plots of functions, data, and data fits. It is frequently used for publication-quality graphics as well as education. gnuplot is a plotting program. It is command-line driven and multiplatform. The open source project gnuplot name is intended to be lower-case. The source code is copyrighted but freely distributed (i.e., you don't have to pay for it).

Try Gnuplot Programming Interview Questions & Answers - Exam Mode


Sort By : Latest First | Oldest First | By Rating

Gnuplot Programming Interview Questions & Answers - Learning Mode
Try Gnuplot Programming Interview Questions & Answers - Exam Mode
Question: How do I print out my graphs?

Answer: The kind of output produced is determined by the set terminal command; for example, set terminal postscript will produce the graph in PostScript format. Output can be redirected using the set output command.

As an example, the following prints out a graph of sin(x) on a Unix machine running the X-Window System.

gnuplot> plot [-6:6] sin(x)
gnuplot> set terminal postscript
Terminal type set to 'postscript'
Options are 'landscape monochrome "Courier" 14' Source:
Question: How did it come about and why is it called gnuplot?

Answer: The authors of gnuplot are: Thomas Williams, Colin Kelley, Russell Lang, Dave Kotz, John Campbell, Gershon Elber, Alexander Woo and many others.

The following quote comes from Thomas Williams:

I was taking a differential equation class and Colin was taking Electromagnetics, we both thought it'd be helpful to visualize the mathematics behind them. We were both working as sys admin for an EE VLSI lab, so we had the graphics terminals and the time to do some coding. The postin Source:
Question: How do I change symbol size, line thickness and the like?

Answer: Gnuplot offers a variety of commands to set line and point properties, including color, thickness, point shape, etc. The command test will display a test page for the currently selected terminal type showing the available pre-defined combinations of color, size, shape, etc. The set style command can be used to define additional combinations. Source:
Question: How do I include my graphs in <word processor>?

Answer: Basically, you save your plot to a file in a format your word processor can understand (using set term and set output, see above), and then you read in the plot from your word processor. Vector formats (PostScript, emf, svg, pdf, TEX, LATEX, etc) should be preferred, as you can scale your graph later to the right size.

Details depend on which word processor you use; use set term to get a list of available file formats.

Many word processors can use Encapsulated PostScript for graphs Source:
Question: What does gnuplot offer?

Answer: * Plotting two-dimensional functions and data points in many different styles (points, lines, error bars)
* Plotting three-dimensional data points and surfaces in many different styles (contour plot, mesh)
* Algebraic computation in integer, float and complex arithmetic
* User-defined functions and hot-keys
* Support for a large number of operating systems, graphics file formats and output devices
* Extensive on-line help
* TEX-like text formatting for l Source:
Question: How do I edit or post-process a gnuplot graph?

Answer: This depends on the terminal type you use.

* X11 toolkits: You can use the terminal type fig and use the xfig drawing program to edit the plot afterwards. You can obtain the xfig program from its web site More information about the text-format used for fig can be found in the fig-package.

You may use the tgif terminal, which creates output suitable for reading within tgif (, an interactive 2-D drawing tool under X1 Source:
Question: Can I animate my graphs?

Answer: First have a look at animate.dem in the demo directory of gnuplot. Basically, animated graphs are a sequence of plots in a suitable format.

If your installation of gnuplot is linked with gd 2.0.29 or newer (see previous entry), the gif terminal can generate directly an animated GIF.

Otherwise, have a look at the tool whirlgif 3.04, available at dino/whirlgif. It reads run-length encoded GIF files and packs them into a minimal animation. On the web-pages you wi Source:
Question: Can I run gnuplot on my computer?

Answer: Gnuplot is in widespread use on many platforms, including MS Windows, linux, unix, and OSX. The current source code retains supports for older systems as well, including VMS, Ultrix, OS/2, MS-DOS, Amiga, OS-9/68k, Atari ST, BeOS, and Macintosh. Versions since 4.0 have not been extensively tested on legacy platforms.

Please notify the FAQ-maintainer of any further ports you might be aware of.

You should be able to compile the gnuplot source more or less out of the box on any reasona Source:
Question: How do I generate plots in GIF format?

Answer: GIF support is provided by an external library, libgd ( Old versions of gd (versions 1.2 to 1.4) produce only GIF output. Versions 1.6 to 2.0.27 did not support GIF output because of patent concerns. However versions 1.6 and newer support PNG outputs, and 1.7 and newer support JPEG outputs. Version 2.0.28 of the Boutell gd library restored GIF functionality, and 2.0.29 added support for GIF animation. If your installation of gnuplot is linked to the gd library, you will get Source:
Question: Is gnuplot suitable for scripting?

Answer: Yes. Gnuplot can read in files containing additional commands during an interactive session, or it can be run in batch mode by piping a pre-existing file or a stream of commands to stdin. Gnuplot is used as a back-end graphics driver by such higher-level mathematical packages as Octave, and can easily be wrapped in a cgi script for use as a web-driven plot generator. Source:
Question: What is gnuplot?

Answer: gnuplot is a command-driven interactive function plotting program. It can be used to plot functions and data points in both two- and three-dimensional plots in many different formats. It is designed primarily for the visual display of scientific data. gnuplot is copyrighted, but freely distributable; you don't have to pay for it. Source:


India News Network
Latest 20 Questions
Payment of time- barred debt is: (a) Valid (b) Void (c) Illegal (d) Voidable
Consideration is defined in the Indian Contract Act,1872 in: (a) Section 2(f) (b) Section 2(e) (c) Section 2(g) (d) Section 2(d)
Which of the following is not an exception to the rule, "No consideration, No contract": (a) Natural love and affection (b) Compensation for involuntary services (c) Completed gift (d) Agency
Consideration must move at the desire of: (a) The promisor (b) The promisee (c) The promisor or any other party (d) Both the promisor and the promisee
An offer which is open for acceptance over a period of time is: (a) Cross Offer (b) Counter Offer (c) Standing Offer (d) Implied Offer
Specific offer can be communicated to__________ (a) All the parties of contract (b) General public in universe (c) Specific person (d) None of the above
_________ amounts to rejection of the original offer. (a) Cross offer (b) Special offer (c) Standing offer (d) Counter offer
A advertises to sell his old car by advertising in a newspaper. This offer is caleed: (a) General Offer (b) Special Offer (c) Continuing Offer (d) None of the above
In case a counter offer is made, the original offer stands: (a) Rejected (b) Accepted automatically (c) Accepted subject to certain modifications and variations (d) None of the above
In case of unenforceable contract having some technical defect, parties (a) Can sue upon it (b) Cannot sue upon it (c) Should consider it to be illegal (d) None of the above
If entire specified goods is perished before entering into contract of sale, the contract is (a) Valid (b) Void (c) Voidable (d) Cancelled
______________ contracts are also caled contracts with executed consideration. (a) Unilateral (b) Completed (c) Bilateral (d) Executory
A offers B to supply books @ Rs 100 each but B accepts the same with condition of 10% discount. This is a case of (a) Counter Offer (b) Cross Offer (c) Specific Offer (d) General Offer
_____________ is a game of chance. (a) Conditional Contract (b) Contingent Contract (c) Wagering Contract (d) Quasi Contract
There is no binding contract in case of _______ as one's offer cannot be constructed as acceptance (a) Cross Offer (b) Standing Offer (c) Counter Offer (d) Special Offer
An offer is made with an intention to have negotiation from other party. This type of offer is: (a) Invitation to offer (b) Valid offer (c) Voidable (d) None of the above
When an offer is made to the world at large, it is ____________ offer. (a) Counter (b) Special (c) General (d) None of the above
Implied contract even if not in writing or express words is perfectly _______________ if all the conditions are satisfied:- (a) Void (b) Voidable (c) Valid (d) Illegal
A specific offer can be accepted by ___________. (a) Any person (b) Any friend to offeror (c) The person to whom it is made (d) Any friend of offeree
An agreement toput a fire on a person's car is a ______: (a) Legal (b) Voidable (c) Valid (d) Illegal
Cache = 0.0625 Seconds