Re: [Scilab-users] Label and tick interval on an axis

2023-11-13 Thread Jean-Yves Baudais
> Found a solution online after a lot of searching! Still do not know where the > option for "step by" is unless it is an un-documented option? I guess you've red the help page of "axes properties" to find the solution, where is it written: "Changing by hand the Locations or/and Labels of an

Re: [Scilab-users] Label and tick interval on an axis

2023-11-13 Thread Lester Anderson
As a quick update: I have tried the following: f.auto_ticks(1)='off' f.x_ticks.locations=[1;2;3;4;5;6;7;8;9;10] f.x_ticks.labels=["1";"2";"3";"4";"5";"6";"7";"8";"9";"10"] f.sub_ticks=[0,1] But get an error "labels should be a string vector." referenced at x_ticks.locations. Labels are a

[Scilab-users] Label and tick interval on an axis

2023-11-13 Thread Lester Anderson
Hello A quick query. I have an axis with a range from 1-10 but the plot has ticks and labels at 0.5 intervals (1.0, 1.5, 2.0, 2.5 etc). How can I set the interval and ticks at 1, 2 3 4, etc ? In the figure properties there is an option to set subticks =0 and step by=1 which does the job.

Re: [Scilab-users] Label and tick interval on an axis

2023-11-13 Thread Lester Anderson
Found a solution online after a lot of searching! Still do not know where the option for "step by" is unless it is an un-documented option? //x-axis only f.auto_ticks(1)='off' // set range 1-10 and label only whole integers f.x_ticks = tlist(["ticks", "locations", "labels"], 1:1:10,