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
 histogram

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
ovince Posted - 01/29/2009 : 08:50:39 AM
Hi,

I would like to plot histograms with this bellow
%A="histlessbox";

nLayers=5; //Number of Layers
%P=MyPlot;
win -t plot Column %P; //Create a new graph page
nn=nLayers-1;
repeat nn
{
page -L layer;
plot -L; //update the active layer
} //Generate multiple layers on the page

width=30;
height=30; //Layer width and height
cc=1;rr=0;
nCol=3;nRow=2;
win -a %P; //make active
j=2;
for (ii = 1; ii <= nLayers; ii++)
{
cc=mod(ii,nCol);
cc=cc==0?3:cc;
rr=cc==1?(rr+1):rr;
layer -s ii; //select the ii layer in the active window
layer width height (4+(cc-1)*(width+2)) (10+(rr-1)*(height+10)); //Arrange layer.
%A!wks.col$(j-1).type=4; //set to x;
%B = %A!wks.col$(j).name$;
layer -i %A_%B;
layer -a; //rescale axes to show all data
j=j+2;
};


In a result I get:



How to get histograms in all layers?

thanks
oliver
1   L A T E S T    R E P L I E S    (Newest First)
cpyang Posted - 01/31/2009 : 10:04:51 PM
If you mean that they should be plotted as column graph, then just replace

layer -i %A_%B;

with

layer -i203 %A_%B;

CP

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