tikz add tag
6 years ago CarLaTeX

As you can see, the VaR tick is longer than the one under the y axis.

How can I have them equals without manually drawing the tick under the y axis?

P.S. = The skewed Normal distribution is from https://tex.stackexchange.com/a/461839/101651.

Top Answer
6 years ago samcarter

Not sure if this counts as “not drawing it manually”, but at the moment, the line below the origin comes from enlarge y limits={value=.02,lower}. You could instead set ymin to the same value as your tick at VaR.

The reason enlarge y limits={value=.02,lower} did not work as expected is that this seems to be a relative value. From the pgfplots docu:

\pgfplotsset{enlarge x limits={value=0.2,upper}} will enlarge (only) the upper axis limit by 20% of the axis range.

document5.png

6 years
user 3.14159 replying to CarLaTeX — Sunday, 29th Dec 2019 23:33

Yes. It only happens if you use larger values, which however can happen very easily. (I had some bitter experience with that using some recursive function. The recursion required tikzmath, but tikzmath is not compatible with fpu, at least not with fpu the way I tryied to use at that time.)

2 hours
CarLaTeX replying to user 3.14159 — Sunday, 29th Dec 2019 21:29

I used it because I copied it 😃. I use standalone and then include the output pdf in the main document, till now I didn’t find any problem.

6 hours
user 3.14159 — Sunday, 29th Dec 2019 15:14

@CarLaTeX I’d like to discourage you from using tikzmath for pgfplots. AFAIK this does not really use the fpu machinery, so you may easily get dimension too large errors,

Enter question or answer id or url (and optionally further answer ids/urls from the same question) from

Separate each id/url with a space. No need to list your own answers; they will be imported automatically.