Skip to content

Commit 6077f4b

Browse files
Update colors for detail report legend (#249)
* Updated colors for detail report legend * Using nvidia colors * Now using colors in nvidia palette omitting red/orange/greens * Improved perf_server_compute_output color * Darken 'perf_server_compute_output' color * Chaned legend colors based on UX expert's findings; moved location of point annotation * PR feedback * Fix issue where report step cant find remote mode data * Remove Tim's fix 'cherry-pick 49b2bac' * Fix revert Co-authored-by: tgerdes <[email protected]>
1 parent 8ba6b55 commit 6077f4b

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

model_analyzer/plots/detailed_plot.py

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,13 @@ def __init__(self, name, title, bar_width=0.5):
6969
]
7070

7171
self._bar_colors = {
72-
'perf_client_send_recv': '#4285f4',
73-
'perf_client_response_wait': '#db4437',
74-
'perf_server_queue': '#f4b400',
75-
'perf_server_compute_input': '#0f9d58',
76-
'perf_server_compute_infer': '#ff6d00',
77-
'perf_server_compute_output': '#46bdc6',
78-
'perf_throughput': '#c1bc1f'
72+
'perf_client_send_recv': '#ffc372',
73+
'perf_client_response_wait': '#9daecc',
74+
'perf_server_queue': '#addc91',
75+
'perf_server_compute_input': '#7eb7e8',
76+
'perf_server_compute_infer': '#0072ce',
77+
'perf_server_compute_output': '#254b87',
78+
'perf_throughput': '#5E5E5E'
7979
}
8080

8181
self._bar_width = bar_width
@@ -185,9 +185,12 @@ def plot_data(self):
185185
# Annotate inferences
186186
for x, y in zip(sorted_data['concurrency'],
187187
sorted_data['perf_throughput']):
188-
self._ax_throughput.annotate(str(round(y, 2)),
189-
xy=(x, y),
190-
ha='center')
188+
self._ax_throughput.annotate(
189+
str(round(y, 2)),
190+
xy=(x, y),
191+
textcoords="offset points", # how to position the text
192+
xytext=(0, 10), # distance from text to points (x,y)
193+
ha='center')
191194

192195
self._ax_latency.grid()
193196
self._ax_latency.set_axisbelow(True)

0 commit comments

Comments
 (0)