Skip to content

Commit

Permalink
Adapt plots to PACMNET formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
miri64 committed Jul 17, 2023
1 parent 6474ea7 commit de128f1
Show file tree
Hide file tree
Showing 73 changed files with 107,700 additions and 105,015 deletions.
6 changes: 3 additions & 3 deletions 03-dns-empirical/plot/mlenders_acm.mplstyle
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ axes.titlesize : medium
axes.labelpad : 0.25
axes.labelsize : small
figure.facecolor : none
# @ columnwidth / 2
figure.figsize : 2.739035, 1.5
# @ columnwidth
figure.figsize : 3.3374, 1.5
# @ textwidth
# figure.figsize : 7.00697, 1.5
# figure.figsize : 5.47807, 1.5
figure.subplot.hspace : 0.005
figure.subplot.wspace : 0.005
font.family : serif
Expand Down
4 changes: 2 additions & 2 deletions 03-dns-empirical/plot/plot_iot_data_name_lens.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def main():
args = parser.parse_args()
matplotlib.style.use(os.path.join(pc.SCRIPT_PATH, args.style_file))
matplotlib.rcParams["figure.figsize"] = (
matplotlib.rcParams["figure.figsize"][0] * 0.58,
matplotlib.rcParams["figure.figsize"][0],
matplotlib.rcParams["figure.figsize"][1] * 0.7,
)
args.iot_data_csvs = sorted(set(args.iot_data_csvs))
Expand Down Expand Up @@ -140,7 +140,7 @@ def main():
facecolor="#80b1d3",
)
matplotlib.pyplot.gca().set_axisbelow(True)
matplotlib.pyplot.xticks(numpy.arange(0, 86, 10))
matplotlib.pyplot.xticks(numpy.arange(0, 86, 5))
matplotlib.pyplot.xlim((0, 85))
matplotlib.pyplot.xlabel("Name length [characters]")
matplotlib.pyplot.ylim((0, 0.08))
Expand Down
2 changes: 1 addition & 1 deletion 03-dns-empirical/plot/plot_iot_data_resp_lens.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def main():
ax = matplotlib.pyplot.gca()
ax.xaxis.set_minor_locator(matplotlib.ticker.MultipleLocator(10))
ax.yaxis.set_minor_locator(matplotlib.ticker.MultipleLocator(0.01))
matplotlib.pyplot.xticks(numpy.arange(0, 1501, 100))
matplotlib.pyplot.xticks(numpy.arange(0, 1501, 50))
matplotlib.pyplot.yticks(numpy.arange(0, 0.2, 0.1))
# label only every other major locator
for i, label in enumerate(ax.xaxis.get_ticklabels()):
Expand Down
2 changes: 1 addition & 1 deletion 03-dns-empirical/plot/plot_iot_data_sec_counts.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def main():
del section
del df
matplotlib.pyplot.legend(loc="upper right", ncol=2)
matplotlib.pyplot.xticks(numpy.arange(0, 31, 3))
matplotlib.pyplot.xticks(numpy.arange(0, 31, 2))
matplotlib.pyplot.xlim((0, 30))
matplotlib.pyplot.xlabel(r"Section size [\#entries]")
matplotlib.pyplot.ylim((-0.01, 1.01))
Expand Down
Binary file not shown.
Loading

0 comments on commit de128f1

Please sign in to comment.