The Elsmar Cove Forum and Site Map The Elsmar Cove Wiki More Free Files The Elsmar Cove Forums Discussion Thread Index Post Attachments Listing Failure Modes Services and Solutions to Problems Elsmar cove Forums Main Page Elsmar Cove Home Page

Go Back   The Elsmar Cove Forum > Common Quality Assurance Processes and Tools > Quality Tools, Improvement and Analysis > Quality Assurance and Compliance Software Tools / Solutions > Using Minitab Software


The Elsmar Cove Forum SideBar!
Monitor the Forum
Monitor New Forum Posts
New Threads Feeds
RSS FeedRSS Feed
Sponsor Link










$ Contributor Forum Access
Courtesy Quick Links

Links that Elsmar Cove visitors will find useful in your quest for knowledge:


Howard's International Quality Services

Atul's Symphony Technologies

Dave Scott's Scott Quality Solutions

Praxiom Research Group


NIST's Engineering Statistics Handbook

IRCA - International Register of Certified Auditors

SAE - Society of Automotive Engineers

Quality Digest Portal

IEST - Institute of Environmental Sciences and Technology

ASQ - American Society for Quality


All the Important Standards and Related Web Sites in the World
Reply
 
Thread Tools Search this Thread Rate Thread Content Display Modes
  #1  
Old 28th August 2008, 08:41 AM
MiniNik MiniNik is offline
Inactive Registered Visitor

Registration Date: Aug 2008
Location: Germany
 
Posts: 6
Thanks Given to Others: 2
Thanked 1 Time in 1 Post
Karma Power: 6
Karma: 12
MiniNik has less than 100 Karma points so far.
Please Help! Minitab macro vs. Layout tool

Hello everybody,
I'm new in here and glad, that i've found this forum.
you will hardly believe it, but i'm here because i have a problem and i hope, you can give me some good advices.
My plan is to write a macro for minitab. This worked out quite fine, but now i have quite a lot of graphs in my analysis. I want to reduce the number of open windows and therefore to fit four different graphs (eg Histogram, NormTest) in one window. I know there is the layout tool for the manual way, but what can i do to get this or an similair function in my macro to implement the four graphs into one window automatically?
I hope, you can give me some valuable tips.
kind regards,

MiniNik
Reply With Quote

Sponsored Links
  #2  
Old 28th August 2008, 09:29 AM
Allattar Allattar is offline
Involved in Discussions

Registration Date: Jan 2008
Location: UK
 
Posts: 97
Thanks Given to Others: 4
Thanked 45 Times in 35 Posts
Karma Power: 19
Karma: 517
Allattar is appreciated, and has over 500 Karma points.Allattar is appreciated, and has over 500 Karma points.Allattar is appreciated, and has over 500 Karma points.Allattar is appreciated, and has over 500 Karma points.Allattar is appreciated, and has over 500 Karma points.Allattar is appreciated, and has over 500 Karma points.
Default Re: Minitab macro vs. Layout tool

Within the macro you need to open a layout, and at the end use endlayout to close it. The resulting graphs are then put on the layout page.

Heres an Example

LAYOUT;
TITLE "name the layout".


Histogram C1;
YFrequency;
Bar;
FIGURE 0 0.5 0 0.5.

Boxplot C1;
IQRBox;
Outlier;
FIGURE 0 0.5 0.5 1.

TSPlot C1;
Symbol;
Connect;
FIGURE 0.5 1 0 0.5.

XbarChart C1 5;
FIGURE 0.5 1 0.5 1.

ENDLAYOUT

Highlighted in the above are the commands you really need to use. The figure subcommand can be added to a graph to position the graph on the page, the structure of the subcommand is
figure Xstart Xend Ystart Yend.

The X axis starts at 0 on the left, and ends with 1 on the right hand edge of the page.
The Y axis starts at 0 on the bottom of the page and ends at 1 at the top of the page.

Thats it , your lucky as this issue came up for me just last week.
Reply With Quote
Sponsored Links

  #3  
Old 28th August 2008, 10:53 AM
MiniNik MiniNik is offline
Inactive Registered Visitor

Registration Date: Aug 2008
Location: Germany
 
Posts: 6
Thanks Given to Others: 2
Thanked 1 Time in 1 Post
Karma Power: 6
Karma: 12
MiniNik has less than 100 Karma points so far.
Default Re: Minitab macro vs. Layout tool

Thanks a lot.
But i'm getting the next error message:

"Histogram C3;
YFrequency;
Bar;
FIGURE 0 0.5 0 0.5.

* ERROR * Extra text is not allowed.

* Remaining subcommands ignored. "

The following i had written in the command line editor:

"LAYOUT;
TITLE "Histogram".
Histogram C3;
YFrequency;
Bar;
FIGURE 0 0.5 0 0.5.
Boxplot C3;
IQRBox;
Outlier;
FIGURE 0 0.5 0.5 1.
TSPlot C3;
Symbol;
Connect;
FIGURE 0.5 1 0 0.5.
XbarChart C3 5;
FIGURE 0.5 1 0.5 1.
ENDLAYOUT"

