PDA

View Full Version : 2017 Cars by Weight and Displacement example



BillCobb
12-13-2018, 09:02 AM
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.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')


13301331

DougMilliken
12-13-2018, 10:05 AM
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?

coleasterling
12-13-2018, 05:11 PM
Here you go, Doug:

https://www.reddit.com/r/FSAE/comments/a5ukyg/example_of_technology_boundary/

https://www.reddit.com/r/FSAE/comments/a5f0hw/cars_by_weight_and_displacement_michigan_2018/

DougMilliken
12-13-2018, 05:21 PM
Thanks for the links and I see Bill has edited his plots--axis labels are fine now.

noah
12-13-2018, 06:59 PM
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.

Swiftus
12-14-2018, 05:54 PM
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!

BillCobb
12-14-2018, 08:24 PM
Comparison(s)1332

BillCobb
12-15-2018, 09:34 PM
Fun with data mining. Sort of makes a 4 cyl a good place to start, eh ? Which event section gets the most Brownie P1333oints ?