text: {
   "cells": [
    {
     "cell_type": "code",
     "execution_count": null,
     "metadata": {},
     "outputs": [],
     "source": [
      "# \"\"\"Customizing axes style\n",
      "# (30 control parameters)\"\"\"\n",
      "# # check out parameters usage at:\n",
      "# #\n",
      "# from vedo import *\n",
      "# embedWindow('2d')\n",
      "\n",
      "# box = Box(pos=(2.4,0,0), length=12, width=10, height=8).alpha(0)\n",
      "\n",
      "# vp = Plotter(bg='white',\n",
      "#              axes={\n",
      "#                 'xtitle':'Some long variable description [a.u.]',\n",
      "#                 'ytitle':'This is my \\ncustomized y-axis',\n",
      "#                 'ztitle':'z values go here!',\n",
      "#                 'yPositionsAndLabels': [(-3.2,'Mark'), (-1.2,'Antony'), (3,'John')],\n",
      "#                 'numberOfDivisions':5, # approx number of divisions on longest axis\n",
      "#                 'axesLineWidth': 2,\n",
      "#                 'gridLineWidth': 1,\n",
      "#                 'reorientShortTitle':True,\n",
      "#                 'xKeepAspectRatio':True,\n",
      "#                 'xOriginMarkerSize':0.02,\n",
      "#                 'yOriginMarkerSize':None,\n",
      "#                 'titleDepth':0, # extrusion fractional depth of title text\n",
      "#                 'xyGrid':True,  # show a gridded wall on plane xy\n",
      "#                 'yzGrid':True,\n",
      "#                 'zxGrid':False,\n",
      "#                 'zxGrid2':True, # show zx plane on opposite side of the bounding box\n",
      "#                 'xyPlaneColor':'green',\n",
      "#                 'xyGridColor':'darkgreen', # line color\n",
      "#                 'xyAlpha':0.2,   # plane opacity\n",
      "#                 'showTicks':True, # show major ticks\n",
      "#                 'xTitlePosition': 0.5, # title fractional positions along axis\n",
      "#                 'xTitleOffset':0.02,   # title fractional offset distance from axis line\n",
      "#                 'xTitleJustify':\"top-center\",\n",
      "#                 'xTitleRotation':20,\n",
      "#                 'xLineColor':'black',\n",
      "#                 'zLineColor':'blue',\n",
      "#                 'zTitleColor':'blue',\n",
      "#                 'zTitleBackfaceColor':'red', # color of axis title on the backface\n",
      "#                 'zTitleSize':0.05,\n",
      "#                 'xHighlightZero':True, # draw a line highlighting zero position if in range\n",
      "#                 'xHighlightZeroColor':'tomato',\n",
      "#                 'xTickRadius':0.005,\n",
      "#                 'xTickThickness':0.0025,\n",
      "#                 'xTickColor':'black',\n",
      "#                 'xMinorTicks':3, # number of minor ticks btw two major ticks\n",
      "#                 'tipSize':0.01,  # size of the arrow tip cone\n",
      "#                 'xLabelSize':0.02, # size of the numeric labels along axis\n",
      "#                 'xLabelOffset': -0.05, # offset of numeric labels\n",
      "#              })\n",
      "\n",
      "# vp.show(box, viewup='z')\n",
      "\n",
      "from vedo import *\n",
      "embedWindow('2d')\n",
      "\n",
      "#an invisible box:\n",
      "box = Box(pos=(2.4,0,0), length=12, width=10, height=8).alpha(0)\n",
      "\n",
      "# make a dictionary of axes options\n",
      "axes_opts = dict(\n",
      "    xtitle='Some long variable description [a.u.]',\n",
      "    ytitle='This is my \\ncustomized y-axis',\n",
      "    ztitle='z values go here!',\n",
      "    yPositionsAndLabels= [(-3.2,'Mark'), (-1.2,'Antony'), (3,'John')],\n",
      "    numberOfDivisions=5, # approx number of divisions on longest axis\n",
      "    axesLineWidth= 2,\n",
      "    gridLineWidth= 1,\n",
      "    reorientShortTitle=True,\n",
      "    xOriginMarkerSize=0.02,\n",
      "    yOriginMarkerSize=None,\n",
      "    titleDepth=0,        # extrusion fractional depth of title text\n",
      "    xyGrid=True,         # show a gridded wall on plane xy\n",
      "    yzGrid=True,\n",
      "    zxGrid=False,\n",
      "    zxGrid2=True,        # show zx plane on opposite side of the bounding box\n",
      "    xyPlaneColor='green',\n",
      "    xyGridColor='darkgreen', # line color\n",
      "    xyAlpha=0.2,         # plane opacity\n",
      "    showTicks=True,      # show major ticks\n",
      "    xTitlePosition= 0.5, # title fractional positions along axis\n",
      "    xTitleOffset=0.02,   # title fractional offset distance from axis line\n",
      "    xTitleJustify=\"top-center\",\n",
      "    xTitleRotation=20,\n",
      "    xLineColor='black',\n",
      "    zLineColor='blue',\n",
      "    zTitleColor='blue',\n",
      "    zTitleBackfaceColor='red', # color of axis title on the backface\n",
      "    zTitleSize=0.05,\n",
      "    xHighlightZero=True, # draw a line highlighting zero position if in range\n",
      "    xHighlightZeroColor='tomato',\n",
      "    xTickLength=0.015,\n",
      "    xTickThickness=0.0025,\n",
      "    xTickColor='black',\n",
      "    xMinorTicks=3,       # number of minor ticks btw two major ticks\n",
      "    tipSize=0.01,        # size of the arrow tip cone\n",
      "    xLabelSize=0.02,     # size of the numeric labels along axis\n",
      "    xLabelOffset= -0.05, # offset of numeric labels\n",
      ")\n",
      "\n",
      "show(box, axes=axes_opts, viewup='z')"
     ]
    },
    {
     "cell_type": "code",
     "execution_count": null,
     "metadata": {},
     "outputs": [],
     "source": []
    }
   ],
   "metadata": {
    "kernelspec": {
     "display_name": "Python 3",
     "language": "python",
     "name": "python3"
    },
    "language_info": {
     "codemirror_mode": {
      "name": "ipython",
      "version": 3
     },
     "file_extension": ".py",
     "mimetype": "text/x-python",
     "name": "python",
     "nbconvert_exporter": "python",
     "pygments_lexer": "ipython3",
     "version": "3.7.3"
    }
   },
   "nbformat": 4,
   "nbformat_minor": 2
  }
  