Any idea what's wrong?
Reply With Quote
  #4  
Old 28th August 2008, 11:00 AM
Allattar Allattar is offline
Involved in Discussions

Registration Date: Jan 2008
Location: UK
 
Posts: 97
Thanks Given to Others: 4
Thanked 45 Times in 35 Posts
Karma Power: 19
Karma: 517
Allattar is appreciated, and has over 500 Karma points.Allattar is appreciated, and has over 500 Karma points.Allattar is appreciated, and has over 500 Karma points.Allattar is appreciated, and has over 500 Karma points.Allattar is appreciated, and has over 500 Karma points.Allattar is appreciated, and has over 500 Karma points.
Default Re: Minitab macro vs. Layout tool

Works here when I test it.
Which version of Minitab do you have, these commands run in release 15. I am trying to remember if those layout commands where in release 14 or not, but I never tried to use them in 14.

What are your regional settings?
Commands in the command line editor can go a bit odd if your regional settings are using different values as list or numeric seperators. I think they should work ok in a global macro though.

EDIT:
Got it, I read your public profile, your location is Germany, and hence your decimal seperator is ,

Change the commands to.

"LAYOUT;
TITLE "Histogram".
Histogram C3;
YFrequency;
Bar;
FIGURE 0 0,5 0 0,5.
Boxplot C3;
IQRBox;
Outlier;
FIGURE 0 0,5 0,5 1.
TSPlot C3;
Symbol;
Connect;
FIGURE 0,5 1 0 0,5.
XbarChart C3 5;
FIGURE 0,5 1 0,5 1.
ENDLAYOUT"
Reply With Quote
Thanks to Allattar for your informative Post and/or Attachment!
  #5  
Old 28th August 2008, 11:21 AM
MiniNik MiniNik is offline
Inactive Registered Visitor

Registration Date: Aug 2008
Location: Germany
 
Posts: 6
Thanks Given to Others: 2
Thanked 1 Time in 1 Post
Karma Power: 6
Karma: 12
MiniNik has less than 100 Karma points so far.
Default Re: Minitab macro vs. Layout tool

Minitab release 14.20 installed.
Ok, i've just read your edit... i although had to see that with point vs comma.


That was a very easy solution to the error message. Tank you veeeerrry verryyy much, it works, great, wonderful, beautiful, absolutely fantastic!!!*chapeau* i hope, i can help you the next time, but sadly i've just begun working with macros, so it could last a little time... :-P
Reply With Quote
  #6  
Old 28th August 2008, 12:14 PM
MiniNik MiniNik is offline
Inactive Registered Visitor

Registration Date: Aug 2008
Location: Germany
 
Posts: 6
Thanks Given to Others: 2
Thanked 1 Time in 1 Post
Karma Power: 6
Karma: 12
MiniNik has less than 100 Karma points so far.
Question Re: Minitab macro vs. Layout tool

Another question:

Error Message:

Capa 'C2' 1;
Mu 19;
Lspec 16,2;
Uspec 21,9;
Pooled;
AMR;
UnBiased;
Toler 6;
Within;
Overall;
CStat;
FIGURE 0 0,5 0 0,5.
* Completion of computation impossible.

Can me anybody tell what's wrong with this?

My input was:

"LAYOUT;
TITLE "Data analysis C2".
Capa 'C2' 1;
Mu 19;
Lspec 16,2;
Uspec 21,9;
Pooled;
AMR;
UnBiased;
Toler 6;
Within;
Overall;
CStat;
FIGURE 0 0,5 0 0,5.
Boxplot C3;
IQRBox;
Outlier;
FIGURE 0 0,5 0,5 1.
TSPlot C3;
Symbol;
Connect;
FIGURE 0,5 1 0 0,5.
XbarChart C3 5;
FIGURE 0,5 1 0,5 1.
ENDLAYOUT"
Reply With Quote
  #7  
Old 28th August 2008, 12:37 PM
Allattar Allattar is offline
Involved in Discussions

Registration Date: Jan 2008
Location: UK
 
Posts: 97
Thanks Given to Others: 4
Thanked 45 Times in 35 Posts
Karma Power: 19
Karma: 517
Allattar is appreciated, and has over 500 Karma points.Allattar is appreciated, and has over 500 Karma points.Allattar is appreciated, and has over 500 Karma points.Allattar is appreciated, and has over 500 Karma points.Allattar is appreciated, and has over 500 Karma points.Allattar is appreciated, and has over 500 Karma points.
Default Re: Minitab macro vs. Layout tool

Glad it works, wasnt sure that the layout command was in 14. (as opposed to layout on the menu)

It looks to me that the column C2 is enclosed with single quotes. Single quotes refer to column names, not numbers so it should be

CAPA c2 1;

