Postscript Exporting

The same group on the Doxygen site.

group Postscript Exporting

General EPS drawer and graph exporter.

This group contains general EPS drawing methods and special graph exporting tools.

../_images/graph_to_eps.png

Other classes of its headers

Class

Description

DefaultGraphToEpsTraits

Default traits class of GraphToEps.

GraphToEps

Auxiliary class to implement the named parameters of graphToEps().

Functions and other members

template< class GR >
GraphToEps< DefaultGraphToEpsTraits< GR > > graphToEps(
GR & g,
std::ostream & os = std::cout
)

Generates an EPS file from a graph.

This function also has a lot of

named parameters, they are declared as the members of class GraphToEps. The following example shows how to use these parameters.
graphToEps( g , os )
  .scale( 10 )
  .coords( coords )
  .nodeScale( 2 )
  .nodeSizes( sizes )
  .arcWidthScale( .4 )
  .run();

For more detailed examples, see the graph_to_eps_demo.cc demo file.

See also

GraphToEps

Warning

Don’t forget to put the run() to the end of the parameter list.

Parameters:
  • g – Reference to the graph to be printed.

  • os – Reference to the output stream. By default, it is std::cout.

template< class GR >
GraphToEps< DefaultGraphToEpsTraits< GR > > graphToEps(
GR & g,
const char * file_name
)

Generates an EPS file from a graph.

This function does the same as ostream& os) but it writes its output into the file file_name instead of a stream.

template< class GR >
GraphToEps< DefaultGraphToEpsTraits< GR > > graphToEps(
GR & g,
const std::string & file_name
)

Generates an EPS file from a graph.

This function does the same as ostream& os) but it writes its output into the file file_name instead of a stream.