davidfokkema / artist

Artist makes beautiful plots
http://davidfokkema.github.io/artist/
GNU General Public License v3.0
12 stars 2 forks source link

Y-label in Polar plots is all over the place #31

Closed 153957 closed 9 years ago

153957 commented 9 years ago

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.

153957 commented 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 )

153957 commented 9 years ago

Not artist, but using default PGFPlots locations:

2015: polar_bug_texlive2015

2013/2014: polar_bug_texlive2014

153957 commented 9 years ago

http://tex.stackexchange.com/questions/257437/

153957 commented 9 years ago

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).

davidfokkema commented 9 years ago

Glad that it will be fixed! Will using absolute coordinates work in all versions, including the new one?

153957 commented 9 years ago

In TeXLive it now looks fine: screen shot 2015-08-05 at 15 42 58

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..

davidfokkema commented 9 years ago

Then, in TL 2014 it is basically not fine? Or did I misunderstand? I'm OK with dropping support for TL 2013.

153957 commented 9 years ago

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..

davidfokkema commented 9 years ago

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?

153957 commented 9 years ago

Yes, the label can rotated, no problem, but then it also rotates in the 2015 version, which shouldn't happen.

davidfokkema commented 9 years ago

Sigh.

153957 commented 9 years ago

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..

davidfokkema commented 9 years ago

Yes, that sounds fine. Then it'll work consistently for TL 2013/14/15, right?

153957 commented 9 years ago

I hope so.

153957 commented 9 years ago

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)