Fix deprecation warnings and other updates for modern Julia

Also fix rotation for sphinx position