TabViewPlot & TabViewListPlot
TabViewPlot & TabViewListPlot
Plotting exponential functions has become a popular exercise with the spread of the coronavirus. It often useful to examine functions and data with both linear and logarithmic axes. This notebook defines a simple utility function which lets you quickly switch between all possibilities:
In[]:=
TabViewPlot[exprs___]:=TabView[{"Linear"Plot[exprs],"LogLinear"LogLinearPlot[exprs],"Log"LogPlot[exprs],"LogLog"LogLogPlot[exprs]}]
Click on the tabs to view the plots with linear and/or logarithmic axes:
In[]:=
TabViewPlot[Exp[x],{x,0,10}]
Out[]=
Linear
LogLinear
Log
LogLog
This is a variant of the TabViewPlot function, but for the ListPlot family of functions:
In[]:=
TabViewListPlot[exprs___]:=TabView[{"Linear"ListPlot[exprs],"LogLinear"ListLogLinearPlot[exprs],"Log"ListLogPlot[exprs],"LogLog"ListLogLogPlot[exprs]}]
And an example:
In[]:=
TabViewListPlot[E^Range[10]]
Out[]=
Linear
LogLinear
Log
LogLog