mirror of
https://github.com/MartinThoma/LaTeX-examples.git
synced 2025-04-25 14:28:05 +02:00
improved point labels
This commit is contained in:
parent
e5a4295969
commit
2be4fd3281
3 changed files with 5009 additions and 6017 deletions
Binary file not shown.
Before Width: | Height: | Size: 88 KiB After Width: | Height: | Size: 90 KiB |
|
@ -1,3 +1,5 @@
|
||||||
|
% Thanks to Jake for helping me with this one:
|
||||||
|
% http://tex.stackexchange.com/a/198531/5645
|
||||||
\documentclass[varwidth=true, border=5pt]{article}
|
\documentclass[varwidth=true, border=5pt]{article}
|
||||||
\usepackage[active,tightpage]{preview}
|
\usepackage[active,tightpage]{preview}
|
||||||
\usepackage[latin1]{inputenc}
|
\usepackage[latin1]{inputenc}
|
||||||
|
@ -13,6 +15,7 @@
|
||||||
\begin{preview}
|
\begin{preview}
|
||||||
\begin{tikzpicture}
|
\begin{tikzpicture}
|
||||||
\begin{axis}[
|
\begin{axis}[
|
||||||
|
clip mode=individual,
|
||||||
width=13.4cm,
|
width=13.4cm,
|
||||||
height=10.0cm,
|
height=10.0cm,
|
||||||
% Grid
|
% Grid
|
||||||
|
@ -55,26 +58,15 @@ scatter,
|
||||||
only marks,
|
only marks,
|
||||||
point meta=explicit symbolic,
|
point meta=explicit symbolic,
|
||||||
scatter/classes={
|
scatter/classes={
|
||||||
a={mark=x,red!90!black},%
|
a={mark=*,red!90!black,fill opacity=0.2},%
|
||||||
b={mark=x,cyan!50!black}},
|
b={mark=*,cyan!50!black,fill opacity=0.2}},
|
||||||
]
|
]
|
||||||
table[col sep=comma, meta=label] {data.csv};
|
table[col sep=comma, meta=label] {data.csv};
|
||||||
|
|
||||||
\addplot[
|
\filldraw [fill=red!30!white, draw=black, thick] (axis cs:70,40) circle [radius=5pt];
|
||||||
scatter,
|
\filldraw [fill=cyan!30!white, draw=black, thick] (axis cs:60,20) circle [radius=5pt];
|
||||||
only marks,
|
\filldraw [fill=green!70!black, draw=black, thick] (axis cs:65,35) circle [radius=5pt] node [label={[inner sep=1pt, fill=white,text=black, fill opacity=0.75, text opacity=1]above left:$(65, 35)$}] {};
|
||||||
point meta=explicit symbolic,
|
|
||||||
scatter/classes={
|
|
||||||
b={mark=*,mark size=4pt,red!30!white,draw=black},%
|
|
||||||
c={mark=*,mark size=4pt,cyan!30!white,draw=black},%
|
|
||||||
a={mark=*,mark size=4pt,green!70!black,draw=black,pin=135:{\color{black}$(65, 35)$},label={(65, 35)}] {}}},
|
|
||||||
]
|
|
||||||
table[meta=label] {
|
|
||||||
x y label
|
|
||||||
65 35 a
|
|
||||||
70 40 b
|
|
||||||
60 20 c
|
|
||||||
};
|
|
||||||
% \addlegendentry{Gruppe 1}
|
% \addlegendentry{Gruppe 1}
|
||||||
% \addlegendentry{Gruppe 2}
|
% \addlegendentry{Gruppe 2}
|
||||||
\end{axis}
|
\end{axis}
|
||||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue