[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [tor-bugs] #33258 [Metrics]: Add CSV file export of graphed data
#33258: Add CSV file export of graphed data
-----------------------------------------+------------------------------
Reporter: karsten | Owner: metrics-team
Type: enhancement | Status: needs_review
Priority: Medium | Milestone:
Component: Metrics | Version:
Severity: Normal | Resolution:
Keywords: metrics-team-roadmap-2020Q1 | Actual Points:
Parent ID: #33327 | Points: 1
Reviewer: anarcat | Sponsor: Sponsor59
-----------------------------------------+------------------------------
Comment (by karsten):
Thanks for the feedback!
I agree that these time plots with dots are not ideal. Their main purpose
is to quickly check whether something has changed during the experiment
that would affect measurements and that might be less visible in a
distribution plot like the box plot, bar plot, or ECDF, all of which do
not have time as an axis.
One possibility to avoid the overplotting would be to reduce alpha to
something like 0.5 or less. I'm attaching
[https://trac.torproject.org/projects/tor/attachment/ticket/33258/tgen.onionperf.viz.2020-03-24_17%3A09%3A53.pdf
another PDF] that uses an alpha value of 0.5 for all time plots. The diff
for this change is:
{{{
diff --git a/onionperf/visualization.py b/onionperf/visualization.py
index 2d87a77..d8d82bf 100644
--- a/onionperf/visualization.py
+++ b/onionperf/visualization.py
@@ -271,7 +271,7 @@ class TGenVisualization(Visualization):
xmin = data[x].min()
xmax = data[x].max()
ymax = data[y].max()
- g = sns.scatterplot(data=data, x=x, y=y, hue=hue_name)
+ g = sns.scatterplot(data=data, x=x, y=y, hue=hue_name, alpha=0.5)
g.set(title=title, xlabel=xlabel, ylabel=ylabel,
xlim=(xmin - 0.03 * (xmax - xmin), xmax + 0.03 * (xmax -
xmin)),
ylim=(-0.05 * ymax, ymax * 1.05))
}}}
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/33258#comment:6>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs