The tick increment is 2. This is happening either because inc is 2 or your frame size needs to be bigger to show all ticks.
Hi gzmorgan0,
no problems, i worked it out, thanks very much
Hi @gzmorgan0,
Its Ok, I have worked it out, I think I'm learning!!
Dispatch(
{},
"Graph Builder",
FrameBox,
{Marker Size( 5 ), Add Graphics Script(
2,
Description( "Script" ),
Pen Color( "black" );
Pen Size( 2 );
Line Style( "Dotted" );
Y Function( x, x );
), Add Graphics Script(
4,
Description( "Script" ),
Pen Color( "red" );
Pen Size( 2 );
Line Style( "Dotted" );
X Function( y - 1, y );
), Add Graphics Script(
5,
Description( "Script" ),
Pen Color( "red" );
Pen Size( 2 );
Line Style( "Dotted" );
X Function( y + 1, y );
), Grid Line Order( 1 ), Reference Line Order( 3 )}
)
)
);
thanks mate, I really do try to do a lot by myself, sometimes i jump the gun in asking for help, need a little more patience and belief!!!
Thanks again
Hi @gzmorgan0 ,
I need your assistance again if possible, i need another two reference lines on my chart, you produced the syntax for the equality reference line where x=y, if i wanted a line two represent a 100% increase for the values of x when the values of y = the original references line, so x= 5, 10, 20, 40, 80, 160, 320, 640, 1280, 2560 where y= 10, 20, 40, 80,160, 320, 640, 1280, 2560, 5120. Is this possible?
The expression for the identity line:
Y Function( x, x );
in the graphics script becomes this expression for the 100% increase:
Y Function( 2*x, x );
Hi Dan,
@Mickyboy figured out a solution, but he posted it a couple enties above. The graph is rather unusual. The original task was to create a custom scale where the ticks/units were 5 * 2^x. I reposted the small table with script attached.
Due to the unusual power scaling, of this graph, a solution to this the 100% increase/decrease is
Y Function( x - 1, x) and Y Function(x + 1, x)
or as Mickey figured out X Function( y - 1, y) and X Function( y + 1, y)
Log and Power scaled axes can be challenging when it comes to reference functions.