1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

How can I plot multi value in same bar with coloure range

  1. May 4, 2012 #1
    Hi Friends
    Can any one help me with m-file for the subject below

    I have an Excel data sheet Which give Thickness of several pipes on 5 Different heights and I want to plot each bar is for one pipe with 5 values in 5 Different heights and give A different color for Thickness range

    example
    my heights values is on 25cm ,50cm , 75cm .100cm , 125cm On this heights I read
    first pipe Thickness 3.07 3.11 3.18 3.05 3.06
    seconde pipe Thickness 3.09 3.1 3.11 3.09 3.08
    third pipe Thickness 3.14 3.15 3.13 3.08 3.05

    So I want plot one bar for Each pipe and give A different color to Each Thickness range At Each heights
    many thanks for all
     
    Last edited by a moderator: May 7, 2012
  2. jcsd
  3. May 7, 2012 #2
    Bump.
     
    Last edited by a moderator: May 7, 2012
  4. May 7, 2012 #3

    berkeman

    User Avatar

    Staff: Mentor

    I'm not familiar with "m-files". If you are doing this in Excel, wouldn't it be a *.XLS type file?

    Can you show a screenshot of your plot attempts so far?
     
  5. May 7, 2012 #4
    An m-file is a script file for MATLAB. He is probably using MATLAB's built-in function that reads in Excel data.
     
  6. May 7, 2012 #5
    thanks for reply
    yes it's filename.xls file but iwant use matlab to plot it
     
    Last edited by a moderator: May 7, 2012
  7. May 7, 2012 #6
    Here is my data in Excel sheet:
    Code (Text):

                           
        at the elbow level              at the middle level
                           
        1   7.3     -   1   7.3
        6   7.4     -   6   7.5
        11  7.1     -   11  7.4
        16  7.4     -   16  7.3
        21  7.5     -   21  7.4
        26  7.2     -   26  7.5
        31  7.4     -   31  7.4
        36  7.5     -   36  7.5
        41  7.3     -   41  7.2
        46  7.4     -   46  7.4
        51  7.5     -   51  7.5
        56  7.3     -   56  7.3
        61  7.2     -   61  7.5
        66  7.5     -   66  7.4
        71  7.3     -   71  7.4
        76  7.5     -   76  7.3
        81  7.2     -   81  7.3
        86  7.4     -   86  7.5
        91  7.4     -   91  7.4
        96  7.5     -   96  7.5
        101 7.4     -   101 7.3
        106 7.4     -   106 7.4
        111 7.3     -   111 7.2
        116 7.5     -   116 7.4
        121 7.4     -   121 7.5
        126 7.4     -   126 7.2
        131 7.2     -   131 7.4
        135 7.3     -   135 7.5
     
    And the attachment pic was made by MATLAB from the Excel datasheet and my asking is how to make M-file to give this pic.
     

    Attached Files:

    Last edited by a moderator: May 8, 2012
  8. May 10, 2012 #7
    thanks to admin for adjustment of my past post
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: How can I plot multi value in same bar with coloure range
  1. How do I find my x bar? (Replies: 11)

Loading...