ArticleslgStudy

computer science

Xfig

Xfig is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Xfig rather than just read about it. In short: Xfig is a free and open-source vector graphics editor which runs under the X Window System on most UNIX-compatible platforms. In Xfig, figures may be drawn using objects such as circles, boxes, lines, spline curves, text, etc.

Xfig — main illustration
Xfig — illustration

Key takeaways

  • Xfig belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Xfig to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Xfig from memory before moving on to harder problems.

Reference excerpt

Xfig is a free and open-source vector graphics editor which runs under the X Window System on most UNIX-compatible platforms. In Xfig, figures may be drawn using objects such as circles, boxes, lines, spline curves, text, etc. It is also possible to import images in a number of formats, including JPEG, EPS, PostScript, and SVG. Those objects can be created, deleted, moved or modified. Attributes such as colors or line styles can be selected in various ways. For text, 35 fonts are available. Xfig saves figures in its native text-only "Fig" format. Xfig has a facility to print figures to a PostScript printer, too. A convenient feature is the PSTricks or PGF/TikZ packages code that allows a smooth integration of Xfig-generated images into LaTeX documents. However, through the EPS export facility, figures can be imbedded into groff documents also, when rendered to PostScript, e.g. though grops. Most operations in Xfig are performed using the mouse, but some operations may also be performed using keyboard accelerators (shortcuts). The interface is designed for a three-button mouse, although it is also possible to use a two-button or a one-button mouse with appropriate emulation, for example on a Macintosh under OS X.

History Xfig was written by Supoj Sutanthavibul in 1985 for SunView. Ken Yap ported xfig to X11. In 1989, Brian V. Smith added many features. In 1991, Paul King added many features including overhauling the GUI for version 2.0. In 1997, Tom Sato added Japanese text support, spell checker, and search/replace.

Imports Xfig can import various files as images:

Raster formats: GIF, JPEG, PCX, PNG, PPM, TIFF, XBM, and XPM Vector graphics formats: EPS, PostScript

Exports Xfig can export into various formats:

Raster formats: GIF, JPEG, PNG, PPM, XBM, XPM, PCX, TIFF, SLD Formats for printed documents: PostScript, PDF, HP-GL (printer control language used by Hewlett-Packard plotters), Vector graphics formats: EPS, SVG, PIC, CGM, Metafont, MetaPost, EMF, Tk LaTeX files: PGF/TikZ, PStricks

See also

Ipe – A modern vector graphics editor in the spirit of Xfig (including, e.g., LaTeX support). Tgif - An Xlib-based 2D vector drawing tool very similar to Xfig. Comparison of vector graphics editors WinFIG

References

External links

XFig Version 3.2.9a User Manual Xfig homepage at Archive-It (archived December 22, 2012) Native Fig file format WinFIG, an Xfig clone for Windows (shareware with demo version) Applications producing Fig format output files at the Wayback Machine (archived April 25, 2010)

Copied from the Xfig home page with formatting changes. For additional details, check the xfig documentation or home page at https://sourceforge.net/projects/mcj/

Illustrations

Xfig illustration

Worked examples

Example 1 — a first encounter with Xfig

Start with the simplest possible case. Write down what Xfig claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Xfig before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Xfig ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Xfig

In research
Xfig appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Xfig in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Xfig is common in secondary-school and first-year university syllabi. It links to neighbouring topics 1985 software, Free diagramming software, Free vector graphics editors, so understanding it makes those chapters shorter.
In everyday life
Look for Xfig outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Xfig” →

How to study Xfig in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Xfig means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Xfig out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Xfig in simple terms?

Xfig is a free and open-source vector graphics editor which runs under the X Window System on most UNIX-compatible platforms. In Xfig, figures may be drawn using objects such as circles, boxes, lines, spline curves, text, etc.

Why does Xfig matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Xfig?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Xfig.

Tags

  • 1985 software
  • Free diagramming software
  • Free vector graphics editors
  • Vector graphics editors for Linux
  • X Window programs

Keep exploring