Package for drawing queue networks with LaTeX? - graphics

Does anyone know how to draw queue network graphs that can be included within LaTeX documents?

See, e.g., the following examples at TeXample.net for the TikZ and PGF packages:
Graphs
Automata and Petri nets

Use METAPOST for your problem.

There are many ways to include drawings/graphs/images in your latex document.
The easiest way is just to draw the graph in your drawing program of choice, then export the graph to jpg or png (or eps if you're not using PDFlatex), then use the graphicx package ( \usepackage{graphicx} in your preamble), and include the graph in your document by using the code
\includegraphics[width=4in]{filename.jpg}
As indicated in other answers, there are several drawing languages that can be used with tex: metapost, tikz, and PGF are are powerful. There is also asymptote, another code based drawing language.
You could also use graphviz, which is excellent if your graph is large and you need graph something like network traffic. And dot2tex will turn your graphviz file into something latex can handle.

Related

How to render a polygon with CGAL?

I have my polygon read from a list of points on a text file, this works fine but I was wondering if there is a way to draw the Polygon read or at least the points. I couldn't find anything related on the documentation.
Is gnuplot the only solution? Hope you can help me.
You can use Geomview as mentioned in the documentation. But you will have to write the Polygon to OFF format, for which CGAL provides functions similar to write_off for many of its classes. You will have to open Geomview externally. Another option would be to write out a VTK file and visualize it with Paraview. This is what I use but you will have to write the code to convert from CGAL data structures to VTK data-structures.

VTK alternatives

I apologize if the answer was already somewhere, searching the interwebs did not return me the answer(s) I was looking for.
Situation : I have a small graph (a set of Edges and Nodes that is) - Now I want to display it in an interactive manner, and I would like to manipulate the display styles and symbols that are used for edges and nodes, programetically.
Hence kgraphviewer wont work - i want to do it programetically as stated.
I noticed VTK, comes with a lot of built is graph drawing algorithms. But seems to be a really large one.
Question : What are some alternatives to VTK ? Graphviz is probably one, but I can not confirm that graphviz comes with all the graph drawing algorithms as VTK - any other possibly smaller options, with all the built in graphs?
Side note : Some systems uses a static drawign widget, i.e. once the drawing is displayed, in an widget that the system comes with, you can not interact with the drawing using your mouse. The GNU implementation of IDL, GDL, has this problem. I would Like to avoid this.
Yes, I agree with you regarding the VTK's consideration: it's a powerful toolkit but it is (maybe) too much "big", and it's not so easy to configure a working VTK environment.
I don't have a great experience in the field of graphs, but a search leads to this other StackOverflow post. I think that Prefuse, listed under the Java section, could be of some interest. C++ itself seems to have a lot of choices, listed in various answers, here. I hope that it will help.
I used Gephi public domain graph visualization software on Linux. It was a quick way to get a 3 D. Picture which can be modified with line thickness to show an edge weight - good for comm network work.

Simple program to display 3D mesh?

for a university project I have to compute a 3D mesh, then display it.
By mesh I mean a list of triangles, where each point has a specific elevation.
What is the easiest tool that exists both on windows and linux that would allow me to display such a mesh?
I just want to be able to visualize the mesh and rotate it, and I can code any specific mesh format needed to be used as an input.
What I mostly want is a tool that is easy to install for the final user of my program.
Almost every tool reads the .obj format, for example MeshMan, MeshLab and ArtOfIllusion. They all work under Windows and Linux. Geomview (.off-Files) is also great, but hard to install under Windows.
I'm using for this purpose osgviewer from OpenSceneGraph
I wouldn't know about the easiest tool, but have you tried Blender? It's cross platform.
There are some standard file formats for triangle meshes. Try outputing to .ply file and using one of the existing viewers for that.
I tend to use VTK file formats since I work in scientific visualization; that would be overkill for you.
In fact, I wrote a VTK/QT based app for viewing meshes that can handle .ply files https://github.com/HalCanary/vtkviewer.

What kind of tool can be use to produce this graph?

I am new at graphing tools for big data analysis. Though the following is not from big data, I was wondering what kind of tools are used to create this kind of complex graph:
http://www.bitmover.com/lmbench/mem_lat3.pdf
Associated with the paper http://www.bitmover.com/lmbench/lmbench-usenix.pdf
The article is made in LaTeX (particulary groff project), according to metadata in the chart's PDF, it's saved to PDF from Photoshop (so this lead ends here). Anyway, the TikZ or Asymptote (see gallery) are capable of drawing charts like this..
Looks a little bit like gnuplot, but it can be perfectly done by matplotlib. An example can be found at this page.
Sorry, I never noticed this question before. Larry borrowed that graphic from me and it was created with Excel.
I was considering adding code to lmbench to create that plot automatically and Thorsten's suggestion of mplot3d sounds like a good place to start.

Plot multiple files

I'd like to make an animation that illustrates the positions of some agents I'm simulating under Linux.
Basically, I have some files named file00001.dat, file00002.dat and so on.
I have to generate "something" that get files in order, and output an animated gif, a dynamic graph or whatever, that simulates the moving reading data from file.
I have control on the files, meaning that I can put identifiers or everything I want.
How would you achieve that? What programs would you use?
In linux, gnuplot is the old standby. And it can do animated gif's as well.
There are many choices, but in general matplotlib is a good one. It is a python library, so you have powerful libraries available to fine-tune or analyse your data set if you want to go beyond just quick plots. For very simple stuff you can always use the pyplot module from matplotlib that has many commands known from MATLAB or gnuplot.
For producing animations see this question.
As an added plus its default outputs are much better than e.g. gnuplot's or plotutils'.

Resources