Questions tagged [legend]
a legend in a graph helps the reader determine the correspondence between line style and data values
449
questions
0
votes
1
answer
17
views
Aligning legend with figure width memoir class
I'm using the memoir class. Let's say I have a figure like this.
\begin{figure}[htbp!]
\centering
\caption{Super-cool Figure}
\label{fig:super_cool}
\includegraphics[width = 0.7\...
0
votes
0
answers
17
views
shared legend position is not changed
\documentclass{article}
% Standard package includes
\usepackage{times}
\usepackage{latexsym}
% For proper rendering and hyphenation of words containing Latin characters (including in bib files)
\...
0
votes
2
answers
43
views
Weird issue with pgfplots legend deleting curly brace
When compiling the following
\documentclass{article}
\usepackage{amsmath}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\begin{axis}[domain=-1:1]
\...
1
vote
2
answers
34
views
Problem when using cases environment in pgfplots legend
I noticed that if I use cases from package amsmath in a pgfplots legend, the legend box does not contain the whole text. See the MWE.
\documentclass{standalone}
\usepackage{amsmath}
\usepackage{...
0
votes
1
answer
53
views
Adding legends to diagram lines on top of a graphics
I want to display my new results on top of a figure reproduced from an old paper.
I experienced two major issues.
1.a/ If is use shifting and use
\addlegendentry{My second}
for a second time, nothing ...
0
votes
1
answer
34
views
Package PGFPLOTS legend empty entry shift to left
I made a plot with 2 y-axis on the same x-axis. One one the left, one on the right.
Thats the Code I used:
\documentclass{standalone}
\usepackage{siunitx}
\usepackage{pgfplots}
\usetikzlibrary{...
1
vote
1
answer
35
views
How to merge legends of two y-axes in pgf plot?
I want to merge the two legends of this pgf plot, so that the second legend "This is legend two" is within the first legend box.
Here is the MWE:
\documentclass[
12pt,
a4paper,
]{scrbook}
\...
1
vote
2
answers
188
views
Creating a Common Legend for Subfigures with subcaption Package in LaTeX
I'm working on a LaTeX template, the elsarticle class from Elsivier, where I have two subfigures created using the subcaption package. I came across this answer which provides a solution for having a ...
1
vote
2
answers
70
views
How to add color and legends to bar chart
I am trying to create a simple chart using the code below:
\begin{tikzpicture}
\begin{axis}[
symbolic x coords={
Integrated Circuits,
Transistors,
Capacitors,
...
0
votes
0
answers
19
views
Place the text of a legend entry underneath the corresponding line in pgfplots
I have the following code, which brings me to the figure in the first image.
Now I would like to place the text (in this example: exp(x) and x²+2x+1) of the legend entries underneath the red and blue ...
3
votes
1
answer
152
views
Rotate the symbol will cause it in legend not space rightly in 'pgfplots' in LaTeX
There is a symbol as triangle in pgfplots. As sometimes need the inverted triangle, I rotate it 180 degrees. It will work all right in the figure but not in the legend.
\documentclass{article}
\...
1
vote
1
answer
104
views
Adding additional text in a legend
I am learning Tikz/Pgfplots and I am trying to recreate the following graph
So far I have been able to come up with the following:
\begin{tikzpicture}
\begin{axis}[axis lines = center, axis ...
0
votes
1
answer
54
views
How can I change the image size in a legend on pgfplots?
I need the small picture as large as the word.But I didn't find how.
1
vote
0
answers
42
views
How Can I change the legend positon
I would like to change the position of the legend, modifying the current position by placing it below and centered between the graphic (c) and (d).
\begin{figure}
\begin{tikzpicture}
\begin{...
0
votes
1
answer
135
views
How to change color of text in legend of pie chart in overleaf
I would like to change the color of the text 7.91-6.33 in figure A's legend and the text 73169 - 60901 in figure B's legend to red.
Please any help would be really appreciated.
\begin{figure}[htbp]
\...