# Tag Info

7

This is a bug (thanks for the report). A valid work-around might be to reconfigure the legend for this plot: \documentclass{standalone} \usepackage{tikz,pgfplots} \begin{document} \begin{tikzpicture} \begin{axis}[view={0}{90}, legend image post style={ sharp plot, draw=\pgfkeysvalueof{/pgfplots/contour/draw color}, }, legend ...

7

I'm not sure what pcygni.txt file is and I got no output from that, but your main problem is \$is a command to choose fonts and typeset a$ but (I think) you want to pass a $to gnuplot so it is the wrong sort of quoting. this runs without error although probably isn't the plot you want. \documentclass[11pt]{article} \usepackage{pgfplots} ... 5 This seems to work... \documentclass{standalone} \usepackage{pgfplots} \makeatletter \def\pgfplotstableread@openfile{% \def\pgfplotstable@loc@TMPa{\pgfutil@in@{ }}% \expandafter\pgfplotstable@loc@TMPa\expandafter{\pgfplotstableread@filename}% \ifpgfutil@in@ \t@pgfplots@toka=\expandafter{\pgfplotstableread@filename}% ... 5 You can rescale the calculation: \documentclass{article} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{axis}[ xmin=0, xmax=1, samples=60, xlabel=$time$, xticklabel=\pgfmathparse{4+\tick/1000}\pgfmathresult, ylabel={$acceleration} ] \addplot [very thick, blue] {5*(4+x/1000)-(4+x/1000)^2}; \end{axis} \end{tikzpicture} ... 4 xlabel is printed as node. So you can set a specific text width. This allows line breaks. The modification can be done by the option xlabel style. An example is shown in the documentation on page 173: xlabel style={align=right,text width=3cm} \documentclass{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.7} \begin{document} \begin{tikzpicture} ... 4 You can say xtick=\empty to remove the tick marks and tick labels on the x axis: \documentclass{article} \usepackage{pgfplots} \pgfplotsset{compat=newest} \begin{document} \begin{tikzpicture} \begin{axis} [ xtick=\empty, xlabel={x}$, ylabel=${f_{h}\left(x\right)}\$, width=190 pt ] ...

3

This doesn't seem to be clearly specified in the manual, but you can get the desired result by specifying xmin=X0 and enlarge x limits=true. Without the latter, X0 will lie on the y axis, i.e. there will no space to the left of X0: \documentclass[a4paper, landscape]{article} \usepackage{pgfplots} \usepackage[utf8]{inputenc} ...

2

You can define a customized math "function" which relies on the fact that it is evaluated while the input table is read. In other words, it is only valid within your context. It uses the FPU of pgf which is used by pgfplots, and, in particular, its method \pgfmathfloatparsenumber. A float in pgf has "flags" which is an integer with the meaning 0 == '0' ...

2

An example, from pgfplots gallery: A non-elegant solution: \documentclass{standalone} \usepackage{tikz,pgfplots} \begin{document} \begin{tikzpicture} \begin{axis}[view={0}{90}] % 'legend entries' causes compilation error \addplot3[contour gnuplot={draw color=red,labels=false}] {x*y}; \addplot3[contour gnuplot={draw color=blue,labels=false}] {x^2 + ...

2

In principle pgfplots provides what you need. Especially the x coord trafo section of the manual helps as Qrrbrbirlbel has mentioned. Here is a very simple example: \documentclass[tikz,12pt,preview]{standalone} \usepackage{filecontents} \begin{filecontents*}{transform.dat} 1 1 2 4 3 9 4 16 \end{filecontents*} \usepackage{tikz,pgfplots} ...

2

Unless you use a different col sep, you will need to use empty groups. From the pgfplotstable manual, section 2.1 “Text Table Input Format”, p. 5f: Furthermore, if you need empty cells in case col sep≠space, you have to provide {} to delimit such a cell since col sep=space uses at least one white space (consuming all following ones). This is the ...

2

The formulation of the question looks a bit confusing. First it talks about the graph from Wikipedia link, which is an ordinary bar chart that represents a histogram: for every integer x (the number of steps to reach 1 from some number from 1..100000000) there is an integer y (the amount of numbers from that interval, that have the same number of steps ...

1

Well, depending on what they option actually does, we can simply deactivate it. The overwrite option key takes its argument in the form of <key> with <value> (the spaces are needed), sets the key to that value and than disables the key altogether by assigning an empty /.code. Code \documentclass{article} \usepackage{pgfplots} ...

1

Use \pgfplotsset{xmin=...} within desired scope: \documentclass[landscape]{article} \usepackage{pgfplots} \pgfplotsset{compat=1.8} \begin{document} { % begin pgfplotsset scope \pgfplotsset{xmin=0, xmax=3, ymin=1, ymax=5} \begin{tikzpicture} \begin{axis}[width=10cm] \addplot {x^2}; \end{axis} \end{tikzpicture} } % end pgfplotsset scope ...

1

The pattern list itself is not directly related to pgfplots, but to tikz and pgf. The pattern list is available at section 26 "Pattern Library", of "TikZ and pgf Manual". Or at page 217 of:http://paws.wcu.edu/tsfoguel/tikzpgfmanual.pdf The current list of patterns listed at manual version 1.18: horizontal lines vertical lines north east lines north west ...

1

The rotate=90 key seems to work. \documentclass{standalone} \usepackage{pgfplots} \usepgfplotslibrary{polar} \begin{document} \begin{tikzpicture}[scale=0.65] \begin{polaraxis}[rotate=90] \addplot coordinates {(0,1) (45,1)}; \addplot coordinates {(180,0.5) (172,1) (160,1)}; \legend{test} \end{polaraxis} \end{tikzpicture} \end{document} For rotation of ...

Only top voted, non community-wiki answers of a minimum length are eligible