I'm going to draw a certain function from a .txt file. I'd like to specify/to highlight a point of that function on the function itself by a marker and a label.
Moreover, I'd like to put a notch on the x-axis and a label.
Can you suggest the code needed to carry it out?
Thank you!!!
What is following is the code I wrote.
\documentclass[a4paper, landscape, 8pt]{book}
\usepackage{etex}
\usepackage{etoolbox}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[italian]{babel}
\usepackage{microtype}
\usepackage{tikz, siunitx, pgfplots, relsize, pgfmath}
\usetikzlibrary{intersections, pgfplots.units}
\pgfplotsset{compat=newest}
\usepgfplotslibrary{units}
\begin{document}
\pgfplotsset{change x base,
x SI prefix=milli,
change y base,
y SI prefix=micro
}
\pgfplotsset{
every axis/.append style = {
font=\relsize{1},
% riguarda le tick labels
line width = 1pt,
% oppure: thin, semithick, thick,
% very thick
tick style = {line width = 1pt}
},
every axis x label/.append style = {
font = \relsize{2}
},
every axis y label/.append style = {
font = \relsize{2},
rotate = -90
%xshift = -0.7em,
%yshift = -1.4em
},
major grid style = {
line width = 0.5pt,
gray,
%dash pattern = on 4pt off 4pt
},
every axis title/.append style = {
font = \relsize{1}
},
legend style={at={(850e-3, 700e-3)},anchor=north, line width=1pt}
}
\begin{tikzpicture}
\begin{axis}
[ axis background/.style={fill=gray!15},
%axis x line=bottom,
%axis y line=left,
xmin=-0.3, xmax=0.3,
ymin=-0.000004, ymax=0.000004,
x unit=V,
%x unit prefix=m,
y unit=A,
%y unit prefix=u,
minor x tick num = 1,
minor y tick num = 1,
width=12cm, height=9cm,
grid=major,
%xtick = {-0.3,-0.2,...,0.3},
%ytick = {-0.000004,-0.000003,...,0.000004},
xlabel = {$V_d$},
ylabel=$I_{d_1}-I_{d_2}$
]
\addplot [thick, green!100] file {diffecorrenti.txt};
\end{axis}
\end{tikzpicture}
\end{document}

diffecorrenti.txtso your example becomes quickly compilable for everyone. – Gonzalo Medina Dec 14 '14 at 17:02\usepackage{etex}, for example, orfont=\relsize{1}and so on) and include some dummy data. – Jake Dec 14 '14 at 17:18diffecorrenti.txtto your question, I didn0t mean the actual file, but a simple dummy file like the one in my answer. – Gonzalo Medina Dec 15 '14 at 02:02