The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 Forum for Python
 Color scale lables
 New Topic  Reply to Topic
 Printer Friendly
Author  Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

iniwoni

20 Posts

Posted - 06/02/2025 :  06:55:37 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): Origin2025 10.2.0.188
Operating System: Win10

Hi!
How can I make labels of color scale bar? Please see uploaded screenshot. I'd like to add labels, "testA/testB".


minimax

360 Posts

Posted - 07/14/2025 :  05:14:15 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi iniwoni,

First of all, as to your term "label" for color scale bar, I suppose you mean "title" in fact? see screenshot below.



On the Color Scale Control dialog, the "Labels" is used for the tick labels.

If yes, you may try py script below.

import originpro as op
gp = op.find_graph()
gl = gp[0]
sp = gl.label('SPECTRUM1')  #name of the color scale bar
sp.set_str('title', 'testA/testB')


If you do mean tick labels, it is not supported yet and we will take a look. (internal record ID: ORG-31409)
Go to Top of Page

iniwoni

20 Posts

Posted - 07/31/2025 :  2:31:23 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I meant tick labels.
Anyway, thank you, minimax!
Go to Top of Page
   Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000