Skip to content

Commit 13e1023

Browse files
author
vikrants
committed
center align room names
1 parent f69818b commit 13e1023

File tree

7 files changed

+4
-4
lines changed

7 files changed

+4
-4
lines changed

Components/Ambient/EnvModel.png

0 Bytes
Loading
0 Bytes
Loading
-26 Bytes
Binary file not shown.
-1 Bytes
Binary file not shown.

ScriptsData/Parts/building_with_solar_load.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<struct>
33
<README>
4-
<FileGeneratedOn>04-Dec-2024 09:29:31</FileGeneratedOn>
4+
<FileGeneratedOn>06-Dec-2024 10:09:03</FileGeneratedOn>
55
<Location>Bengaluru</Location>
66
<Latitude>12.971N</Latitude>
77
<Longitude>77.594E</Longitude>
-950 Bytes
Binary file not shown.

utils/plotFloorPlanLayout.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function plotFloorPlanLayout(NameValueArgs)
1313
for i = 1:numRooms
1414
plot(NameValueArgs.PlotData(1,i).floorPlan);hold on;
1515
[x,y] = NameValueArgs.PlotData(1,i).floorPlan.centroid;
16-
text(x,y,NameValueArgs.PlotData(1,i).name);
16+
text(x,y,NameValueArgs.PlotData(1,i).name,HorizontalAlignment="center");
1717
end
1818
title('Single Apartment Unit Floor Plan');
1919
elseif strcmp(NameValueArgs.Type,"floorplan")
@@ -23,7 +23,7 @@ function plotFloorPlanLayout(NameValueArgs)
2323
for j = 1:numRooms
2424
plot(NameValueArgs.PlotData.("apartment"+num2str(i)).("room"+num2str(j)).floorPlan);hold on;
2525
[x,y] = NameValueArgs.PlotData.("apartment"+num2str(i)).("room"+num2str(j)).floorPlan.centroid;
26-
text(x,y,NameValueArgs.PlotData.("apartment"+num2str(i)).("room"+num2str(j)).name);
26+
text(x,y,NameValueArgs.PlotData.("apartment"+num2str(i)).("room"+num2str(j)).name,HorizontalAlignment="center");
2727
end
2828
end
2929
title(strcat('Apartment # 1-',num2str(numApartments)));
@@ -32,7 +32,7 @@ function plotFloorPlanLayout(NameValueArgs)
3232
for i = 1:numRooms
3333
plot(NameValueArgs.PlotData.("room"+num2str(i)).floorPlan);hold on;
3434
[x,y] = NameValueArgs.PlotData.("room"+num2str(i)).floorPlan.centroid;
35-
text(x,y,NameValueArgs.PlotData.("room"+num2str(i)).name);
35+
text(x,y,NameValueArgs.PlotData.("room"+num2str(i)).name,HorizontalAlignment="center");
3636
end
3737
title("Apartment")
3838
else

0 commit comments

Comments
 (0)