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
 Origin Forum
 Overlay image on graph

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
peter.cook Posted - 09/19/2005 : 11:42:13 AM
Origin Version (Select Help-->About Origin): 7.5 SR5
Operating System: Win2000

I'd like to overlay an image on a graph via code. The particular example is obtain a molecular structure and then displaying it on top of a dose response curve. Ideall it would be 'merged' rather than overlaid and I guess I would need to be able to control the size / location. Can this be done?

Thanks,

Cheers,

Pete

4   L A T E S T    R E P L I E S    (Newest First)
peter.cook Posted - 09/19/2005 : 5:45:11 PM
Hi Mike,

Thanks.

Cheers,

Pete

Mike Buess Posted - 09/19/2005 : 4:17:21 PM
Hi Pete,

Use this...

page -s objectName;

Mike Buess
Origin WebRing Member
peter.cook Posted - 09/19/2005 : 4:04:48 PM
Hi Easwar,

Thanks!

Now all we have to do is read the compound id, retrieve the smiles string from our database, draw the 2D structure and save as an image!

One question - I had to manually select the image before select -order data 1 worked.

Clearly I don't want to do this, so how can I select the object via code? Thanks.

Cheers,

Pete

easwar Posted - 09/19/2005 : 1:45:25 PM
Hi Pete,

You can use the LabTalk image object with code such as:



// Point to image file
image.filename$="c:\\temp\\My Image.jpg"; ;
// Import image into Graph1 and name it MyObject
image.import.object(Graph1,MyObject,0);

// Set properties of MyObject ;
// Default size units is pixels
myobject.height=1000;
myobject.width=2000;
// Default position is in units of layer axes
myobject.x=4;
myobject.y=5;

// Push image to backgroud so data shows on top
select -order data 1;




Easwar
OriginLab


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