Tag Info

Hot answers tagged

4

To get the minor ticks to work and to remove the first ytick label, use ytick={-20,-10,0} yticklabels={,-10,0} Which generates:


4

A little tedious but gets pretty close with lots of tweaks (shadow is also possible but please don't do it. It's just an Excel trick that, in my opinion doesn't help for anything visually): \documentclass{article} \usepackage{pgfplotstable} \usepackage{sansmath} \sansmath \pgfplotsset{compat=1.12} \pgfplotstableread[col sep=comma]{ a,b,c,d,e 128, ...


3

This is also an answer to the comment for another answer of another question. To get help lines overprinted, they have to be printed first below the following objects. The \draw command should be placed before the other elements. The next problem are the misplaced lines. The following command adds the grid lines at least in the area (-10, -10) to (10, 10): ...


3

You have two problems: - standalone packages, which without defined border, for example border=5mm is (to) close to border of picture; - y range of your picture. If you set `point meta max=0.3, than the maximal value of your plot will appear. \documentclass[border=5mm]{standalone} \usepackage{pgfplots} \pgfplotsset{compat=newest} \begin{document} ...


3

I changed your base code a bit because it was easier for setting the steps in the sheet. If you have any doubts, just ask me in the comments. I wanted to set the top nodes using a \foreach and I was almost there, but unlike the numbering above, the top-top nodes have no logic in their succession, if you know what I mean, so I couldn't think of a rules to ...


2

To show the mean value on your box plot you can use the average key with boxplot. I've only changed the middle bw plot, but you can see how to do the others. I've also corrected the y-axis label. Read the manual, p.430-450 for how to add labels to the averages, and change the colour. \documentclass{standalone} \usepackage{pgfplots} ...


2

Here's a pstricks solution. The graph box in the fourth quadrant is included as a zoomed.epsfile via \epsfbox (\includegraphics doesn't work, for some reason): \documentclass[11pt, pdf, x11names]{standalone} \usepackage{pstricks-add} \usepackage{graphicx} \usepackage{changes, stackengine} \setstackEOL{\\} \input{binhex} \begin{document} ...


2

I think, unit vector ratio is what you are looking for: \documentclass{minimal} \usepackage{pgfplots} \pgfplotsset{compat=1.12} \begin{document} \begin{tikzpicture} \begin{axis}[ xmin=-2, xmax=2, ymin=-1, ymax=1, axis lines = middle, unit vector ratio=1 2, ] \addplot[ultra thick, red, ->] coordinates {(0,0) (1,0)}; \addplot[ultra ...


2

Is this what you are looking for? Sorry I'm in a rush so no time to comment much, but here is the code. I guess you can fiddle to fit your needs. Note that your points do not seem to correspond to the original plot (for example, where is the point $(128, 82.638)$ in the red original curve ? \documentclass{standalone} \usepackage[frenchb]{babel} ...


2

You need pgfplots package. Note the use of xtick=\empty, extra x ticks, extra x tick labels, extra y ticks and extra y tick labels \documentclass{standalone} \usepackage{tikz,pgfplots} %\pgfplotsset{compat=1.12} \begin{document} \begin{tikzpicture} \begin{loglogaxis}[xtick=\empty,extra x ticks={256, 512, 1024, 2048,4096,8192,16384},extra x tick ...


1

I will put @ignasi's answer here since he added it as a comment. Use \pgfplotsset{every axis title/.append style={at={(0.1,0.8)}}} where you can adjust the position of the label by changing the fractions. \documentclass{article} \usepackage{xcolor} \usepackage{graphicx} \usepackage{pgfplots} \usepackage{amsmath} \usetikzlibrary{pgfplots.groupplots} ...


1

axis equal specifically keeps the unit length ratios equal as well as the dimensions of the plot. So it will override the xmin, xmax, etc. axis equal image only keeps the unit length ratios equal so you can use it to accomplish your goal. You can also use unit vector ratio=1 1 to accomplish the same task. From Heiko's answer, you can see that you may ...


1

You can't have ymin>ymax. Set ymin=-9 and ymax=0. As for the labeling, you can put the plot inside a figure environment. \documentclass{article} \usepackage[margin=0.5in]{geometry} \usepackage[utf8]{inputenc} \usepackage{textcomp} \usepackage{pgfplots} \pgfplotsset{width=10cm,compat=1.9} %\usepgfplotslibrary{external} %\tikzexternalize ...



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