Impulse plot
This plot type can be used to plot a mass spectrum. In this example, the acetylsalicylic acid (2-acetoxybenzoic acid) mass spectrum is considered. The peak data are taken from http:// sdbs.db.aist.go.jp/sdbs/cgi-bin/direct_frame_top.cgi and then organised in four columns. The first two columns are the spectrum coordinates and the second two are the fragments coordinates, on which the numerical labels are put. With the LaTeX command includegraphics and the primitive xstring, it’s also possible to add an image of the molecular structure (via the parameter ‘g’). In xstring (5,65,”$”+g+”$”), first the coordinates are written about the position of ‘g’ on the plot and then ‘g’ is inserted between two ‘$’. That is how LaTeX can be used with Scilab. If the impulses are plotted horizontally, the result can be adapted to something similar to a Gantt chart.