# fancyLaTexAxis: add a fancy LaTeX axis for use with tikz In tjconstant/photonMonkey: Misc Tools for Photonics

## Usage

 1 fancyLaTexAxis(side = 1) 

## Arguments

 side

## Examples

  1 2 3 4 5 6 7 8 9 10 11 12 13 14 ##---- Should be DIRECTLY executable !! ---- ##-- ==> Define data, use random, ##-- or do help(data=index) for the standard data sets. ## The function is currently defined as function (side = 1) { text(0, 1, "") axLabels <- paste(axTicks(side)/10^log10(max(abs(axTicks(side)))), "$\times 10^{", log10(max(abs(axTicks(side)))), "}$", sep = "") axLabels[axTicks(side) == 0] <- "0" axis(side, at = axTicks(side), label = axLabels) } 

tjconstant/photonMonkey documentation built on Feb. 19, 2018, 7:05 a.m.