10

I can't make the axis thick and with an arrow. This is my code:enter image description here

\begin{tikzpicture}[xscale=0.8,yscale=0.8] \begin{axis}[axis line style = thick, domain=0:1, samples=50, axis lines*=middle, xtick={0,1},ytick=\empty,yticklabels={}] \addplot[color = black] {2/pi*asin(sqrt(x))}; \end{axis} \end{tikzpicture} 
2
  • 3
    Hi Peter, welcome to the site! It's not obvious in your screenshot, but the axis lines actually are thicker. Try a more extreme example, like setting axis line style=ultra thick or axis line style={line width=2pt}. Commented Apr 8, 2016 at 12:59
  • 2
    And for arrows. just ad in style -> : axis line style={line width=1pt,->}. You can select arrows style like in TikZ. Commented Apr 8, 2016 at 13:16

1 Answer 1

11

The arrow head disappears because your are using the option axis lines*=middle. Instead of this, you could do axis lines=middle,enlargelimits=true as in my example below.

The lines are already thick in your example. If the comments below your code do not help, you will have to show us a compilable MWE of your situation.

% arara: pdflatex \documentclass{article} \usepackage{pgfplots} \pgfplotsset{compat=1.13} \begin{document} \begin{tikzpicture}[scale=0.8] \begin{axis}[% ,axis line style = thick ,domain=0:1 ,samples=50 ,axis lines=middle ,enlargelimits=true ,xtick={0,1},ytick=\empty ,yticklabels={} ] \addplot[color = black] {2/pi*asin(sqrt(x))}; \end{axis} \end{tikzpicture} \end{document} 

enter image description here

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.