Having trouble changing the y axis scaleI am working on a graph of Voltage vs Current. I have my y axis (current scale) set to log and i want to change the scale to the format 10e-2 (for example). Everytime I try to do this, the graph scale to 1e-1. I need the scale to be in the notaion 10e not 1e. Can anyone hlep with this?
Data TableRe: Having trouble changing the y axis scaleHi @hannahmcnamara,
You can have complete control over the format if you specify a custom format for the axis, like this:


Script to recreate graph:
View more...
Names default to here(1);
//Make some example data and specify a couple values to check results
dt = New Table( "Example Data",
Add Rows( 1000 ),
New Column( "Data",
Numeric,
"Continuous",
Format( "Best", 12 ),
Formula( Exp( Random Uniform( 1, 100 ) ) ),
Set Selected
)
);
dt:Data << Delete Formula;
dt:Data[1] = 1;
dt:Data[2] = 10;
//In graph builder choose the log scale and then specify a custom format
gb = dt << Graph Builder(
Size( 822, 339 ),
Show Control Panel( 0 ),
Variables( X( :Data ) ),
Elements( Points( X, Legend( 25 ) ) ),
SendToReport(
Dispatch(
{},
"Data",
ScaleBox,
{Scale( "Log" ), Format(
"Custom",
Formula( "10^" || Char( Log10( value ) ) ),
12
), Min( 1 ), Max( 1e+45 ), Inc( 1 ), Minor Ticks( 0 )}
)
)
);
Re: Having trouble changing the y axis scaleThank you! This worked for me. I was wondering how you get the double line symbol before "Char"?