Welcome to the Power Users community on Codidact!
Power Users is a Q&A site for questions about the usage of computer software and hardware. We are still a small site and would like to grow, so please consider joining our community. We are looking forward to your questions and answers; they are the building blocks of a repository of knowledge we are building together.
Post History
If you have access to the source of the image, fix the code instead of messing with the image. This will be much more accurate and result in a higher quality result. You could add the lines via ...
Answer
#8: Post edited
- You could add the lines via latex (texlive is available via the usual linux package managers, but is often already installed because many other tools have it as dependency).
- 1. first determined the coordinates of the `0` and `8` x ticks (the commented green help lines in the example below). I'm using these coordinates instead of trying to determine the location of the bars, because these span a larger interval and thus the error from doing this by eye will be smaller. In the example below, they are at `-16.1` and `17.45`.
- 2. next calculate from these coordinates the location of your desired lines, `-5.6158` and `6.9653`.
- (might be a bit overkill, but I think this will ensure that the lines are placed as precisely as possible)
- ```
- \documentclass{standalone}
- \usepackage{tikz}
- \begin{document}
- \begin{tikzpicture}[inner sep=0pt,outer sep=0pt]
- \node at (0,0) {\includegraphics{ULaNwNrkXuSqPYiKGbEjrzGa}};
- %\draw[green,line width=5pt] (-16.1,-10.1) -- ++(0,19.9);
- %\draw[green,line width=5pt] (17.45,-10.1) -- ++(0,19.9);
- \draw[magenta,line width=5pt] (-5.6158,-10.1) -- ++(0,19.9);
- \draw[magenta,line width=5pt] (6.9653,-10.1) -- ++(0,19.9);
- \end{tikzpicture}
- \end{document}
- ```
- (replace `ULaNwNrkXuSqPYiKGbEjrzGa` with the filename of your image)
- ![plot with added vertical lines](https://powerusers.codidact.com/uploads/77JsMs4t7CoH8QDTpQuqHsTU)
- If you have access to the source of the image, fix the code instead of messing with the image. This will be much more accurate and result in a higher quality result.
- ---
- You could add the lines via latex (texlive is available via the usual linux package managers, but is often already installed because many other tools have it as dependency).
- 1. first determined the coordinates of the `0` and `8` x ticks (the commented green help lines in the example below). I'm using these coordinates instead of trying to determine the location of the bars, because these span a larger interval and thus the error from doing this by eye will be smaller. In the example below, they are at `-16.1` and `17.45`.
- 2. next calculate from these coordinates the location of your desired lines, `-5.6158` and `6.9653`.
- (might be a bit overkill, but I think this will ensure that the lines are placed as precisely as possible)
- ```
- \documentclass{standalone}
- \usepackage{tikz}
- \begin{document}
- \begin{tikzpicture}[inner sep=0pt,outer sep=0pt]
- \node at (0,0) {\includegraphics{ULaNwNrkXuSqPYiKGbEjrzGa}};
- %\draw[green,line width=5pt] (-16.1,-10.1) -- ++(0,19.9);
- %\draw[green,line width=5pt] (17.45,-10.1) -- ++(0,19.9);
- \draw[magenta,line width=5pt] (-5.6158,-10.1) -- ++(0,19.9);
- \draw[magenta,line width=5pt] (6.9653,-10.1) -- ++(0,19.9);
- \end{tikzpicture}
- \end{document}
- ```
- (replace `ULaNwNrkXuSqPYiKGbEjrzGa` with the filename of your image)
- ![plot with added vertical lines](https://powerusers.codidact.com/uploads/77JsMs4t7CoH8QDTpQuqHsTU)
#7: Post edited
- You could add the lines via latex (texlive is available via the usual linux package managers, but is often already installed because many other tools have it as dependency).
- 1. first determined the coordinates of the `0` and `8` x ticks (the commented green help lines in the example below). I'm using these coordinates instead of trying to determine the location of the bars, because these span a larger interval and thus the error from doing this by eye will be smaller. In the example below, they are at `-16.1` and `17.45`.
- 2. next calculate from these coordinates the location of your desired lines, `-5.6158` and `6.9653`.
- (might be a bit overkill, but I think this will ensure that the lines are placed as precisely as possible)
- ```
- \documentclass{standalone}
- \usepackage{tikz}
- \begin{document}
- \begin{tikzpicture}[inner sep=0pt,outer sep=0pt]
- \node at (0,0) {\includegraphics{ULaNwNrkXuSqPYiKGbEjrzGa}};
- %\draw[green,line width=5pt] (-16.1,-10.1) -- ++(0,19.9);
- %\draw[green,line width=5pt] (17.45,-10.1) -- ++(0,19.9);
- \draw[magenta,line width=5pt] (-5.6158,-10.1) -- ++(0,19.9);
- \draw[magenta,line width=5pt] (6.9653,-10.1) -- ++(0,19.9);
- \end{tikzpicture}
- \end{document}
- ```
- ![plot with added vertical lines](https://powerusers.codidact.com/uploads/77JsMs4t7CoH8QDTpQuqHsTU)
- You could add the lines via latex (texlive is available via the usual linux package managers, but is often already installed because many other tools have it as dependency).
- 1. first determined the coordinates of the `0` and `8` x ticks (the commented green help lines in the example below). I'm using these coordinates instead of trying to determine the location of the bars, because these span a larger interval and thus the error from doing this by eye will be smaller. In the example below, they are at `-16.1` and `17.45`.
- 2. next calculate from these coordinates the location of your desired lines, `-5.6158` and `6.9653`.
- (might be a bit overkill, but I think this will ensure that the lines are placed as precisely as possible)
- ```
- \documentclass{standalone}
- \usepackage{tikz}
- \begin{document}
- \begin{tikzpicture}[inner sep=0pt,outer sep=0pt]
- \node at (0,0) {\includegraphics{ULaNwNrkXuSqPYiKGbEjrzGa}};
- %\draw[green,line width=5pt] (-16.1,-10.1) -- ++(0,19.9);
- %\draw[green,line width=5pt] (17.45,-10.1) -- ++(0,19.9);
- \draw[magenta,line width=5pt] (-5.6158,-10.1) -- ++(0,19.9);
- \draw[magenta,line width=5pt] (6.9653,-10.1) -- ++(0,19.9);
- \end{tikzpicture}
- \end{document}
- ```
- (replace `ULaNwNrkXuSqPYiKGbEjrzGa` with the filename of your image)
- ![plot with added vertical lines](https://powerusers.codidact.com/uploads/77JsMs4t7CoH8QDTpQuqHsTU)
#6: Post edited
- You could add the lines via latex (texlive is available via the usual linux package managers, but is often already installed because many other tools have it as dependency).
1. first determined the coordinates of the `0` and `8` x ticks (the green help lines in the example below). I'm using these coordinates instead of trying to determine the location of the bars, because these span a larger interval and thus the error from doing this by eye will be smaller. In the example below, they are at `-16.1` and `17.45`.- 2. next calculate from these coordinates the location of your desired lines, `-5.6158` and `6.9653`.
- (might be a bit overkill, but I think this will ensure that the lines are placed as precisely as possible)
- ```
- \documentclass{standalone}
- \usepackage{tikz}
- \begin{document}
- \begin{tikzpicture}[inner sep=0pt,outer sep=0pt]
- \node at (0,0) {\includegraphics{ULaNwNrkXuSqPYiKGbEjrzGa}};
- %\draw[green,line width=5pt] (-16.1,-10.1) -- ++(0,19.9);
- %\draw[green,line width=5pt] (17.45,-10.1) -- ++(0,19.9);
- \draw[magenta,line width=5pt] (-5.6158,-10.1) -- ++(0,19.9);
- \draw[magenta,line width=5pt] (6.9653,-10.1) -- ++(0,19.9);
- \end{tikzpicture}
- \end{document}
- ```
- ![plot with added vertical lines](https://powerusers.codidact.com/uploads/77JsMs4t7CoH8QDTpQuqHsTU)
- You could add the lines via latex (texlive is available via the usual linux package managers, but is often already installed because many other tools have it as dependency).
- 1. first determined the coordinates of the `0` and `8` x ticks (the commented green help lines in the example below). I'm using these coordinates instead of trying to determine the location of the bars, because these span a larger interval and thus the error from doing this by eye will be smaller. In the example below, they are at `-16.1` and `17.45`.
- 2. next calculate from these coordinates the location of your desired lines, `-5.6158` and `6.9653`.
- (might be a bit overkill, but I think this will ensure that the lines are placed as precisely as possible)
- ```
- \documentclass{standalone}
- \usepackage{tikz}
- \begin{document}
- \begin{tikzpicture}[inner sep=0pt,outer sep=0pt]
- \node at (0,0) {\includegraphics{ULaNwNrkXuSqPYiKGbEjrzGa}};
- %\draw[green,line width=5pt] (-16.1,-10.1) -- ++(0,19.9);
- %\draw[green,line width=5pt] (17.45,-10.1) -- ++(0,19.9);
- \draw[magenta,line width=5pt] (-5.6158,-10.1) -- ++(0,19.9);
- \draw[magenta,line width=5pt] (6.9653,-10.1) -- ++(0,19.9);
- \end{tikzpicture}
- \end{document}
- ```
- ![plot with added vertical lines](https://powerusers.codidact.com/uploads/77JsMs4t7CoH8QDTpQuqHsTU)
#5: Post edited
- You could add the lines via latex (texlive is available via the usual linux package managers, but is often already installed because many other tools have it as dependency).
- 1. first determined the coordinates of the `0` and `8` x ticks (the green help lines in the example below). I'm using these coordinates instead of trying to determine the location of the bars, because these span a larger interval and thus the error from doing this by eye will be smaller. In the example below, they are at `-16.1` and `17.45`.
- 2. next calculate from these coordinates the location of your desired lines, `-5.6158` and `6.9653`.
- (might be a bit overkill, but I think this will ensure that the lines are placed as precisely as possible)
- ```
- \documentclass{standalone}
- \usepackage{tikz}
- \begin{document}
- \begin{tikzpicture}[inner sep=0pt,outer sep=0pt]
- \node at (0,0) {\includegraphics{ULaNwNrkXuSqPYiKGbEjrzGa}};
\draw[green,line width=5pt] (-16.1,-10.1) -- ++(0,19.9);\draw[green,line width=5pt] (17.45,-10.1) -- ++(0,19.9);- \draw[magenta,line width=5pt] (-5.6158,-10.1) -- ++(0,19.9);
- \draw[magenta,line width=5pt] (6.9653,-10.1) -- ++(0,19.9);
- \end{tikzpicture}
- \end{document}
- ```
- ![plot with added vertical lines](https://powerusers.codidact.com/uploads/77JsMs4t7CoH8QDTpQuqHsTU)
- You could add the lines via latex (texlive is available via the usual linux package managers, but is often already installed because many other tools have it as dependency).
- 1. first determined the coordinates of the `0` and `8` x ticks (the green help lines in the example below). I'm using these coordinates instead of trying to determine the location of the bars, because these span a larger interval and thus the error from doing this by eye will be smaller. In the example below, they are at `-16.1` and `17.45`.
- 2. next calculate from these coordinates the location of your desired lines, `-5.6158` and `6.9653`.
- (might be a bit overkill, but I think this will ensure that the lines are placed as precisely as possible)
- ```
- \documentclass{standalone}
- \usepackage{tikz}
- \begin{document}
- \begin{tikzpicture}[inner sep=0pt,outer sep=0pt]
- \node at (0,0) {\includegraphics{ULaNwNrkXuSqPYiKGbEjrzGa}};
- %\draw[green,line width=5pt] (-16.1,-10.1) -- ++(0,19.9);
- %\draw[green,line width=5pt] (17.45,-10.1) -- ++(0,19.9);
- \draw[magenta,line width=5pt] (-5.6158,-10.1) -- ++(0,19.9);
- \draw[magenta,line width=5pt] (6.9653,-10.1) -- ++(0,19.9);
- \end{tikzpicture}
- \end{document}
- ```
- ![plot with added vertical lines](https://powerusers.codidact.com/uploads/77JsMs4t7CoH8QDTpQuqHsTU)
#4: Post edited
- You could add the lines via latex (texlive is available via the usual linux package managers, but is often already installed because many other tools have it as dependency).
1. first determined the coordinates of the `0` and `8` x ticks (the green help lines in the example below). I'm using these coordinates instead of trying to determine the location of the bars, because these span a larger interval and thus the error from doing this by eye will be smaller2. next calculate from these coordinates the location of your desired lines- (might be a bit overkill, but I think this will ensure that the lines are placed as precisely as possible)
- ```
- \documentclass{standalone}
- \usepackage{tikz}
- \begin{document}
- \begin{tikzpicture}[inner sep=0pt,outer sep=0pt]
- \node at (0,0) {\includegraphics{ULaNwNrkXuSqPYiKGbEjrzGa}};
- \draw[green,line width=5pt] (-16.1,-10.1) -- ++(0,19.9);
- \draw[green,line width=5pt] (17.45,-10.1) -- ++(0,19.9);
- \draw[magenta,line width=5pt] (-5.6158,-10.1) -- ++(0,19.9);
- \draw[magenta,line width=5pt] (6.9653,-10.1) -- ++(0,19.9);
- \end{tikzpicture}
- \end{document}
- ```
- ![plot with added vertical lines](https://powerusers.codidact.com/uploads/77JsMs4t7CoH8QDTpQuqHsTU)
- You could add the lines via latex (texlive is available via the usual linux package managers, but is often already installed because many other tools have it as dependency).
- 1. first determined the coordinates of the `0` and `8` x ticks (the green help lines in the example below). I'm using these coordinates instead of trying to determine the location of the bars, because these span a larger interval and thus the error from doing this by eye will be smaller. In the example below, they are at `-16.1` and `17.45`.
- 2. next calculate from these coordinates the location of your desired lines, `-5.6158` and `6.9653`.
- (might be a bit overkill, but I think this will ensure that the lines are placed as precisely as possible)
- ```
- \documentclass{standalone}
- \usepackage{tikz}
- \begin{document}
- \begin{tikzpicture}[inner sep=0pt,outer sep=0pt]
- \node at (0,0) {\includegraphics{ULaNwNrkXuSqPYiKGbEjrzGa}};
- \draw[green,line width=5pt] (-16.1,-10.1) -- ++(0,19.9);
- \draw[green,line width=5pt] (17.45,-10.1) -- ++(0,19.9);
- \draw[magenta,line width=5pt] (-5.6158,-10.1) -- ++(0,19.9);
- \draw[magenta,line width=5pt] (6.9653,-10.1) -- ++(0,19.9);
- \end{tikzpicture}
- \end{document}
- ```
- ![plot with added vertical lines](https://powerusers.codidact.com/uploads/77JsMs4t7CoH8QDTpQuqHsTU)
#3: Post edited
- You could add the lines via latex (texlive is available via the usual linux package managers, but is often already installed because many other tools have it as dependency).
- 1. first determined the coordinates of the `0` and `8` x ticks (the green help lines in the example below). I'm using these coordinates instead of trying to determine the location of the bars, because these span a larger interval and thus the error from doing this by eye will be smaller
2. next calculate from these coordinates the location of your desired lines:- ```
- \documentclass{standalone}
- \usepackage{tikz}
- \begin{document}
- \begin{tikzpicture}[inner sep=0pt,outer sep=0pt]
- \node at (0,0) {\includegraphics{ULaNwNrkXuSqPYiKGbEjrzGa}};
- \draw[green,line width=5pt] (-16.1,-10.1) -- ++(0,19.9);
- \draw[green,line width=5pt] (17.45,-10.1) -- ++(0,19.9);
- \draw[magenta,line width=5pt] (-5.6158,-10.1) -- ++(0,19.9);
- \draw[magenta,line width=5pt] (6.9653,-10.1) -- ++(0,19.9);
- \end{tikzpicture}
- \end{document}
- ```
- ![plot with added vertical lines](https://powerusers.codidact.com/uploads/77JsMs4t7CoH8QDTpQuqHsTU)
- You could add the lines via latex (texlive is available via the usual linux package managers, but is often already installed because many other tools have it as dependency).
- 1. first determined the coordinates of the `0` and `8` x ticks (the green help lines in the example below). I'm using these coordinates instead of trying to determine the location of the bars, because these span a larger interval and thus the error from doing this by eye will be smaller
- 2. next calculate from these coordinates the location of your desired lines
- (might be a bit overkill, but I think this will ensure that the lines are placed as precisely as possible)
- ```
- \documentclass{standalone}
- \usepackage{tikz}
- \begin{document}
- \begin{tikzpicture}[inner sep=0pt,outer sep=0pt]
- \node at (0,0) {\includegraphics{ULaNwNrkXuSqPYiKGbEjrzGa}};
- \draw[green,line width=5pt] (-16.1,-10.1) -- ++(0,19.9);
- \draw[green,line width=5pt] (17.45,-10.1) -- ++(0,19.9);
- \draw[magenta,line width=5pt] (-5.6158,-10.1) -- ++(0,19.9);
- \draw[magenta,line width=5pt] (6.9653,-10.1) -- ++(0,19.9);
- \end{tikzpicture}
- \end{document}
- ```
- ![plot with added vertical lines](https://powerusers.codidact.com/uploads/77JsMs4t7CoH8QDTpQuqHsTU)
#2: Post edited
- You could add the lines via latex (texlive is available via the usual linux package managers, but is often already installed because many other tools have it as dependency).
- 1. first determined the coordinates of the `0` and `8` x ticks (the green help lines in the example below). I'm using these coordinates instead of trying to determine the location of the bars, because these span a larger interval and thus the error from doing this by eye will be smaller
- 2. next calculate from these coordinates the location of your desired lines:
- ```
- \documentclass{standalone}
- \usepackage{tikz}
- \begin{document}
- \begin{tikzpicture}[inner sep=0pt,outer sep=0pt]
- \node at (0,0) {\includegraphics{ULaNwNrkXuSqPYiKGbEjrzGa}};
- \draw[green,line width=5pt] (-16.1,-10.1) -- ++(0,19.9);
- \draw[green,line width=5pt] (17.45,-10.1) -- ++(0,19.9);
- \draw[magenta,line width=5pt] (-5.6158,-10.1) -- ++(0,19.9);
- \draw[magenta,line width=5pt] (6.9653,-10.1) -- ++(0,19.9);
- \end{tikzpicture}
- \end{document}
- ```
![Image alt text](https://powerusers.codidact.com/uploads/77JsMs4t7CoH8QDTpQuqHsTU)
- You could add the lines via latex (texlive is available via the usual linux package managers, but is often already installed because many other tools have it as dependency).
- 1. first determined the coordinates of the `0` and `8` x ticks (the green help lines in the example below). I'm using these coordinates instead of trying to determine the location of the bars, because these span a larger interval and thus the error from doing this by eye will be smaller
- 2. next calculate from these coordinates the location of your desired lines:
- ```
- \documentclass{standalone}
- \usepackage{tikz}
- \begin{document}
- \begin{tikzpicture}[inner sep=0pt,outer sep=0pt]
- \node at (0,0) {\includegraphics{ULaNwNrkXuSqPYiKGbEjrzGa}};
- \draw[green,line width=5pt] (-16.1,-10.1) -- ++(0,19.9);
- \draw[green,line width=5pt] (17.45,-10.1) -- ++(0,19.9);
- \draw[magenta,line width=5pt] (-5.6158,-10.1) -- ++(0,19.9);
- \draw[magenta,line width=5pt] (6.9653,-10.1) -- ++(0,19.9);
- \end{tikzpicture}
- \end{document}
- ```
- ![plot with added vertical lines](https://powerusers.codidact.com/uploads/77JsMs4t7CoH8QDTpQuqHsTU)
#1: Initial revision
You could add the lines via latex (texlive is available via the usual linux package managers, but is often already installed because many other tools have it as dependency). 1. first determined the coordinates of the `0` and `8` x ticks (the green help lines in the example below). I'm using these coordinates instead of trying to determine the location of the bars, because these span a larger interval and thus the error from doing this by eye will be smaller 2. next calculate from these coordinates the location of your desired lines: ``` \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture}[inner sep=0pt,outer sep=0pt] \node at (0,0) {\includegraphics{ULaNwNrkXuSqPYiKGbEjrzGa}}; \draw[green,line width=5pt] (-16.1,-10.1) -- ++(0,19.9); \draw[green,line width=5pt] (17.45,-10.1) -- ++(0,19.9); \draw[magenta,line width=5pt] (-5.6158,-10.1) -- ++(0,19.9); \draw[magenta,line width=5pt] (6.9653,-10.1) -- ++(0,19.9); \end{tikzpicture} \end{document} ``` ![Image alt text](https://powerusers.codidact.com/uploads/77JsMs4t7CoH8QDTpQuqHsTU)