瀏覽代碼

more readable plots

Lucas Gautheron 1 年之前
父節點
當前提交
d3321d3c1f
共有 4 個文件被更改,包括 6 次插入6 次删除
  1. 0 1
      plots/terms_cats.pdf
  2. 1 0
      plots/terms_cats.pdf
  3. 4 4
      plots/terms_cats.pgf
  4. 1 1
      plots/terms_cats.py

+ 0 - 1
plots/terms_cats.pdf

@@ -1 +0,0 @@
-/annex/objects/MD5E-s11185--738b167ddb2d1509847902b14df814c2.pdf

+ 1 - 0
plots/terms_cats.pdf

@@ -0,0 +1 @@
+../.git/annex/objects/qZ/q8/MD5E-s11168--abc576a873138c26dabafde07583fc1f.pdf/MD5E-s11168--abc576a873138c26dabafde07583fc1f.pdf

+ 4 - 4
plots/terms_cats.pgf

@@ -24,7 +24,7 @@
 \begingroup%
 \makeatletter%
 \begin{pgfpicture}%
-\pgfpathrectangle{\pgfpointorigin}{\pgfqpoint{5.616775in}{4.947834in}}%
+\pgfpathrectangle{\pgfpointorigin}{\pgfqpoint{5.616775in}{4.715222in}}%
 \pgfusepath{use as bounding box, clip}%
 \begin{pgfscope}%
 \pgfsetbuttcap%
@@ -37,8 +37,8 @@
 \pgfsetdash{}{0pt}%
 \pgfpathmoveto{\pgfqpoint{0.000000in}{0.000000in}}%
 \pgfpathlineto{\pgfqpoint{5.616775in}{0.000000in}}%
-\pgfpathlineto{\pgfqpoint{5.616775in}{4.947834in}}%
-\pgfpathlineto{\pgfqpoint{0.000000in}{4.947834in}}%
+\pgfpathlineto{\pgfqpoint{5.616775in}{4.715222in}}%
+\pgfpathlineto{\pgfqpoint{0.000000in}{4.715222in}}%
 \pgfpathlineto{\pgfqpoint{0.000000in}{0.000000in}}%
 \pgfpathclose%
 \pgfusepath{fill}%
@@ -400,7 +400,7 @@
 \definecolor{textcolor}{rgb}{0.000000,0.000000,0.000000}%
 \pgfsetstrokecolor{textcolor}%
 \pgfsetfillcolor{textcolor}%
-\pgftext[x=0.226528in,y=2.784222in,,bottom,rotate=90.000000]{\color{textcolor}\rmfamily\fontsize{10.000000}{12.000000}\selectfont Share of abstracts containing the term that belong to each category}%
+\pgftext[x=0.226528in,y=2.784222in,,bottom,rotate=90.000000]{\color{textcolor}\rmfamily\fontsize{10.000000}{12.000000}\selectfont Share of abstracts that belong to each category}%
 \end{pgfscope}%
 \begin{pgfscope}%
 \pgfsetrectcap%

+ 1 - 1
plots/terms_cats.py

@@ -55,7 +55,7 @@ for term in terms:
     probs = cats[cats["term"] == term][labels].iloc[0]
 
     if n == 0:
-        ax.set_ylabel("Share of abstracts containing the term that belong to each category")
+        ax.set_ylabel("Share of abstracts that belong to each category")
     
     ax.bar(human_friendly_labels, probs, color = ['#377eb8', '#ff7f00', '#4daf4a'])
     ax.set_title(f"``{term}''")