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
 All Forums
 Origin Forum for Programming
 LabTalk Forum
 Reproduce the Image Plot button with script

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
PivaF Posted - 12/12/2024 : 2:04:48 PM
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
2   L A T E S T    R E P L I E S    (Newest First)
PivaF Posted - 12/12/2024 : 3:32:03 PM
Thank you so much for your help!

Best regards (and best wishes since it's almost Christmas)
Francesco
ChaoC Posted - 12/12/2024 : 3:24:49 PM
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

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000