# Tag Info

7

This is actually described in the manual for pgf/TikZ. See section 92.1 Changing display styles (for v3.0.1a, dated August 29, 2015). You're almost there in fact, just change the number formatting option for the yticklabels to /pgf/number format/.cd,sci,sci e. If you want a capital e, use sci E instead. \documentclass[border=4mm]{standalone} ...

7

Spaces. If you look carefully at the error message you see it refers to the symbolic coordinate called ' sphinx3', i.e. with a space first. In the list of symbolic y coords leading spaces are stripped, but this does not happen in the coordinate list for \addplot. So all you have to do is to change from (132, sphinx3) to (132,sphinx3). You might also want to ...

6

One possibility is xtick={-1,0,...,4}, xticklabel={ \ifdim\tick pt=-1pt \else \ifdim\tick pt=4pt \else \axisdefaultticklabel \fi\fi}, ytick={-4,-3,...,4}, yticklabel={ \ifdim\tick pt=-4pt \else \ifdim\tick pt=4pt \else \axisdefaultticklabel \fi\fi}, Code: ...

3

You mean something like the following? (Have a look at the comments in the code to find out how it works.) \documentclass[border=2mm]{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.3} \begin{document} \begin{tikzpicture} \begin{axis}[ xlabel={$x$}, ylabel={$y$}, xtick={-4,-2,...,4}, % place some extra x ticks ...

2

A workaround could be to use forget plot and \addlegendimage. \documentclass{standalone} \usepackage{tikz,pgfplots} \usetikzlibrary{decorations.markings} \pgfplotsset{compat=1.12} \tikzset{test decoration/.style={ postaction={ decorate, decoration={ markings, mark=between positions 0.5 and 1 step 10mm with {\node {test};} } } }} ...

2

Edit: For an axis of arbitrary width, you can compute the width and store that value as described in this answer. Combining that approach with a new command (which I call \bgimage), you can insert a background image with width equal to the axis width. In the example below I've duplicated the plot to the right, but made it smaller to show the image scales ...

2

The primary difficulty appears to be a weakness of the floating point unit in TeX -- it appears to be unable to handle the array syntax. Deactivating it by means of use fpu=false works. Note that you code contains no domain argument -- your x argument is sampled with the default domain -5:5. Adding both + some style changes (that I forgot to remove while ...

2

If you add point meta=explicit symbolic to the axis options, you can manually specify the labels texts for nodes near coords, using the syntax \addplot coordinates { (x,y) [label text] }; With legend columns=3, and the standard colors, because I didn't feel like defining five new colors: \documentclass[border=5mm]{standalone} \usepackage{pgfplots} ...

1

Did you try to rerun Latex? For the first run I get the warnings LaTeX Warning: External picture 'pdfimages/Latex1' contains undefined references on input line 6. and LaTeX Warning: There were undefined references. After a second Latex run the warnings clear and I get:

1

Remove skip first n=1 from the \addplot table commands. If there is no header=false option for table, \addplot table uses the first row of your data file as column names. Code: \begin{filecontents*}{a.txt} Group Real Imag Cable {VSC P-mode} {VSC Vdc-mode} A -1.2739095e+02 -3.3612954e+02 4.9822998e-01 4.9309456e-01 ...

1

Your squareroot parenthesis terminate the command prematurely. You need to hide it via braces (u*cos v,u*sin v,{sqrt(25-u*u)} );

1

As of pgfplots 1.13, this works without any modifications, i.e. simply running pdflatex -shell-escape file.tex twice results in the desired output. Here is a reduced minimal without the extra image.tex (but otherwise identical), compiled with pgfplots 1.13 and pgf 3.0.1: \documentclass{article} \usepackage{pgfplots} \pgfplotsset{compat=1.10} ...

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