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 string vector?

Where is the "Step by" option available in figure edit?

On Fri, 10 Nov 2023 at 09:14, Lester Anderson 
<arctica1...@gmail.com<mailto:arctica1...@gmail.com>> wrote:
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. However, I cannot see the axis property for "step by".

How do you manually set the x_ticks and label locations; expects a matrix of 
doubles for locations and string vector for labels. I am sure it is a very 
simple solution!

Any suggestions would be helpful.

Lester

This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data protection, please contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/

_______________________________________________
users mailing list - users@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
https://lists.scilab.org/mailman/listinfo/users

Reply via email to