Tagged Questions
5
votes
1answer
53 views
pgfplots scale legend position when below xlabel
When using matlab2tikz to generate a .tikz from Matlab where the legend location is set to 'SouthOutside' (below the ylabel of figure), the position of the legend will cover the ylabel unless the ...
3
votes
1answer
61 views
New line in pgfplots/tikz not displaying in TeX
I have a multiple-line legend entry to preserve the width of my figure. I can use
\newline in Matlab and the legend entry is split between two lines. When I produce a .tikz of the figure however, I ...
9
votes
2answers
125 views
How to add legend to contour plots?
The following does not work:
\documentclass{standalone}
\usepackage{tikz,pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}[view={0}{90},legend entries={foo,bar}] % 'legend entries' causes ...
4
votes
1answer
107 views
How to draw horizontal(row) legend without the surronding rectangle?
I found the following code to manually draw legend, but it produces vertical(column) legend. How to draw it horizontally? I don't want surrounding rectangle also.
\documentclass{article}
...
4
votes
1answer
205 views
How to manually draw horizontal legend and place it correctly in tikz?
This is my tikz code to draw some plots.
\documentclass{article}
\usepackage{tikz,subfig}
\begin{document}
\begin{figure}
\centering
\subfloat[Iteration Domain for a Tile]{
...
5
votes
1answer
312 views
Legend position & bad x ticks scale
I'm currently experimenting tikz-pgf, but facing some strong behaviour.
How is it possible to have only 1 legend for a groupplot?
Why is the scale 10^(-3) appearing below the first plot?
Here is ...
5
votes
1answer
99 views
Problem of superimpose and how to change legend symbol
Given the plot as follows
I have two problems:
a and b are superimposed on each other, how should I make this clear on the graph?
How could I change legend c to other icons like star? (It looks a ...
5
votes
1answer
199 views
Pgfplots, Legend Color
I have the following problem: I Have a TikZ Picture with two data plots, each with a different color. I want each one to appear in the legend, and I'm using \addlegendentry. The problem is that Latex ...
5
votes
1answer
494 views
Two columns in legend in pgfplots
I know how to create a legend in a pgfplots plot.
See
Legend in tikzpicture
and
Using a pgfplots-style legend in a plain-old tikzpicture.
But I do not know how I can create a legend with two ...
2
votes
2answers
384 views
Using node shapes or self made tikzpicture as image in legend
I am using the solutions of
Using a pgfplots-style legend in a plain-old tikzpicture
and
Legend in tikzpicture
to create a legend in a tikzpicture.
In this legend I need a cylinder as image. I ...
4
votes
1answer
2k views
Legend in tikzpicture
I am looking for a way to create a legend in a regular tikzpicture. I found this
Using a pgfplots-style legend in a plain-old tikzpicture
but I don't know
how to put the legend at the wanted ...
7
votes
1answer
978 views
Using a pgfplots-style legend in a plain-old tikzpicture
I am using a plain-old tikzpicture to produce a pie-chart-like plot. Now, all other plots in my paper are handled using pgfplots (which doesn't do pie charts) and have their legend typeset by ...
2
votes
1answer
488 views
Legend with Markers for Mesh Plot
I use a mesh plot with scatter points (2d) where the colors are determined from a third coordinate of the data as described in this question. The legend however should contain the markers of a curve ...
2
votes
1answer
575 views
How to correct for a xshift in the pgfplot legend?
Using the following example code:
\documentclass{article}
\usepackage{pgfplots}
\pgfplotsset{compat=newest}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
xlabel=$x$,
...
10
votes
1answer
1k views
pgfplots: prevent single plot from being listed in legend
In order to fill the area between two complex curves I use tables and the vertcat command (see Fill between two curves in pgfplots.).
Now I don't want the plotted area to appear in my legend, just ...
12
votes
1answer
1k views
Add a legend title to the legend box with pgfplots?
I am using the awesome pgfplots package to draw some plots. I usually use \addlegendentry and get a nice default legend box. There are some options for legend box placement and layout (e.g. number of ...
