Open GoogleCodeExporter opened 9 years ago
axis needs the pgfplots package, which is not by default included in the
tikzedt preamble. (Maybe I should change that for the next version.)
Any, you have to go to settings->Settings->Compiler
Then add
\usepackage{pgfplots}
Close the settings window and click
Compilation ->Regenerate precompiled headers.
Then press F5 to refresh the view.
Original comment by t.willwa...@gmail.com
on 21 Feb 2013 at 8:13
if i do so it leads to another error and a warning
error: Undefined control sequence: \end{axis}
warning: running in backwards compatibility mode (unsuitable tick labels;
missing features). Consider writing \pgfplotset{compat=1.7} into your preamble.
adding \pgfplotset{compat=1.7} removed the warning; but the error remains
Original comment by steger.s...@gmail.com
on 21 Feb 2013 at 11:14
Can you send the Tikz code? I tried with the following, and it worked fine:
% This file was created by matlab2tikz v0.3.1.
% Copyright (c) 2008--2013, Nico Schlömer <nico.schloemer@gmail.com>
% All rights reserved.
%
% The latest updates can be retrieved from
% http://www.mathworks.com/matlabcentral/fileexchange/22022-matlab2tikz
% where you can also make suggestions and rate matlab2tikz.
%
%
%
\begin{tikzpicture}
\begin{axis}[%
width=4.82222222222222in,
height=3.80333333333333in,
scale only axis,
xmin=0, xmax=20,
ymin=0, ymax=400]
\addplot [
color=blue,
solid,
forget plot
]
table{
1 1
2 4
3 9
4 16
5 25
6 36
7 49
8 64
9 81
10 100
11 121
12 144
13 169
14 196
15 225
16 256
17 289
18 324
19 361
20 400
};
\end{axis}
\end{tikzpicture}%
Original comment by t.willwa...@gmail.com
on 21 Feb 2013 at 12:49
now i see. i used some given codeexample for the matlab2tikz in the following
form:
matlab2tikz('sigmoid_test', 'height', '\figureheight', 'width', '\figurewidth')
this lead to the attached tikz-code with the dimensions \figureheight and
\figurewidth.
excuse me, thats a quite naive mistake. so its working now by setting these two
to actual values.
thank you alot for you time. also for this great software:)
% This file was created by matlab2tikz v0.3.1.
% Copyright (c) 2008--2013, Nico Schlömer <nico.schloemer@gmail.com>
% All rights reserved.
%
% The latest updates can be retrieved from
% http://www.mathworks.com/matlabcentral/fileexchange/22022-matlab2tikz
% where you can also make suggestions and rate matlab2tikz.
%
%
%
\begin{tikzpicture}
\begin{axis}[%
width=\figurewidth,
height=\figureheight,
scale only axis,
xmin=-5, xmax=5,
xlabel={Input},
ymin=0, ymax=1,
ylabel={Output}]
\addplot [
color=blue,
solid,
forget plot
]
table{
-5 0.00669285092428486
-4.5 0.0109869426305932
-4 0.0179862099620916
-3.5 0.0293122307513563
-3 0.0474258731775668
-2.5 0.0758581800212435
-2 0.119202922022118
-1.5 0.182425523806356
-1 0.268941421369995
-0.5 0.377540668798145
0 0.5
0.5 0.622459331201855
1 0.731058578630005
1.5 0.817574476193644
2 0.880797077977882
2.5 0.924141819978757
3 0.952574126822433
3.5 0.970687769248644
4 0.982013790037908
4.5 0.989013057369407
5 0.993307149075715
};
\end{axis}
\end{tikzpicture}%
Original comment by steger.s...@gmail.com
on 21 Feb 2013 at 1:28
Original issue reported on code.google.com by
steger.s...@gmail.com
on 20 Feb 2013 at 2:58