+ Reply to Thread
Results 1 to 8 of 8

Thread: 2017 Cars by Weight and Displacement example

  1. #1
    Senior Member
    Join Date
    Mar 2008
    Location
    Brighton, MI
    Posts
    677

    2017 Cars by Weight and Displacement example

    Until I figure out how to add images to the reddit forum, here is an example of the plot labeling I mentioned. User selectable and removable labels with pertinent data.Attachment 1328

    Done with:

    file='fsae_mi_2017_result.xls'

    [numeric,txt,raw]=xlsread(['C:\Users\BillCobb\downloads\' file],'Info','b4:h128');

    wgt=numeric(:,4);
    displ=numeric(:,2);
    cyl=numeric(:,1);
    team=txt(:,1);
    country=txt(:,2);

    f=figure('NumberTitle','off','Menubar','none','Nam e',[upper(file) '(Info)']);
    plot(displ,wgt,'ro')
    xlabel('Engine Displacement')
    ylabel('Weight (kg)')
    datalabel('on','k.',team)
    xlim([400 800])
    grid
    sidetext('BillCobb zzvyb6@yahoo.com')


    % f=figure('NumberTitle','off','Menubar','none','Nam e',[upper(file) '(Info)']);
    % [idx,label] = grp2idx(sort(country));
    % hist(idx,unique(idx));
    % set(gca,'xTickLabel',label);


    f=figure('NumberTitle','off','Menubar','none','Nam e',[upper(file) '(Info)']);
    plot(cyl,wgt,'ro')
    datalabel('on','k.',team)
    xlim([0 5])
    set(gca,'XTick',[ 1 2 3 4])
    grid
    xlabel('Number of Cylinders')
    ylabel('Weight (kg)')
    sidetext('BillCobb zzvyb6@yahoo.com')


    2017_MIS_wgt_disp.JPG2017_MIS_wgt_cyl.JPG
    Last edited by BillCobb; 12-13-2018 at 11:08 AM.

  2. #2
    Senior Member
    Join Date
    Mar 2008
    Location
    Buffalo, NY USA
    Posts
    321
    Thanks Bill, a nice way to look at the range of solutions and spot in the lowest weight for each engine displacement.

    When I look at the plot you posted here there are no X and Y axis labels (although I see them in the code).

    I do my best to avoid Reddit, but if there is a discussion over there that relates to this plot, could you supply a link?

  3. #3
    Cole Easterling
    Brendon & Lawrence Mfg.
    2011-2012 TAMU FH/FSAE

  4. #4
    Senior Member
    Join Date
    Mar 2008
    Location
    Buffalo, NY USA
    Posts
    321
    Thanks for the links and I see Bill has edited his plots--axis labels are fine now.

  5. #5
    Quote Originally Posted by DougMilliken View Post

    I do my best to avoid Reddit, but if there is a discussion over there that relates to this plot, could you supply a link?
    That's a wise policy.
    Noah
    Student

  6. #6
    Quote Originally Posted by noah View Post
    That's a wise policy.
    I'm sorry you don't feel welcome over there. Its a fun community. You don't even have to say who you are!
    Jay Swift
    Combustion Powertrain
    Global Formula Racing 2013-2014

  7. #7
    Senior Member
    Join Date
    Mar 2008
    Location
    Brighton, MI
    Posts
    677

    2018 vs. 2017


  8. #8
    Senior Member
    Join Date
    Mar 2008
    Location
    Brighton, MI
    Posts
    677

    Mo Betta C & S

    Fun with data mining. Sort of makes a 4 cyl a good place to start, eh ? Which event section gets the most Brownie P4 plotz.jpgoints ?

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts