GPerfTools/pprof: what does a dashed line mean? - linux

When you use the "--gv" option in GPerfTool's pprof command, you get a very pretty graph. Yay.
Lines are either thick, thin, dashed or solid. I figure thick/thin is based on the number of sample entries that follow that line.
But I have neither figure out nor found documentation as to what the dashed line means. Am currently going thru the pprof CODE, but frankly that's a REALLY STUPID way to figure out what it means. Thus, in addition to answering what the dashed line means, can you please point out some document that gives a legend of the pprof gv format?
This one (http://goog-perftools.sourceforge.net/doc/cpu_profiler.html) must be out of date, as it has no mention of the dashed format...leading me to worry that it might be QUITE out of date.

From the code, it APPEARS that a dashed line means an inline function call. However, confirmation would be good.
DOCUMENTATION would be even better!
if ($x[1] =~ m/\(inline\)/) {
$style .= ",dashed";
}
source

The target node of any dashed arc contains "(inline)".

Related

Add double lines in the middle of another svg line

so I have a drawing program and I need to implement a "broken line", it is an SVG line with two another lines in the middle of this line, these two line needs to cross perpendicularly to the principal line, maybe this picture can help me to explain the problem:
This line can be drawn in any angle that the user choose
I don't really understand svg's so I'm having a lot of trouble implementing this.
Thank you
So I discovered one way to implement that using polylines and calculating the middle of the source and target coordinates, so when it changes I change the middle point too. After that, I created a marker-mid with the double lines.

Produce old style graphs and diagrams with gnuplot?

Hello fellow Stackoverflowers:
I am curious if it is possible to create a style or control the aestetic of the graphs and diagrams to look like they are from a turn-de-siclé book (talking about the 19th-20th centuries), that is, imitate the look of an etched graph. I have a simple diagram that I produced on inkscape that is a very very crude aproximation to what I am looking.
Could I produce something more "metal/wood engraving" on gnuplot? I have gnuplot 5.0.5. Thank for your attention, I hope this is the right forum.
Use gnuplot command test to see what fill patterns available.
Modifying or adding custom fill pattern is extremely difficult in gnuplot, as far as I know. See this example for how to manipulate the fill pattern: Gnuplot: how to fill a bar with both a color background and a pattern

How to connect two points with a curved line in GNUplot?

Its basically what the question says. I know that using tikz in latex it would be something like:
\draw[thick,dashed] (0,0) to [out=15,in=165] (1,0)
I would appreciate any help.
I think you have a misunderstanding how lines in gnuplot work. They are always directly connecting points. So you have to ways of faking it:
1) adding additional points and connecting them to "pretend" to have a curved line
2) define a function with the curve you want and plot it over the points (in xrange of point 1 to 2)
What I had to do is to great a .tex file with everything else a needed and then, in the .tex file I add the "\draw[thick,dashed] (0,0) to [out=15,in=165] (1,0)". But I wish I could know how to do it using GNUplot itself.

titles next to lines in gnuplot

The feature list for the new version of gnuplot states that "plot title can be placed next to the plot line in the graph proper." This is something I would like to be able to do automatically, but I can't find mention of how to do this in the documentation (probably because it hasn't been written yet). Does anyone know how to do this?
I found the answer in the command line documentation, I assume the pdf hasn't been updated yet. Here's the text:
If you want the title of a plotted line to be placed immediately before or
after that line in the graph itself, use `at {beginning|end}`. This option
may be useful when plotting `with lines` but makes little sense for some
other plot styles.

Creating a newenvironment that contains nested environments

I have an issue in latex with the equation spacing. The document must be double spaced, but if the equations are double spaced there is too much vertical white space, especially in the matrices and vectors. I found a solution using setspace:
\begin{spacing}{1}
\begin{align}
equation
\end{align}\\[12pt]
\end{spacing}
Where I need to use the \\[12pt] to adjust the spacing, because without it the equation sits right on top of the following text. To simplify matters, I wanted to create a new environment by using:
\newenvironment{myalign}%
{\begin{spacing}{1}\begin{align}}%
{\end{align}\\[12pt]\end{spacing}}
However I keep getting the an error: '\begin{align} ended by \begin{myalign} or similar. I found another post which explains why I get this error, but it is not obvious to me how to solve the problem.
Any help is greatly appreciated.
In this particular instance, replacing \begin{align} and \end{align} with \align and \endalign should work.

Resources