But heres the other thing, the figure command doesnt work with the capability command. I think its an issue of non updating graphs, I even tried the DATA subcommand which works to reposition the data region on a graph.

eg: DATA xstart xend ystart yend is used to position the data part of the graph in the graph region, where figure places the grah region on the page.

Capa doesnt like that either.

It may be easier to use the Histogram command, and add reference lines to the histogram instead.

Heres a neat trick, create a histogram, add reference lines from the right click menu. Then go to editor and copy command language, the editing you made to the chart is copied with the commands so you can paste it into the macro.


So unless anyone knows of any other commands that will reposition the graph, capability on that layout might be difficult from the capa command.

I have found a method though of building the capability measures from the capa command back into another graph.
You have to store the information you want, like Cpk.
Convert the value to a text column
text c10 c10
Store the text column in a constant
let k1 = c10(1)
Write the constant as a text table in the graph.

using a subcommand of
text -5 30 k1
With a graph command will add the cpk written to the worksheet onto the graph at coordinates -5 30.

I use that copy command language trick to find the commands I want and then play with the positioning.
Reply With Quote
Thanks to Allattar for your informative Post and/or Attachment!
  #8  
Old 1st September 2008, 05:04 AM
MiniNik MiniNik is offline
Inactive Registered Visitor

Registration Date: Aug 2008
Location: Germany
 
Posts: 6
Thanks Given to Others: 2
Thanked 1 Time in 1 Post
Karma Power: 6
Karma: 12
MiniNik has less than 100 Karma points so far.
Lurker Re: Minitab macro vs. Layout tool

thank you for your information. when you don't know it, you can drive yourself crazy on the try to find a solution for this...
Reply With Quote
Thanks to MiniNik for your informative Post and/or Attachment!
Reply

Lower Navigation Bar
Go Back   The Elsmar Cove Forum > Common Quality Assurance Processes and Tools > Quality Tools, Improvement and Analysis > Quality Assurance and Compliance Software Tools / Solutions > Using Minitab Software

Bookmarks

Tags
macro, minitab


Visitors Currently Viewing this Thread: 1 (0 Registered Visitors and 1 Unregistered Guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Forum Search
Display Modes Rate Thread Content
Rate Thread Content:

Posting Settings
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Discussion Threads
Discussion Thread Title Thread Starter Forum Replies Last Post or Poll Vote
Minitab - Getting a Minitab Macro to look up a Column Name Trippy Using Minitab Software 23 24th August 2009 01:46 AM
RANCOVA (rank ANCOVA) macro for minitab julienrl Using Minitab Software 2 21st April 2009 12:17 AM
Problem creating a Macro in Minitab Minitab_Novoice Using Minitab Software 4 4th January 2009 10:57 AM
Macro to connect to Access Database to get to data - Minitab Macro help minitabuser Using Minitab Software 1 12th November 2008 05:54 PM
Macro that will perform a normality test and capability analysis - Minitab help mcomisar Using Minitab Software 1 27th April 2007 11:13 PM



The time now is 08:53 PM. All times are GMT -4.
The time zone can be changed in your UserCP --> Options.



   

All Y'All Come Back Now, Y' Hear?

Made With A Mac! FreeBSD OS Powered by Apache!
Using php4 Forums provided and maintained by Marc Smith Database by MySQL

FAIR USE and CORRECTNESS NOTICE: This site contains copyrighted material the use of which has not always been specifically authorized by the copyright owner. We are making such material available in our efforts to advance understanding of environmental, political, human rights, economic, democracy, scientific, and social justice issues, etc. We believe herein constitutes a 'fair use' of any such copyrighted material as provided for in section 107 of the US Copyright Law. In accordance with Title 17 U.S.C. Section 107, the material on this site is distributed without profit to those who have expressed a prior interest in receiving the included information for research and educational purposes. For more information go to: http://www.law.cornell.edu/uscode/17/ If you wish to use copyrighted material from this site for purposes of your own that go beyond 'fair use', you must obtain permission from the copyright owner. In addition, I do not guarantee the correctness of the content. The risk of using content from the Elsmar Cove web site and forums remains with the user/visitor.

Responsibility Statement: Each person is responsible for anything they post in the Elsmar Cove forum. Neither I, Marc Timothy Smith, nor any of the forum Moderators, are responsible for the content of posts people make. Liability for post content resides with the poster as does interpretation and/or acceptance and/or use of advice by the reader.

Complaints: If you have a complaint with a post in a forum discussion thread, including Content in general, fighting, flaming, copyright infringement, defamation and/or 'slander', please use the 'Report This Post Report This Post Button button which appears at the top of every post in every thread.

Site courtesy of:
Marc Timothy Smith - Cayman Business Systems, 8466 Lesourdsville-West Chester Road, West Chester, Ohio 45069-1929 - USA
(513) 341-6272

To contact me, click the Google Voice link below, enter Your Name and Your Phone Number and Google will ring your phone and connect you for free!

The Elsmar Cove Web Site is *CopyFree*
no new posts