gotham.sty 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. %%
  2. %% This is file `gotham.sty',
  3. %% generated with the docstrip utility.
  4. %%
  5. %% The original source files were:
  6. %%
  7. %% gotham.dtx (with options: `package')
  8. %%
  9. %% Copyright (C) 2015 by Matthias Vogelgesang
  10. %%
  11. %% This file may be distributed and/or modified under the
  12. %%
  13. %% conditions of the LaTeX Project Public License, either
  14. %% version 1.3 of this license or (at your option) any later
  15. %% version. The latest version of this license is in:
  16. %%
  17. %% http://www.latex-project.org/lppl.txt
  18. %%
  19. %% and version 1.3 or later is part of all distributions of
  20. %% LaTeX version 2005/12/01 or later
  21. %%
  22. \NeedsTeXFormat{LaTeX2e}
  23. \ProvidesPackage{gotham}[2015/11/30 gotham]
  24. \RequirePackage{pgfplots}
  25. \pgfplotsset{
  26. gotham/legend/.style={
  27. legend style={
  28. draw=none,
  29. fill=none,
  30. }
  31. },
  32. gotham/plot/.style={
  33. gotham/legend,
  34. axis x line*=bottom,
  35. tick align=outside,
  36. x tick label style={
  37. /pgf/number format/1000 sep=,
  38. },
  39. y tick label style={
  40. /pgf/number format/1000 sep=,
  41. },
  42. ymajorgrids=true,
  43. xmajorgrids=true,
  44. major grid style={
  45. dotted,
  46. },
  47. },
  48. gotham/dot plot/.style={
  49. gotham/plot,
  50. axis y line*=left,
  51. only marks,
  52. },
  53. gotham/line plot/.style={
  54. gotham/plot,
  55. axis y line*=left,
  56. },
  57. gotham/bar plot/.style={
  58. gotham/plot,
  59. axis y line*=none,
  60. xmajorgrids=false,
  61. ybar,
  62. area legend,
  63. legend image code/.code={
  64. \draw[#1] (0cm,-0.1cm) rectangle (0.15cm,0.1cm);
  65. },
  66. },
  67. gotham/horizontal bar plot/.style={
  68. gotham/bar plot,
  69. xbar stacked,
  70. },
  71. gotham/scatter plot/.style={
  72. gotham/plot,
  73. scatter,
  74. axis y line*=left,
  75. only marks,
  76. mark options={
  77. draw opacity=0.9,
  78. fill opacity=0.25,
  79. },
  80. },
  81. gotham/histogram/.style={
  82. gotham/bar plot,
  83. xmajorgrids=true,
  84. ymin=0,
  85. },
  86. }
  87. \endinput
  88. %%
  89. %% End of file `gotham.sty'.