Skip to content

Commit

Permalink
get rid of label warning
Browse files Browse the repository at this point in the history
  • Loading branch information
filipsPL committed Oct 3, 2018
1 parent f7ab129 commit 5434aa2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions genpasstable.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ def CreateGanttChart(listNextPasesListList):
customDates.append([_create_date(startdate), _create_date(enddate)])
i += 1


ilen = len(ylabels)
pos = np.arange(0.5, ilen * 0.5 + 0.5, 0.5)
task_dates = {}
Expand All @@ -69,6 +70,7 @@ def CreateGanttChart(listNextPasesListList):
align='center',
edgecolor='black',
color='navy',
label='',
alpha=0.95)
ax.text(
end_date,
Expand All @@ -80,6 +82,8 @@ def CreateGanttChart(listNextPasesListList):
fontsize=7,
color='gray')



locsy, labelsy = plt.yticks(pos, ylabels)
plt.setp(labelsy, fontsize=8)
ax.axis('tight')
Expand All @@ -95,16 +99,13 @@ def CreateGanttChart(listNextPasesListList):

Majorformatter = DateFormatter("%H:%M\n%d-%b")
ax.xaxis.set_major_formatter(Majorformatter)

labelsx = ax.get_xticklabels()
# plt.setp(labelsx, rotation=30, fontsize=10)
plt.setp(labelsx, rotation=0, fontsize=7)
plt.title(
'Transit plan for %s, generated %s' %
(stationName, t2human(time.time())))

font = font_manager.FontProperties(size='small')
ax.legend(loc=1, prop=font)
ax.invert_yaxis()
plt.tight_layout()
plt.savefig(ganttNextPassList)
Expand Down
1 change: 1 addition & 0 deletions var/nextpass.html
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,5 @@
<tr><td>83</td><td>ISS</td><td>2018-10-11 15:15</td><td>10:07</td><td>77°</td><td>173° (SSE↓↘)</td><td>143625000Hz</td><td>modules/iss/iss_voice.sh</td><tr>
<tr><td>84</td><td>ISS</td><td>2018-10-11 16:51</td><td>10:04</td><td>63°</td><td>193° (S↓)</td><td>143625000Hz</td><td>modules/iss/iss_voice.sh</td><tr>
<tr><td>85</td><td>ISS</td><td>2018-10-11 18:28</td><td>09:18</td><td>22°</td><td>212° (SSW↓↙)</td><td>143625000Hz</td><td>modules/iss/iss_voice.sh</td><tr>
<tr><td>86</td><td>ISS</td><td>2018-10-12 12:47</td><td>09:33</td><td>24°</td><td>148° (SE↘)</td><td>143625000Hz</td><td>modules/iss/iss_voice.sh</td><tr>
</table>
Binary file modified var/nextpass.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5434aa2

Please sign in to comment.