Closed 153957 closed 9 years ago
TeXLive 2013+2014 place the x and y labels in a different place than 2015.
Perhaps we can find a way to fix it for all versions. Or usr different shifts/rotations depending on PGFPlots version (see http://tex.stackexchange.com/a/13309/41702 )
Not artist, but using default PGFPlots locations:
2015:
2013/2014:
Will be fixed in pgfplots 1.13. http://tex.stackexchange.com/a/257650/41702
The answer there also provides a nicer workaround for older versions, i.e. using absolute coordinates (well relative to the plot center).
Glad that it will be fixed! Will using absolute coordinates work in all versions, including the new one?
In TeXLive it now looks fine:
Label positions in TeXLive 2014 are also fine, except that the Y label is rotated by 90°.
It no longer compiles on TeXLive 2013: ! Package PGF Math Error: Could not parse input '1.6728616e0*1.3' as a floating
..
Then, in TL 2014 it is basically not fine? Or did I misunderstand? I'm OK with dropping support for TL 2013.
TeXLive 2014 is not fine, at least the labels are in the correct general area in both 2014/2015. But the ylabel is rotated in 2014 (like in the TL 2013/2014 plot in the comment above; https://github.com/davidfokkema/artist/issues/31#issuecomment-125539223) Adding 'rotate=0' did not help, I could not find a way to set an absolute rotation..
And rotate=-90
or something like that did nothing? I believe it was used in the SO answer above, does that example code not work in TL 2014?
Yes, the label can rotated, no problem, but then it also rotates in the 2015 version, which shouldn't happen.
Sigh.
We can just keep this issue open for another year, then it will be fixed automatically... :stuck_out_tongue_winking_eye:
Perhaps we need to go back to the 'hack': just place a text node for the ylabel instead of using the actual y label..
Yes, that sounds fine. Then it'll work consistently for TL 2013/14/15, right?
I hope so.
Fixed in 0d8090465e4962f43a6240b18441dd9f2f0839f0 Might not work in the new PGFPlots 1.13 because the xlabel has a different rotation by default.. Which is the problem we have with the ylabel, there is not absolute rotation (as far as I know)
The positioning of the ylabel is not consistent for different versions of TeXLive. In TeXLive 2015 the ylabel style needs to be
xshift=.5*\defaultwidth, yshift=-.88*\defaultheight
to be in the right place.