I have a two dimensional Data set which is created by an outside program (matlab).
I want to plot this using pgfplots.
I am only interested in two data points on the x-axis. These should get ticks. The problem is: The position of these data points depends on the specification of my data generating matlab code and is thus endogenous. How can I automize the the picture drawing?
Here is my idea so far: When generating the data I also write down the two values in two separate files b_value.dat and c_value.dat each containing only that value.
The naive approach was to use the following properties
\begin{axis}[%
ytick=\empty,
xtick={\input{b_value.dat},\input{c_value.dat}},
xticklabels={$b$,$c$}
]
I understand however from this question that \input does not work.
It also seems not to work inside \pgfplotsset.
Is there any way to automize this?
Nasty workaround: I write the entire \pgfplotsset-part in matlab and use input for that. I don't like that approach as to my understanding matlab should not write dirty latex. I would prefer to only write the values b and c as data points from the matlab rountine. Is this possible?
(I can include an MWE if demanded, but IMHO it is not necessary and only confusing by the amount of files)
