Skip to content

Commit

Permalink
Merge pull request #3 from dciliberti/fix-charts
Browse files Browse the repository at this point in the history
Fix charts
  • Loading branch information
dciliberti authored Dec 16, 2019
2 parents 5c6e15b + 79735b6 commit a099fe2
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 28 deletions.
Binary file modified example/Motor Map Contour Plot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified example/Motor Map Surface Plot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified example/Shaft Power Contour Plot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified example/Shaft Power Surface Plot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
56 changes: 28 additions & 28 deletions performanceCharts.m
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,22 @@
condition{1} = [1.46 403 9801
1.95 174 7351];

condition{2} = [1.38 1329 10411
1.44 1116 9958
1.51 941 9543
1.57 798 9162
1.63 679 8809
1.70 580 8483
1.76 498 8180
1.82 428 7898
1.88 368 7635
1.95 318 7388
2.01 274 7157];

condition{3} = [1.4 1013 10274
1.6 593 8990
1.8 367 7991
2 236 7192];
condition{2} = [1.57 849 9162
1.73 585 8329
1.88 411 7635
2.04 293 7047
2.20 211 6544
2.36 153 6108
2.51 112 5726
2.67 83 5389
2.83 67 5090];

condition{3} = [1.4 1137 10274
1.6 679 8990
1.8 429 7991
2.0 284 7192
2.2 195 6538
2.4 141 5993];

%% Lehner performance data
V1 = csvread('data\V5.csv');
Expand Down Expand Up @@ -107,17 +107,17 @@
plot3(V10(:,3)./scale,V10(:,1),V10(:,5),'k--')
plot3(V11(:,3)./scale,V11(:,1),V11(:,5),'k--')
plot3(V12(:,3)./scale,V12(:,1),V12(:,5),'k--')
plot3(limRPM,limCur,limPow,'k-','LineWidth',2)
% plot3(limRPM,limCur,limPow,'k-','LineWidth',2)

for i = 1:numel(condition)
% create a temporary variable to access part of cell data
tempMat = condition{i};
conditionCurves{i} = plot3(tempMat(:,3),tempMat(:,4),tempMat(:,2)+20,...
'o-','LineWidth',1.5,'MarkerEdgeColor','black'); %#ok<SAGROW>
'-o','LineWidth',3.0,'MarkerSize',3,'MarkerEdgeColor','black'); %#ok<SAGROW>
end

hold off, grid on, view(-20,30)
xlabel('RPM'), ylabel('Current, A'), zlabel('Output power, W')
xlabel('RPM'), ylabel('Current, A'), zlabel('Shaft power, W')
colorbar
legend([conditionCurves{:}],conditionLabels,'Location','Best')

Expand Down Expand Up @@ -170,19 +170,19 @@
plot(V10(:,3)./scale,V10(:,1),'k--')
plot(V11(:,3)./scale,V11(:,1),'k--')
plot(V12(:,3)./scale,V12(:,1),'k--')
plot(limRPM,limCur,'k-','LineWidth',2)
% plot(limRPM,limCur,'k-','LineWidth',2)

for i = 1:numel(condition)
% create a temporary variable to access part of cell data
tempMat = condition{i};
conditionCurves{i} = plot(tempMat(:,3),tempMat(:,4),...
'o-','LineWidth',1.5,'MarkerEdgeColor','black');
'o-','LineWidth',3.0,'MarkerSize',3,'MarkerEdgeColor','black');
end

hold off
clabel(C,H,'FontSize',15,'Color','white')
xlabel('RPM'), ylabel('Current, A'), title('Output power contour, W')
colorbar
xlabel('RPM'), ylabel('Current, A'), title('Shaft power contour, W')
% colorbar
legend([conditionCurves{:}],conditionLabels,'Location','Best')

% Annotations on contour
Expand Down Expand Up @@ -247,13 +247,13 @@
plot3(V10(:,3)./scale,V10(:,4),V10(:,6),'k--')
plot3(V11(:,3)./scale,V11(:,4),V11(:,6),'k--')
plot3(V12(:,3)./scale,V12(:,4),V12(:,6),'k--')
plot3(limRPM,limMom,limEta,'k-','LineWidth',2)
% plot3(limRPM,limMom,limEta,'k-','LineWidth',2)

for i = 1:numel(condition)
% create a temporary variable to access part of cell data
tempMat = condition{i};
conditionCurves{i} = plot3(tempMat(:,3),tempMat(:,5),tempMat(:,6)+2,...
'o-','LineWidth',1.5,'MarkerEdgeColor','black');
'o-','LineWidth',3.0,'MarkerSize',3,'MarkerEdgeColor','black');
end

hold off, grid on, view(-20,30)
Expand Down Expand Up @@ -310,19 +310,19 @@
plot(V10(:,3)./scale,V10(:,4),'k--')
plot(V11(:,3)./scale,V11(:,4),'k--')
plot(V12(:,3)./scale,V12(:,4),'k--')
plot(limRPM,limMom,'k-','LineWidth',2)
% plot(limRPM,limMom,'k-','LineWidth',2)

for i = 1:numel(condition)
% create a temporary variable to access part of cell data
tempMat = condition{i};
conditionCurves{i} = plot(tempMat(:,3),tempMat(:,5),...
'o-','LineWidth',1.5,'MarkerEdgeColor','black');
'o-','LineWidth',3.0,'MarkerSize',3,'MarkerEdgeColor','black');
end

hold off
clabel(C,H,'FontSize',15,'Color','black')
xlabel('RPM'), ylabel('Torque, Ncm'), title('Motor Efficiency')
colorbar
% colorbar
legend([conditionCurves{:}],conditionLabels,'Location','Best')

% Annotations on contour
Expand Down

0 comments on commit a099fe2

Please sign in to comment.