@Override public Object execute(ExecutionEvent event) throws ExecutionException { String viewID = event.getParameter("uk.ac.diamond.scisoft.analysis.command.sourceView"); if (viewID != null) { final AbstractPlotView apv = (AbstractPlotView) PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().findView(viewID); DataSetPlotter plotter = apv.getPlotter(); if (plotter != null) { plotter.setYAxisScaling(ScaleType.LN); } return Boolean.TRUE; } return Boolean.FALSE; }
public void setScaling(ScaleType newScaling) { useLog = (newScaling != ScaleType.LINEAR); histogramPlotter.setYAxisScaling(newScaling); }