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
 LabTalk Forum
 Reproduce the Image Plot button with script
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

PivaF

Italy
2 Posts

Posted - 12/12/2024 :  2:04:48 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
OriginPro 2024 Operating System:Windows 11

Good morning,
I want to reproduce the "Image Plot" button (Image/Contour/Image Plot) with a script, but I cannot find anywhere a code that could do it.
I basically have a matrix and reproduce it in a image plot with a grayscale, could you help me?

Let me know if you need further information

Thank you so much for your help
Francesco

ChaoC

USA
179 Posts

Posted - 12/12/2024 :  3:24:49 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hello PivaF,

You can use:

run.section(Plot3D,ImagePlot)

If you Ctrl+Shift+Click and toolbar button, it will open the Labtalk script it runs.

Doc on run.section: https://www.originlab.com/doc/LabTalk/ref/Run-obj#:~:text=is%20not%20specified.-,run.section,-(fileName%2CsectionName

If it's not necessary to run the exact toolbar button code, then you could also use the X-function plotm: https://www.originlab.com/doc/X-Function/ref/plotm

e.g.
plotm plot:=220 ogl:=[<new template:=image>]<new>;

Best,
Chao
Go to Top of Page

PivaF

Italy
2 Posts

Posted - 12/12/2024 :  3:32:03 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thank you so much for your help!

Best regards (and best wishes since it's almost Christmas)
Francesco
Go to Top of Page
  Previous Topic 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